/* ==========================================================================
   Liverpool Idiomas — CSS (Design System do Manual de Marca)
   Turismo mobile-first: base mobile → breakpoints para cima.
   Tokens: primary #0F172A · action #2563EB · accent #DC2626 · conversion #16A34A
   ========================================================================== */

:root {
  --primary: #0F172A;
  --action: #2563EB;
  --action-hover: #1D4ED8;
  --accent: #DC2626;
  --conversion: #16A34A;
  --conversion-hover: #15803D;
  --dark-footer: #0B1220;
  --light-bg: #F8FAFC;
  --card: #FFFFFF;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow-soft: 0 4px 20px -2px rgba(15,23,42,.06);
  --shadow-hover: 0 12px 32px -4px rgba(15,23,42,.12);
  --shadow-wa: 0 8px 24px -4px rgba(22,163,74,.35);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--primary);
  line-height: 1.65;
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--primary);
  text-wrap: balance;
}
/* MOBILE-FIRST — escala menor no base */
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; }
p { color: var(--text-muted); font-size: 15px; }

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--action); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn);
}
.skip-link:focus { left: 8px; }

/* ============ HEADER ============ */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 12px;
}
.logo img { height: 42px; width: auto; }

/* botão hambúrguer (mobile) */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1.5px solid var(--text-light);
  border-radius: var(--radius-btn); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav, .header-actions { display: none; }

/* menu aberto (mobile drawer) */
.nav-open .main-nav, .nav-open .header-actions { display: flex; }
.nav-open .main-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--dark-footer); flex-direction: column; align-items: flex-start;
  gap: 0; padding: 8px 16px 16px; box-shadow: var(--shadow-hover);
}
.nav-open .main-nav a { display: block; width: 100%; padding: 13px 8px; font-size: 16px; border-bottom: 1px solid #1E293B; }
.nav-open .main-nav a:last-child { border-bottom: none; }
.nav-open .header-actions { padding: 8px 16px 20px; gap: 10px; flex-direction: column; }

.dropdown { position: relative; width: 100%; }
.dropdown > a::after { content: ' ▾'; }
.dropdown-menu {
  display: none; position: static; width: 100%;
  background: transparent; box-shadow: none; min-width: 0;
  padding-left: 12px;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { padding: 11px 8px; font-size: 15px; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; text-align: center; cursor: pointer; border: none;
  transition: background .2s, transform .1s, opacity .2s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text-light); border: 1.5px solid var(--text-light); padding: 12px 20px; }
.btn-outline:hover { color: #fff; border-color: #fff; text-decoration: none; }
.btn-wa { background: var(--conversion); color: #fff; }
.btn-wa:hover { background: var(--conversion-hover); text-decoration: none; }

/* ============ HERO ============ */
.hero {
  background: var(--primary);
  color: #fff; text-align: center;
  padding: 72px 16px 80px;
}
.hero h1 { color: #fff; max-width: 820px; margin: 16px auto 12px; font-size: 34px; }
.hero .sub { color: var(--text-light); max-width: 720px; margin: 0 auto 26px; font-size: 16px; }
.overline {
  display: inline-block; background: rgba(37,99,235,.18);
  color: #93b4f8; font-weight: 600; font-size: 12px;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .4px;
}
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.actions .btn { width: 100%; max-width: 340px; }
@media (min-width: 560px) { .actions .btn { width: auto; } }

/* ============ TRUSTBAR ============ */
.trustbar { background: var(--light-bg); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px 14px;
  text-align: center; box-shadow: var(--shadow-soft);
}
.trust-item span { font-size: 30px; display: block; }
.trust-item p { font-weight: 600; color: var(--primary); margin-top: 6px; font-size: 14px; }
.trust-item small { color: var(--text-muted); font-weight: 400; display: block; margin-top: 2px; }

/* ============ SEÇÃO ============ */
.section { padding: 64px 0; }
.section.alt { background: var(--light-bg); }
.section.dark { background: var(--primary); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 16px; }

/* ============ GRID / CARDS ============ */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 28px 22px;
  box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s;
  color: var(--primary); text-decoration: none;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .icon { font-size: 36px; margin-bottom: 12px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.card .badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px;
}
.card .badge.royal { background: var(--action); }
.card .badge.green { background: var(--conversion); }

/* ============ FORM ============ */
form input, form textarea {
  width: 100%; padding: 14px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: var(--card); color: var(--primary);
}
form input:focus, form textarea:focus { outline: 2px solid var(--action); border-color: var(--action); }
form label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; color: var(--primary); }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark-footer); color: var(--text-light); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer a { color: var(--text-light); text-decoration: none; display: block; margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; }

/* ============ BOTÃO WHATSAPP FLUTUANTE ============ */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--conversion); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-wa); font-size: 30px; line-height: 1;
  text-decoration: none; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============ BREAKPOINTS (mobile-first: para cima) ============ */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 22px; }
  .hero { padding: 100px 24px; }
  .hero h1 { font-size: 48px; }
  .section { padding: 88px 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  /* header desktop: menu inline, sem hambúrguer */
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
  .main-nav a { color: var(--text-light); font-size: 15px; font-weight: 500; padding: 0; border: none; }
  .main-nav a:hover { color: #fff; text-decoration: none; }
  .main-nav a.active { color: #fff; }
  .header-actions { display: flex; gap: 10px; }
  .dropdown { position: relative; width: auto; }
  .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--dark-footer); min-width: 220px; padding-left: 0;
    border-radius: 0 0 var(--radius-btn) var(--radius-btn);
    box-shadow: var(--shadow-hover); overflow: hidden;
  }
  .dropdown:hover .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 12px 18px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .wa-float { right: 24px; bottom: 24px; }
}