/**
 * Busly — sections.css
 * Homepage content-widget sections: Featured Routes, Features, Destinations,
 * Offers, Steps, Testimonials, CTA. Matches homepage.html 1:1, rendered by
 * the corresponding Busly Elementor widgets.
 */

/* Standard 88px top/bottom section rhythm, matching homepage.html's
   `section { padding: 88px 0 }` — applied directly to each plain content
   widget's own root element (NOT a bare `section` selector; see the note
   in layout.css for why that broke on Elementor-built pages). Hero, CTA
   and the Bus Search widget are excluded here since they define their own
   full-bleed spacing already.

   Longhand top/bottom only (not the `padding` shorthand): these elements
   also carry the `.wrap` class for horizontal centering (padding: 0 28px),
   and since both rules have equal specificity with this file loading after
   layout.css, a shorthand `padding` here would win the cascade tie for ALL
   four sides and silently wipe out .wrap's left/right gutter. */
.busly-featured-routes,
.busly-features,
.busly-destinations,
.busly-offers,
.busly-steps-widget,
.busly-testimonials,
.busly-pricing,
.busly-faq-widget,
.busly-contact-widget,
.busly-bus-listing-widget,
.busly-counter {
	padding-top: 88px;
	padding-bottom: 88px;
}

/* ── Routes ────────────────────────────────────── */
.route-c { padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.route-top { display: flex; align-items: center; justify-content: space-between; }
.code-pair { display: flex; align-items: center; gap: 7px; }
.code { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--busly-s100); color: var(--busly-s600); }
.rarr { width: 13px; height: 13px; color: var(--busly-s400); flex-shrink: 0; }
.go-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--busly-i50); display: flex; align-items: center; justify-content: center; color: var(--busly-primary); transition: background .15s, color .15s; }
.go-ic svg { width: 13px; height: 13px; }
.route-c:hover .go-ic { background: var(--busly-primary); color: #fff; }
.route-name { font-size: 14px; font-weight: 700; color: var(--busly-s900); }
.route-meta { display: flex; justify-content: space-between; align-items: center; }
.route-dur { font-size: 12px; color: var(--busly-s400); font-weight: 500; }
.route-price { font-size: 14px; font-weight: 800; color: var(--busly-primary); }

/* ── Features / Why Choose Us ──────────────────── */
.feat-c { background: #fff; border-radius: var(--busly-r20); border: 1px solid var(--busly-s200); padding: 28px 24px; transition: box-shadow .15s; }
.feat-c:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.feat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--busly-i50); color: var(--busly-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-ic svg { width: 22px; height: 22px; }
.feat-t { font-size: 15px; font-weight: 700; color: var(--busly-s900); margin-bottom: 7px; }
.feat-d { font-size: 13.5px; color: var(--busly-s500); line-height: 1.65; }

/* ── Counter / Stats ───────────────────────────── */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.counter-c { padding: 8px; }
.counter-n { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; color: var(--busly-primary); letter-spacing: -.02em; line-height: 1.1; }
.counter-l { font-size: 13px; color: var(--busly-s500); margin-top: 6px; font-weight: 600; }

/* ── Destinations ──────────────────────────────── */
.dest-c { position: relative; border-radius: var(--busly-r20); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; background: var(--busly-s200); }
.dest-c img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dest-c:hover img { transform: scale(1.06); }
.dest-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.76) 0%, rgba(0,0,0,.06) 55%, transparent 100%); }
.dest-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; }
.dest-city { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.dest-ctry { font-size: 11.5px; color: rgba(255,255,255,.56); margin-top: 3px; }
.dest-fare { margin-top: 10px; }

/* ── Offers ────────────────────────────────────── */
.off-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.off-c { border-radius: var(--busly-r20); border: 1px solid; padding: 28px; }
.off-tag { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.off-t { font-size: 18px; font-weight: 800; color: var(--busly-s900); margin-bottom: 6px; }
.off-d { font-size: 13.5px; color: var(--busly-s500); margin-bottom: 20px; }
.off-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.off-code { font-family: 'Courier New', monospace; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid; }
.off-cta { font-size: 13px; font-weight: 700; transition: opacity .15s; }
.off-cta:hover { opacity: .7; }

/* ── How It Works / Steps ──────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps.busly-steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps.busly-steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps::before {
	content: ''; position: absolute; top: 27px; left: calc(12.5% + 24px); right: calc(12.5% + 24px); height: 1px;
	background: repeating-linear-gradient(90deg, var(--busly-s200) 0, var(--busly-s200) 5px, transparent 5px, transparent 10px);
}
.step { text-align: center; padding: 0 20px; }
.step-n {
	width: 54px; height: 54px; border-radius: 50%; background: var(--busly-primary); color: #fff; font-size: 14px; font-weight: 800;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; position: relative; z-index: 1;
	box-shadow: 0 4px 16px rgba(29,61,135,.3);
}
.step-t { font-size: 14.5px; font-weight: 700; color: var(--busly-s900); margin-bottom: 8px; }
.step-d { font-size: 13px; color: var(--busly-s500); line-height: 1.65; }

/* ── Testimonials / Reviews ────────────────────── */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev-c { background: #fff; border-radius: var(--busly-r20); border: 1px solid var(--busly-s200); padding: 26px; }
.stars { font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.rev-txt { font-size: 13.5px; color: var(--busly-s600); line-height: 1.72; margin-bottom: 18px; }
.rev-auth { display: flex; align-items: center; gap: 11px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--busly-primary); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-name { font-size: 13.5px; font-weight: 700; color: var(--busly-s900); }
.av-route { font-size: 11.5px; color: var(--busly-s400); margin-top: 1px; }

/* ── FAQ ───────────────────────────────────────── */
.busly-faq { max-width: 760px; }
.busly-faq-item { border: 1px solid var(--busly-s200); border-radius: var(--busly-r16); margin-bottom: 12px; overflow: hidden; background: #fff; }
.busly-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; text-align: left; font-size: 14.5px; font-weight: 700; color: var(--busly-s900); cursor: pointer; }
.busly-faq-q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; color: var(--busly-s400); }
.busly-faq-item.is-open .busly-faq-q svg { transform: rotate(180deg); color: var(--busly-primary); }
.busly-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.busly-faq-item.is-open .busly-faq-a { max-height: 600px; }
.busly-faq-a-inner { padding: 0 22px 20px; font-size: 13.5px; color: var(--busly-s500); line-height: 1.7; }

/* ── Pricing ───────────────────────────────────── */
.busly-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.busly-pricing-card { background: #fff; border: 1px solid var(--busly-s200); border-radius: var(--busly-r20); padding: 32px 28px; text-align: center; position: relative; }
.busly-pricing-card.is-featured { border-color: var(--busly-primary); box-shadow: 0 12px 40px rgba(29,61,135,.14); transform: scale(1.03); }
.busly-pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--busly-accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; border-radius: 100px; }
.busly-pricing-name { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.busly-pricing-price { font-size: 38px; font-weight: 900; color: var(--busly-primary); letter-spacing: -.02em; }
.busly-pricing-price small { font-size: 13px; font-weight: 600; color: var(--busly-s400); }
.busly-pricing-desc { font-size: 13px; color: var(--busly-s500); margin: 10px 0 22px; }
.busly-pricing-features { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.busly-pricing-features li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--busly-s600); }
.busly-pricing-features svg { width: 15px; height: 15px; color: var(--busly-primary); flex-shrink: 0; }

/* ── Contact ───────────────────────────────────── */
.busly-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.busly-contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.busly-contact-info-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--busly-i50); color: var(--busly-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.busly-contact-info-ic svg { width: 20px; height: 20px; }
.busly-contact-info-t { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.busly-contact-info-d { font-size: 13px; color: var(--busly-s500); }
.busly-contact-map { border-radius: var(--busly-r20); overflow: hidden; border: 1px solid var(--busly-s200); margin-top: 22px; }
.busly-contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ── CTA ───────────────────────────────────────── */
.cta-sec { background: linear-gradient(140deg, var(--busly-navy) 0%, #1a3d96 50%, var(--busly-primary-3) 100%); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta-sec::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.06) 0%, transparent 70%); }
.cta-h { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff; letter-spacing: -.025em; margin-bottom: 12px; position: relative; }
.cta-p { font-size: 15.5px; color: rgba(255,255,255,.55); margin-bottom: 36px; position: relative; }
.cta-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 15px 36px; border-radius: var(--busly-r12);
	background: #fff; color: var(--busly-primary); font-size: 15px; font-weight: 800;
	box-shadow: 0 8px 32px rgba(0,0,0,.2); transition: opacity .15s, transform .1s; cursor: pointer; position: relative;
}
.cta-btn:hover { opacity: .94; transform: translateY(-2px); }
.cta-btn svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
	.off-grid, .rev-grid, .busly-pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
	.steps::before { display: none; }
	.counter-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
	.busly-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.off-grid, .rev-grid, .busly-pricing-grid, .steps { grid-template-columns: 1fr; }
	.busly-pricing-card.is-featured { transform: none; }
}
