/* ============================================================
   Hawaii Trip Planner Hub — Global Styles
   Brand: Hawaii's Best Travel
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties (Brand Colors + Tokens)
   ============================================================ */
:root {
  /* Brand Colors — refreshed July 2026 per HawaiisBest_Master_Brand_Guide.docx.
     Signature Teal #4BA59D is retired from buttons (soft accent only).
     Coral #D87070 is retired; --color-coral now maps to Dark Red Accent #A54B53.
     CTA Green-Teal #007A72 is the only button color, everywhere. */
  --color-primary:       #4BA59D;
  --color-dark-teal:     #2B6975;
  --color-deep-teal:     #00958C;
  --color-cta:           #007A72;
  --color-coral:         #A54B53;
  --color-yellow:        #F2C94C;
  --color-sand:          #F2EDE4;
  --color-charcoal:      #2B2B2B;
  --color-white:         #FFFFFF;
  --color-gray-border:   #E5E5E5;
  --color-gray-light:    #F8F7F5;
  --color-gray-mid:      #8A8A8A;
  --color-overlay:       rgba(43, 105, 117, 0.82);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', 'Montserrat', sans-serif;

  /* Spacing Scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(43,43,43,0.08);
  --shadow-md:   0 4px 16px rgba(43,43,43,0.10);
  --shadow-lg:   0 8px 32px rgba(43,43,43,0.13);
  --shadow-card: 0 2px 12px rgba(75,165,157,0.10);

  /* Transitions */
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background-color: var(--color-sand);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.heading-xl {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.heading-md {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.3;
}

.heading-sm {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.body-lg {
  font-size: 1.0625rem;  /* 17px */
  font-weight: 400;
  line-height: 1.65;
}

.body-md {
  font-size: 1rem;       /* 16px — minimum for comfortable mobile reading */
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-size: 0.9375rem;  /* 15px — up from 13px for legibility */
  font-weight: 400;
  line-height: 1.55;
}

.text-center { text-align: center; }
.text-muted   { color: #5a5a5a; } /* darkened from #8A8A8A for better contrast */

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--wide {
  max-width: 960px;
}

.section-gap {
  padding-block: var(--space-2xl);
}

.section-gap--sm {
  padding-block: var(--space-xl);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--cta {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(0,122,114,0.30);
}

.btn--cta:hover {
  background: #00635C;
  box-shadow: 0 6px 24px rgba(0,122,114,0.36);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0,122,114,0.28);
}

.btn--primary:hover {
  background: #00635C;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark-teal);
  border-color: var(--color-dark-teal);
}

.btn--outline:hover {
  background: var(--color-dark-teal);
  color: var(--color-white);
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.35);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 17px 36px;
  font-size: 1rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Badge / Tag
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--yellow {
  background: var(--color-yellow);
  color: #5A4500;
}

.badge--teal {
  background: rgba(75,165,157,0.15);
  color: var(--color-dark-teal);
}

.badge--coral {
  background: rgba(165,75,83,0.14);
  color: var(--color-coral);
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--color-gray-border);
  margin-block: var(--space-xl);
}

/* ============================================================
   Scroll Reveal Animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive helpers
   ============================================================ */
@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-xl);
  }
}
