/*
Theme Name:   CoastLine Child
Theme URI:    https://mombasaairporttransfers.co.ke
Template:     blocksy
Version:      1.0.0
Description:  CoastLine Transfers child theme
Author:       SpikeCrest Digital
Text Domain:  coastline-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --brand-primary:   #0B4F6C;
  --brand-secondary: #145374;
  --brand-accent:    #D9A441;
  --whatsapp:        #25D366;
  --text-dark:       #1a1a2e;
  --text-body:       #374151;
  --text-muted:      #6b7280;
  --bg-light:        #f9fafb;
  --bg-white:        #ffffff;
  --border:          #e5e7eb;
  --radius:          8px;
  --shadow:          0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --max-width:       1120px;
}

/* ============================================================
   BASE OVERRIDES (on top of Blocksy)
   ============================================================ */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-body); line-height: 1.6; padding-bottom: 64px; }
h1, h2, h3, h4 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-dark); line-height: 1.25; }
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
p  { margin-bottom: 12px; }
a  { color: var(--brand-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: 48px 0; }
.section-alt { background: var(--bg-light); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-align: center; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary  { background: var(--brand-accent); color: var(--text-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline  { background: transparent; border: 2px solid var(--bg-white); color: var(--bg-white); }
.btn-call     { background: var(--brand-secondary); color: var(--bg-white); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }

/* ============================================================
   FLOATING WHATSAPP BUBBLE
   ============================================================ */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 84px; z-index: 250;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 14px rgba(0,0,0,.28);
  text-decoration: none;
}
@media (min-width: 900px) { .whatsapp-float { bottom: 24px; } }

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */
.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: flex; background: var(--brand-primary); }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar a { flex: 1; text-align: center; padding: 14px 8px; color: var(--bg-white); font-weight: 700; font-size: 14px; text-decoration: none; }
.mobile-cta-bar a.call     { background: var(--brand-secondary); }
.mobile-cta-bar a.whatsapp { background: var(--whatsapp); }
.mobile-cta-bar a.book     { background: var(--brand-accent); color: var(--text-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: var(--bg-white); padding: 56px 0 48px; }
.hero h1 { color: var(--bg-white); margin-bottom: 16px; }
.hero p.lead { font-size: 18px; max-width: 680px; margin-bottom: 24px; color: rgba(255,255,255,.92); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--brand-accent); font-weight: 600; }
.trust-badges span { display: flex; align-items: center; gap: 6px; }
.hero-inner { display: flex; flex-direction: column; gap: 24px; }
.hero-image { width: 100%; aspect-ratio: 21/9; border-radius: var(--radius); background: rgba(255,255,255,.10); border: 1px dashed rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 13px; text-align: center; padding: 12px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ============================================================
   HERO QUOTE WIDGET (WhatsApp)
   ============================================================ */
.qw-wrap { margin-top: -36px; padding-bottom: 8px; position: relative; z-index: 2; }
.qw-card { background: var(--bg-white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 22px 24px; max-width: 720px; margin: 0 auto; }
.qw-card h2 { font-size: 18px; margin-bottom: 4px; }
.qw-card p.qw-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.qw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 560px) { .qw-row { grid-template-columns: 1fr; } }
.qw-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-dark); }
.qw-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--text-dark); background: var(--bg-white); }
.qw-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(11,79,108,.15); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { font-size: 13px; color: var(--text-muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--text-muted); }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-image { aspect-ratio: 16/9; background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; text-align: center; padding: 8px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card h3 { color: var(--brand-primary); }
.card a.card-link { font-weight: 700; font-size: 14px; }
.card-cta { background: var(--brand-primary); color: var(--bg-white); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px; gap: 12px; }
.card-cta h3 { color: var(--bg-white); margin-bottom: 0; }
.card-cta p { color: rgba(255,255,255,.85); font-size: 14px; }
.card-cta .cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.card-cta a.btn-call { background: var(--brand-secondary); color: var(--bg-white); padding: 10px 18px; font-size: 14px; border-radius: var(--radius); font-weight: 700; }
.card-cta a.btn-book { background: var(--brand-accent); color: var(--text-dark); padding: 10px 18px; font-size: 14px; border-radius: var(--radius); font-weight: 700; }

/* ============================================================
   FEATURE LIST (Why Choose — clean edges)
   ============================================================ */
.feature-list { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg-white); border: 1px solid var(--border); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================================
   REVIEW GRID
   ============================================================ */
.review-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; width: 100%; }
.review-card { background: var(--bg-white); border-right: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.review-card:last-child { border-right: none; }
.review-stars { color: var(--brand-accent); font-size: 13px; margin-bottom: 6px; }
.review-quote { font-size: 13px; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-author { font-weight: 700; font-size: 12px; color: var(--text-dark); margin-top: 8px; }

/* ============================================================
   TWO-COLUMN PAGE LAYOUT (service / location / article)
   ============================================================ */
.page-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .page-layout { grid-template-columns: 2fr 1fr; align-items: start; } }
.page-main  { display: flex; flex-direction: column; gap: 32px; }
.page-sidebar { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .page-sidebar { position: sticky; top: 90px; } }
.side-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-size: 14px; }
.side-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--brand-primary); }
.side-card a { display: block; font-size: 14px; margin-bottom: 8px; }
.side-card a:last-child { margin-bottom: 0; }
.side-cta { background: var(--brand-primary); color: var(--bg-white); }
.side-cta h3 { color: var(--bg-white); }
.side-cta p { color: rgba(255,255,255,.85); font-size: 13px; }
.side-cta .cta-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.side-cta a.btn-call { background: var(--brand-secondary); color: var(--bg-white); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; font-size: 14px; text-align: center; display: block; }
.side-cta a.btn-book { background: var(--brand-accent); color: var(--text-dark); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; font-size: 14px; text-align: center; display: block; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps { counter-reset: step; display: grid; gap: 18px; margin-top: 20px; }
.process-steps .step { display: flex; gap: 16px; }
.process-steps .step .num { counter-increment: step; background: var(--brand-primary); color: #fff; min-width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.process-steps .step .num::before { content: counter(step); }

/* ============================================================
   SIGNS LIST (service pages)
   ============================================================ */
.signs-list { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 640px) { .signs-list { grid-template-columns: repeat(2, 1fr); } }
.signs-list li { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }

/* ============================================================
   MAP EMBED PLACEHOLDER
   ============================================================ */
.map-embed { height: 280px; background: var(--bg-light); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; border-radius: var(--radius); margin: 20px 0; }
.map-embed iframe { width: 100%; height: 100%; border: none; border-radius: var(--radius); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--text-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--brand-primary); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 10px; color: var(--text-body); }

/* ============================================================
   LOCATION PILLS
   ============================================================ */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pill { background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--brand-primary); text-decoration: none; }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing-teaser { background: var(--bg-light); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.fleet-cta { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 24px; }

/* ============================================================
   INLINE CTA (articles)
   ============================================================ */
.inline-cta, .final-cta-block { background: var(--brand-secondary); color: var(--bg-white); border-radius: var(--radius); padding: 28px 24px; text-align: center; margin: 28px 0; }
.inline-cta p, .final-cta-block p { color: rgba(255,255,255,.9); margin-bottom: 12px; }
.inline-cta h3, .final-cta-block h3 { color: var(--bg-white); }

/* ============================================================
   FINAL CTA (full-width section)
   ============================================================ */
.final-cta { background: var(--brand-secondary); color: var(--bg-white); text-align: center; }
.final-cta h2 { color: var(--bg-white); }

/* ============================================================
   ARCHIVE GRID (blog listing)
   ============================================================ */
.archive-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }
.archive-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.archive-card-body { padding: 20px; }
.archive-card h3 { font-size: 16px; color: var(--brand-primary); margin-bottom: 8px; }
.archive-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.archive-card a.read-more { font-weight: 700; font-size: 14px; }

/* ============================================================
   BOOK PAGE — FORM
   ============================================================ */
.book-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px 0 40px; }
@media (min-width: 900px) { .book-layout { grid-template-columns: 2fr 1fr; } }
.booking-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; }
.btn-submit { background: var(--brand-accent); color: var(--text-dark); width: 100%; font-size: 17px; padding: 16px; border-radius: var(--radius); font-weight: 700; border: none; cursor: pointer; }
.microcopy { font-size: 12px; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ============================================================
   FOOTER (overrides Blocksy footer)
   ============================================================ */
footer .footer-grid a { color: #cbd5e1; }
