/* ==========================================
   GC TECH HOME (site público do cliente)
   Segue a estrutura de gctechcarandtruck.com.au
   ========================================== */
:root {
  --brand: #15803D;
  --brand-dark: #166534;
  --cream: #f8fafc;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --line: #cbd5e1;
  --green: #00E5A0;
  --navy: #0f172a;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- BOTÕES ---------- */
.btn-brand { background: var(--brand); color: #fff; border: none; padding: 12px 24px; border-radius: 30px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, transform .1s; display: inline-block; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-brand:active { transform: scale(.98); }
.btn-ghost { border: 1.5px solid #fff; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 15px; font-weight: 500; background: transparent; cursor: pointer; transition: background .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost.dark { border-color: var(--line); color: var(--ink); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; padding: 11px 22px; border-radius: 30px; font-size: 15px; display: inline-block; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.text-link { color: var(--brand); font-weight: 600; }

/* ---------- HEADER ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 22px 0; transition: background .25s, padding .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(15, 23, 42, .96); padding: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; border-radius: 6px; display: block; }
.main-nav { display: flex; gap: 8px; }
.nav-item { position: relative; }
.nav-link { background: none; border: none; color: #fff; font-size: 16px; font-weight: 500; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.caret { font-size: 12px; transform: translateY(-3px); }
.nav-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.nav-menu a:hover { background: var(--cream); color: var(--brand); }
.nav-menu a small { color: #9ca3af; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh / var(--fit-zoom, 1)); padding: 150px 0 80px; color: #fff; display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(2,6,23,.82) 0%, rgba(2,6,23,.55) 55%, rgba(2,6,23,.25) 100%),
    radial-gradient(circle at 80% 30%, #14532d 0%, #0f172a 45%, #020617 100%);
}
.hero-title { font-size: clamp(40px, calc(5.5vw / var(--fit-zoom, 1)), 68px); font-weight: 400; letter-spacing: -0.5px; margin-bottom: 12px; }
.hero-sub { font-size: 18px; font-weight: 300; max-width: 620px; opacity: .9; margin-bottom: 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }

/* ---------- WIDGET ---------- */
.booking-widget { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 10px 26px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.widget-tabs { display: flex; border-bottom: 1px solid #ebe5df; margin-bottom: 26px; overflow-x: auto; }
.w-tab { display: flex; align-items: center; gap: 8px; padding: 16px 18px 14px; font-size: 15px; color: #9ca3af; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s; background: none; border-top: none; border-left: none; border-right: none; }
.w-tab svg { width: 24px; height: 24px; }
.w-tab:hover { color: var(--ink-soft); }
.w-tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.widget-row { display: flex; gap: 16px; margin-bottom: 18px; }
.of-field { position: relative; flex: 1; border: 1px solid #94a3b8; border-radius: 4px; background: transparent; display: flex; align-items: center; min-height: 56px; transition: border-color .2s; }
.of-field.small { flex: 0.75; }
.of-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.of-field.invalid { border-color: #dc2626; }
.of-field label { position: absolute; top: -9px; left: 12px; background: var(--cream); padding: 0 6px; font-size: 13px; color: var(--ink-soft); }
.of-field select, .of-field input { width: 100%; height: 100%; border: none; outline: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--ink); padding: 14px 16px; cursor: pointer; appearance: none; }
.of-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.swap-btn { position: absolute; right: 10px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); padding: 4px 6px; border-radius: 4px; }
.swap-btn:hover { background: #e8eef3; color: var(--brand); }
.of-field select#hw-pickup-loc { padding-right: 50px; background-position: right 44px center; }
.widget-error { color: #dc2626; font-size: 14px; min-height: 18px; margin: -6px 0 8px; }
.widget-footer { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.btn-search { background: var(--brand); color: #fff; border: none; padding: 15px 26px; font-size: 17px; font-weight: 500; border-radius: 30px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s; }
.btn-search:hover { background: var(--brand-dark); }
.widget-hint { font-size: 14px; color: var(--ink-soft); }

/* ---------- PROMO CARD ---------- */
.promo-card { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.promo-head { background: var(--green); padding: 24px 22px 18px; }
.promo-icon { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.promo-head h2 { font-size: 28px; font-weight: 400; }
.promo-body { padding: 22px; font-size: 16px; line-height: 1.45; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.promo-link { align-self: flex-start; font-size: 18px; font-weight: 500; border-bottom: 3px solid var(--green); padding-bottom: 2px; margin-top: auto; }

/* ---------- USP STRIP ---------- */
.usp-strip { background: var(--navy); color: #fff; padding: 26px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp { display: flex; gap: 14px; align-items: center; }
.usp-icon { font-size: 26px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.usp strong { display: block; font-weight: 600; font-size: 16px; }
.usp span { font-size: 14px; color: #cbd5e1; }

/* ---------- SECTIONS ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section h2 { font-size: clamp(30px, calc(3.5vw / var(--fit-zoom, 1)), 42px); font-weight: 400; letter-spacing: -0.3px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.eyebrow.light { color: #86efac; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- FLEET ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.fleet-card { border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.fleet-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-3px); }
.fleet-img { background: var(--cream); aspect-ratio: 2 / 1; position: relative; overflow: hidden; }
.fleet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fuel-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0; }
.fuel-tag.hybrid { background: var(--green); border-color: var(--green); }
.avail-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: #fef3c7; color: #92400e; }
.avail-tag.none { background: #fee2e2; color: #991b1b; }
.fleet-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fleet-type { font-size: 12px; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.fleet-name { font-size: 20px; font-weight: 500; }
.fleet-desc { font-size: 14px; color: var(--ink-soft); }
.fleet-meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 14px; margin-top: 4px; }
.fleet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef2f6; }
.fleet-price { font-size: 13px; color: var(--ink-soft); }
.fleet-price strong { font-size: 22px; color: var(--ink); font-weight: 600; }
.fleet-foot .btn-brand { padding: 9px 18px; font-size: 14px; }

/* ---------- MANAGE (PORTAL) ---------- */
.manage-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.manage-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.manage-text { color: #cbd5e1; font-size: 17px; margin: 14px 0 22px; }
.manage-text.dark { color: var(--ink-soft); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.check-list li { padding-left: 32px; position: relative; font-size: 16px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.manage-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.preview-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; transform: rotate(-1.5deg); }
.preview-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.preview-badge { background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.preview-body { display: flex; gap: 18px; padding: 20px; align-items: center; }
.preview-body img { width: 150px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; }
.preview-label { font-size: 11px; text-transform: uppercase; color: #9ca3af; font-weight: 600; letter-spacing: .5px; }
.preview-value { font-size: 15px; margin-bottom: 8px; }
.preview-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.preview-actions span { border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; }
.preview-actions span.primary { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- LOCATIONS ---------- */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.location-card { border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.location-card:hover { border-color: var(--brand); }
.location-city { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; }
.location-name { font-size: 22px; font-weight: 500; }
.location-meta { font-size: 14px; color: var(--ink-soft); }
.location-card button { margin-top: 12px; align-self: flex-start; background: none; border: none; color: var(--brand); font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; }

/* ---------- SPLIT / FAQ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { background: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.split-card h3 { font-size: 28px; font-weight: 400; }
.split-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid #e2e8f0; padding: 18px 0; }
.faq-list summary { font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin-top: 10px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 42px; border-radius: 6px; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-weight: 500; margin-bottom: 12px; }
.site-footer a { display: block; padding: 4px 0; font-size: 15px; }
.site-footer a:hover { color: #4ade80; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #64748b; }
.footer-bottom a { display: inline; padding: 0; font-size: inherit; text-decoration: underline; }

/* ---------- MODAL DO CHAT ---------- */
.home-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; }
.home-modal.open { display: flex; }
.home-modal-card { background: #fff; border-radius: var(--radius); padding: 30px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.home-modal-card h3 { font-size: 24px; font-weight: 500; }
.home-modal-card p { color: var(--ink-soft); }
.home-modal-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.home-modal-card input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 15px; outline: none; }
.home-modal-card input:focus { border-color: var(--brand); }
.home-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Flatpickr com a cor GC Tech */
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--brand); border-color: var(--brand); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1000px) {
  .hero-grid, .manage-grid, .faq-wrap, .split { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 12px 24px; }
  .main-nav.open { display: flex; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .has-menu:hover .nav-menu { display: block; }
  .menu-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .widget-row { flex-direction: column; }
  .usp-grid, .footer-grid { grid-template-columns: 1fr; }
  .preview-card { transform: none; }
  .booking-widget { padding: 6px 16px 20px; }
}

/* ==========================================
   PREFERÊNCIA DE CONTATO (checkout e perfil do portal)
   ========================================== */
.contact-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-opt { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; color: var(--ink) !important; }
.contact-opt:hover { border-color: #94a3b8; }
.contact-opt input { position: absolute; opacity: 0; pointer-events: none; }
.contact-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.contact-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.contact-opt strong { display: block; font-size: 15px; font-weight: 600; }
.contact-opt small { display: block; font-size: 13px; color: var(--ink-soft); }
.contact-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #edf1f5; flex-shrink: 0; }
.contact-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.contact-ico.wa { background: #dcfce7; }
.contact-ico.wa svg { fill: #16a34a; stroke: none; }
.contact-help { font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; }
.contact-note { font-size: 13px; color: #9a3412; margin: 8px 0 0; }
.contact-note:empty { display: none; }
.co-contact { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.co-contact > span { font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .contact-choice { grid-template-columns: minmax(0, 1fr); } }
