/* =========================================================================
   TIDAL ROOTS GHANA — MAIN STYLESHEET
   -------------------------------------------------------------------------
   A coastal-conservation NGO site built with pure HTML5 + CSS3.
   No frameworks (Bootstrap/Tailwind) and no JavaScript are used anywhere
   in this project — the mobile nav menu below is done with a pure-CSS
   "checkbox hack" instead of a JS toggle.

   TABLE OF CONTENTS
   1.  Font imports
   2.  CSS reset / base element rules
   3.  Design tokens (custom properties)
   4.  Global typography
   5.  Layout helpers (container, grid, flex utilities)
   6.  Buttons
   7.  Site header & primary navigation (incl. CSS-only mobile menu)
   8.  Hero sections (homepage hero + small page banners)
   9.  Section dividers (the wave / tideline signature shape)
   10. Cards (projects, gallery, testimonials, team)
   11. Stats band
   12. Tables
   13. Forms
   14. Asides / callout boxes
   15. Footer
   16. Animations
   17. Accessibility helpers
   18. Responsive media queries
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. FONT IMPORTS
   Fraunces   -> display/heading face (warm, characterful serif)
   Work Sans  -> body face (clean, humanist sans-serif)
   JetBrains Mono -> utility face for stats, labels, eyebrow tags
   ------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,400..600&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');


/* -------------------------------------------------------------------------
   2. RESET / BASE
   A light reset so every browser starts from the same baseline.
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; }

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

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

button { font: inherit; cursor: pointer; border: none; background: none; }

table { border-collapse: collapse; width: 100%; }

input, textarea, select { font: inherit; color: inherit; }


/* -------------------------------------------------------------------------
   3. DESIGN TOKENS
   The full palette + scale used across every page. Changing a value here
   updates the whole site, since every component below references these.
   ------------------------------------------------------------------------- */
:root {
  /* Colour palette — named after the place it represents */
  --clr-deep:      #1F4D3D; /* mangrove deep green  — header/nav/footer   */
  --clr-deep-2:    #163A2E; /* darker shade of deep green for gradients   */
  --clr-mid:       #3F7D58; /* palm green           — secondary buttons   */
  --clr-teal:      #2A6F77; /* lagoon teal          — water/sanitation    */
  --clr-gold:      #E8A33D; /* sunrise gold         — primary CTA accent  */
  --clr-gold-dark: #C97F1F; /* gold hover/active state                   */
  --clr-sand:      #F6F1E4; /* sand                 — alt section bg      */
  --clr-paper:     #FFFEFB; /* paper                — main page bg        */
  --clr-ink:       #1C231F; /* charcoal ink         — primary text        */
  --clr-ink-soft:  #586358; /* soft ink             — secondary text      */
  --clr-line:      #DDD6C4; /* hairline rule colour on sand backgrounds   */
  --clr-white:     #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale (rem-based, multiples of 0.5rem) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  /* Radii + shadows reused on cards, buttons, inputs */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(28, 35, 31, 0.08);
  --shadow-md: 0 10px 28px rgba(28, 35, 31, 0.12);
  --shadow-lg: 0 22px 48px rgba(28, 35, 31, 0.18);

  /* Shared max width for page content */
  --container: 1200px;
}


/* -------------------------------------------------------------------------
   4. GLOBAL TYPOGRAPHY
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--clr-ink);
  background: var(--clr-paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--clr-deep);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--clr-ink-soft); max-width: 70ch; }

/* Small uppercase "eyebrow" label used above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--clr-gold);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }

.lede { font-size: 1.15rem; }


/* -------------------------------------------------------------------------
   5. LAYOUT HELPERS
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, var(--space-4));
}

.section { padding-block: var(--space-7); }
.section.tight { padding-block: var(--space-6); }
.section--sand   { background: var(--clr-sand); }
.section--deep   { background: var(--clr-deep); color: var(--clr-white); }
.section--deep h2, .section--deep h3 { color: var(--clr-white); }
.section--deep p { color: rgba(255,255,255,0.78); }

.grid          { display: grid; gap: var(--space-4); }
.grid-2        { grid-template-columns: repeat(2, 1fr); }
.grid-3        { grid-template-columns: repeat(3, 1fr); }
.grid-4        { grid-template-columns: repeat(4, 1fr); }
.grid-auto     { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.flex          { display: flex; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-wrap     { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}


/* -------------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--clr-gold);
  color: var(--clr-deep-2);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--clr-gold-dark); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--clr-white); }

.btn--ink {
  background: var(--clr-deep);
  color: var(--clr-white);
}
.btn--ink:hover { background: var(--clr-deep-2); box-shadow: var(--shadow-md); }

.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--clr-gold); outline-offset: 2px; }


/* -------------------------------------------------------------------------
   7. SITE HEADER & NAVIGATION
   Structure: <header> > .topbar  +  .navbar (logo, nav, CTA)
   Mobile menu uses a hidden checkbox + label "hamburger hack" — pure CSS,
   no JavaScript required.
   ------------------------------------------------------------------------- */
.topbar {
  background: var(--clr-sand);
  color: var(--clr-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--clr-line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: 0.45rem; flex-wrap: wrap; gap: 0.4rem; }
.topbar a { text-decoration: underline; text-decoration-color: var(--clr-gold); }

.navbar {
  background: var(--clr-deep);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--clr-white); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--clr-gold); text-transform: uppercase; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul { display: flex; gap: var(--space-3); list-style: none; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--clr-gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--clr-white); }

/* Hide the checkbox + give the label a hamburger icon */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle-label span {
  height: 2.5px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* -------------------------------------------------------------------------
   8. HERO SECTIONS
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--clr-deep) 0%, var(--clr-deep-2) 55%, var(--clr-teal) 130%);
  color: var(--clr-white);
  overflow: hidden;
  padding-top: var(--space-7);
  padding-bottom: calc(var(--space-7) + 60px); /* extra room for wave divider */
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-eyebrow { color: var(--clr-gold); }
.hero h1 { color: var(--clr-white); margin-bottom: var(--space-3); }
.hero p.lede { color: rgba(255,255,255,0.82); margin-bottom: var(--space-4); max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Faint root/branch pattern sitting behind the hero text */
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.16;
  background-size: 420px;
  background-repeat: repeat;
}

.hero-art { position: relative; z-index: 2; }

/* Small page banner used on every page other than the homepage */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--clr-deep) 0%, var(--clr-teal) 130%);
  color: var(--clr-white);
  padding-top: var(--space-6);
  padding-bottom: calc(var(--space-5) + 50px);
  overflow: hidden;
}
.page-banner .container { position: relative; z-index: 2; max-width: 760px; }
.page-banner h1 { color: var(--clr-white); margin-bottom: var(--space-2); }
.page-banner p { color: rgba(255,255,255,0.82); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--clr-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.breadcrumb a { text-decoration: underline; text-decoration-color: rgba(232,163,61,0.5); }


/* -------------------------------------------------------------------------
   9. SECTION DIVIDERS — the "tideline" wave
   A reusable SVG wave sits at the base of hero/banner sections to give
   the site its signature coastal silhouette.
   ------------------------------------------------------------------------- */
.tideline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  z-index: 3;
  display: block;
}


/* -------------------------------------------------------------------------
   10. CARDS — projects, gallery, testimonials, team
   ------------------------------------------------------------------------- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media svg { width: 56%; height: 56%; }

.card-body { padding: var(--space-3); }
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--clr-sand);
  color: var(--clr-teal);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--clr-line);
  font-size: 0.85rem;
  color: var(--clr-ink-soft);
}
.card-meta span { display: flex; align-items: center; gap: 0.35em; }
.card-meta svg { width: 15px; height: 15px; }

.card-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-mid);
}

/* Team member card */
.team-card { text-align: center; padding: var(--space-3); }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto var(--space-2); }
.team-card .avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 0 var(--space-2);
}
.team-card h4 { margin-bottom: 0.2rem; }
.team-role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--clr-teal); text-transform: uppercase; letter-spacing: 0.04em; }

/* Testimonial card */
.quote-card { padding: var(--space-4); position: relative; }
.quote-mark { width: 34px; height: 34px; color: var(--clr-gold); margin-bottom: var(--space-2); }
.quote-card p { color: var(--clr-ink); font-style: italic; }
.quote-by { display: flex; align-items: center; gap: 0.65rem; margin-top: var(--space-3); }
.quote-by .avatar { width: 44px; height: 44px; margin: 0; }
.quote-by-name { font-weight: 600; font-size: 0.92rem; }
.quote-by-role { font-size: 0.8rem; color: var(--clr-ink-soft); }

/* Gallery grid (masonry-ish via varied row spans) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-2);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  isolation: isolate;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item svg { width: 38%; height: 38%; opacity: 0.92; position: relative; z-index: 1; }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(16,28,21,0.86));
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-item:hover svg { transform: scale(1.08); transition: transform .3s ease; }


/* -------------------------------------------------------------------------
   11. STATS BAND
   ------------------------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat-figure {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--clr-gold);
  display: block;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  margin-top: 0.3rem;
}


/* -------------------------------------------------------------------------
   12. TABLES
   ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.data-table { background: var(--clr-white); min-width: 480px; }
.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-teal);
  padding: var(--space-2) var(--space-3) 0;
}
.data-table th, .data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-line);
  font-size: 0.95rem;
}
.data-table thead th {
  background: var(--clr-deep);
  color: var(--clr-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tbody tr:hover { background: var(--clr-sand); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--clr-deep); }


/* -------------------------------------------------------------------------
   13. FORMS
   ------------------------------------------------------------------------- */
.form-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-3); }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--clr-deep); }
.field .hint { font-size: 0.78rem; color: var(--clr-ink-soft); }
.field input,
.field select,
.field textarea {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--clr-line);
  border-radius: var(--radius-sm);
  background: var(--clr-paper);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(42,111,119,0.18);
}
.field textarea { resize: vertical; min-height: 110px; }

.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.radio-option, .checkbox-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--clr-line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}
.radio-option input, .checkbox-option input { accent-color: var(--clr-teal); width: 16px; height: 16px; }

fieldset { border: 1.5px dashed var(--clr-line); border-radius: var(--radius-md); padding: var(--space-3); margin-bottom: var(--space-3); }
legend { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-teal); padding: 0 0.4rem; font-weight: 600; }


/* -------------------------------------------------------------------------
   14. ASIDES / CALLOUT BOXES
   ------------------------------------------------------------------------- */
aside.callout {
  background: var(--clr-sand);
  border-left: 4px solid var(--clr-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
aside.callout h4 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
aside.callout ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
aside.callout li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--clr-ink-soft); }
aside.callout li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--clr-teal); margin-top: 2px; }


/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
footer.site-footer {
  background: var(--clr-deep-2);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}
.footer-brand .brand-name { color: var(--clr-white); }
.footer-brand p { color: rgba(255,255,255,0.68); margin-top: var(--space-2); max-width: 32ch; }
.footer-col h4 { color: var(--clr-white); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a:hover { color: var(--clr-gold); }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.68); line-height: 1.7; }

.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-2); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: var(--clr-gold); border-color: var(--clr-gold); }
.social-row svg { width: 17px; height: 17px; }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: var(--space-2); }
.newsletter-form input {
  flex: 1; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: var(--clr-white);
  min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn { padding: 0.65rem 1.1rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--space-3);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { text-decoration: underline; }


/* -------------------------------------------------------------------------
   16. ANIMATIONS
   ------------------------------------------------------------------------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: floatY 6s ease-in-out infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }


/* -------------------------------------------------------------------------
   17. ACCESSIBILITY
   ------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--clr-gold); color: var(--clr-deep-2);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

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


/* -------------------------------------------------------------------------
   18. RESPONSIVE MEDIA QUERIES
   Breakpoints: 1024px (tablet landscape/laptop), 768px (tablet portrait),
   480px (mobile).
   ------------------------------------------------------------------------- */

/* ----- Laptops / small desktops ----- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* ----- Tablets ----- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 320px; }
  .two-col { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

/* ----- Mobile nav switches on here ----- */
@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--clr-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) var(--space-4) var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav ul { flex-direction: column; gap: var(--space-2); width: 100%; }
  .main-nav .btn { margin-top: var(--space-2); }
  .navbar { position: sticky; }
  .navbar .container { position: relative; }

  .nav-toggle:checked ~ .main-nav { max-height: 420px; }

  /* turn hamburger into an X when open */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .topbar .container { justify-content: center; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* ----- Mobile phones ----- */
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.wide { grid-column: span 2; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .form-card { padding: var(--space-3); }
  .hero { padding-top: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stats-band { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .topbar .container { font-size: 0.7rem; }
  .brand-name { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
