/* ============================================
   WEBOAT BRASIL - DESIGN SYSTEM CSS
   Versão: 1.0 | Janeiro 2026
   Conceito: Coastal Premium
   ============================================ */

/* ============================================
   GOOGLE FONTS IMPORT
   OTIMIZADO: Apenas weights necessários
   Plus Jakarta Sans: 600, 700 (títulos)
   DM Sans: 500, 600 (headings/botões)
   Source Sans 3: 400, 600 (corpo)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700&family=DM+Sans:wght@500;600&family=Source+Sans+3:wght@400;600&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (VARIÁVEIS)
   ============================================ */
:root {
  /* ----------------------------------------
     CORES PRIMÁRIAS
     ---------------------------------------- */
  --ocean-deep: #1E3A5F;
  --ocean-deep-rgb: 30, 58, 95;
  
  --sunset-gold: #D4A853;
  --sunset-gold-rgb: 212, 168, 83;
  --sunset-gold-hover: #C49643;
  
  --wave-blue: #4A90B8;
  --wave-blue-rgb: 74, 144, 184;
  --wave-blue-hover: #3A80A8;
  
  /* ----------------------------------------
     CORES NEUTRAS
     ---------------------------------------- */
  --sand-white: #FAFAF8;
  --sand-white-rgb: 250, 250, 248;
  
  --pearl-gray: #F0F0EC;
  --pearl-gray-rgb: 240, 240, 236;
  
  --driftwood: #6B7280;
  --driftwood-rgb: 107, 114, 128;
  
  --charcoal: #374151;
  --charcoal-rgb: 55, 65, 81;
  
  --white: #FFFFFF;
  --border-light: #E5E7EB;
  
  /* ----------------------------------------
     CORES DE FEEDBACK
     ---------------------------------------- */
  --success: #059669;
  --success-light: #D1FAE5;
  
  --warning: #D97706;
  --warning-light: #FEF3C7;
  
  --error: #DC2626;
  --error-light: #FEE2E2;
  
  /* ----------------------------------------
     CORES DE ROTEIROS (Mapa)
     ---------------------------------------- */
  --route-green: #4CAF50;
  --route-blue: #2196F3;
  --route-orange: #FF9800;
  --route-purple: #9C27B0;
  --route-pink: #E91E63;

  /* ----------------------------------------
     WHATSAPP
     ---------------------------------------- */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BD5A;
  
  /* ----------------------------------------
     GRADIENTES
     ---------------------------------------- */
  --gradient-golden-hour: linear-gradient(135deg, #D4A853 0%, #E8C87A 50%, #D4A853 100%);
  --gradient-ocean-depth: linear-gradient(180deg, #1E3A5F 0%, #2D4A6F 100%);
  --gradient-sunset-sky: linear-gradient(180deg, rgba(212, 168, 83, 0.1) 0%, rgba(250, 250, 248, 1) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(30, 58, 95, 0.3) 0%, rgba(30, 58, 95, 0.7) 100%);
  --gradient-instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  
  /* ----------------------------------------
     TIPOGRAFIA - FAMÍLIAS
     ---------------------------------------- */
  --font-display: 'Plus Jakarta Sans', sans-serif;  /* H1, H2, Display */
  --font-heading: 'DM Sans', sans-serif;            /* H3, H4, menus, botões */
  --font-body: 'Source Sans 3', sans-serif;         /* Corpo de texto */
  
  /* ----------------------------------------
     TIPOGRAFIA - ESCALA DESKTOP
     ---------------------------------------- */
  --text-display: 4.5rem;      /* 72px */
  --line-display: 1.1;
  --weight-display: 700;
  
  --text-h1: 3rem;             /* 48px */
  --line-h1: 1.2;
  --weight-h1: 700;
  
  --text-h2: 2.25rem;          /* 36px */
  --line-h2: 1.3;
  --weight-h2: 700;
  
  --text-h3: 1.5rem;           /* 24px */
  --line-h3: 1.4;
  --weight-h3: 600;
  
  --text-h4: 1.25rem;          /* 20px */
  --line-h4: 1.4;
  --weight-h4: 600;
  
  --text-lg: 1.125rem;         /* 18px - alias */
  --text-body-lg: 1.125rem;    /* 18px */
  --line-body-lg: 1.6;
  --line-heading: 1.3;

  --text-base: 1rem;           /* 16px - alias */
  --text-body: 1rem;           /* 16px */
  --line-body: 1.7;
  
  --text-body-sm: 0.875rem;    /* 14px */
  --line-body-sm: 1.6;
  
  --text-caption: 0.75rem;     /* 12px */
  --line-caption: 1.5;
  
  --text-button: 1rem;
  --weight-button: 600;
  --tracking-button: 0.025em;
  
  --text-overline: 0.75rem;
  --weight-overline: 600;
  --tracking-overline: 0.1em;
  
  /* ----------------------------------------
     ESPAÇAMENTOS - ESCALA 8px
     ---------------------------------------- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* ----------------------------------------
     LAYOUT
     ---------------------------------------- */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  
  /* ----------------------------------------
     BORDER RADIUS
     ---------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* ----------------------------------------
     SHADOWS
     ---------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.12);
  --shadow-xl: 0 20px 40px rgba(30, 58, 95, 0.15);
  --shadow-card-hover: 0 20px 40px rgba(30, 58, 95, 0.12);
  --shadow-button: 0 4px 14px rgba(212, 168, 83, 0.4);
  
  /* ----------------------------------------
     TRANSITIONS
     ---------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ----------------------------------------
     Z-INDEX
     ---------------------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-whatsapp: 700;
}

/* ============================================
   ESCALA MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-display: 3rem;
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.25rem;
    --text-h4: 1.125rem;
    --text-body-lg: 1rem;
    --container-padding: var(--space-4);
  }
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--charcoal);
  background-color: var(--sand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a {
  color: var(--wave-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--ocean-deep); }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, .h1, .h2 {
  font-family: var(--font-display);
  color: var(--ocean-deep);
  margin-bottom: var(--space-4);
}

h3, h4, h5, h6, .h3, .h4 {
  font-family: var(--font-heading);
  color: var(--ocean-deep);
  margin-bottom: var(--space-3);
}

h1, .h1 { font-size: var(--text-h1); line-height: var(--line-h1); font-weight: var(--weight-h1); }
h2, .h2 { font-size: var(--text-h2); line-height: var(--line-h2); font-weight: var(--weight-h2); }
h3, .h3 { font-size: var(--text-h3); line-height: var(--line-h3); font-weight: var(--weight-h3); }
h4, .h4 { font-size: var(--text-h4); line-height: var(--line-h4); font-weight: var(--weight-h4); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--line-display);
  font-weight: var(--weight-display);
}
.text-body-lg { font-size: var(--text-body-lg); line-height: var(--line-body-lg); }
.text-body-sm { font-size: var(--text-body-sm); line-height: var(--line-body-sm); }
.text-caption { font-family: var(--font-heading); font-size: var(--text-caption); }
.text-overline {
  font-family: var(--font-heading);
  font-size: var(--text-overline);
  font-weight: var(--weight-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--driftwood);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container-narrow { max-width: 900px; }
.container-wide { max-width: 1440px; }

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-8) 0; }
  .section-lg { padding: var(--space-16) 0; }
}

/* ============================================
   GRID & FLEX
   ============================================ */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   UTILITIES
   ============================================ */
.text-ocean { color: var(--ocean-deep); }
.text-gold { color: var(--sunset-gold); }
.text-blue { color: var(--wave-blue); }
.text-white { color: var(--white); }
.text-muted { color: var(--driftwood); }
.bg-sand { background-color: var(--sand-white); }
.bg-pearl { background-color: var(--pearl-gray); }
.bg-ocean { background-color: var(--ocean-deep); }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-tooltip);
  padding: var(--space-3) var(--space-4);
  background: var(--ocean-deep);
  color: var(--white);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--wave-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
