/* ============================================
   Grouse Mountain Gems — Nature Dark Theme
   ============================================ */

:root {
  /* Core colors inspired by stone, moss, and firelight */
  --bg: #111513;              /* dark forest base */
  --panel: #1a1e1c;           /* slate panel */
  --ink: #e5e4df;             /* warm light text */
  --muted: #a5a59b;           /* weathered silver */
  --brand: #77c598;           /* moss green highlight */
  --accent: #d3a868;          /* amber / copper accent */
  --link: #9ad8b1;
  --ring: #c7b17d;
  --shadow: 0 8px 30px rgba(0,0,0,.4);
  --rad: 14px;
  --wrap: clamp(16px, 5vw, 48px);
  --w: min(1100px, 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  color: var(--ink);
  background: radial-gradient(900px 600px at 70% -10%, #1c231f 0%, #111513 70%) fixed,
              var(--bg);
  font: 400 16px/1.7 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: var(--ink);
  margin: 0 0 .5rem;
  line-height: 1.25;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; color: var(--brand); }

.wrap { width: var(--w); margin: 0 auto; padding: 0 var(--wrap); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(26, 30, 28, 0.85);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.3rem;     /* smaller than previous 1.55rem */
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 800px) {
  .site-header .brand {
    font-size: 1.45rem;  /* scales on larger screens but stays below h1 */
  }
}

.brand-footer {
  font-size: 1.05rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.brand-wrap {
  display: inline-grid;
  place-items: center;
  width: 58px;            /* larger than the logo for safe padding */
  height: 58px;
  border-radius: 50%;
  background: var(--accent); 
  box-shadow: 0 0 10px rgba(255,255,255,0.35),
              0 0 16px rgba(119,197,152,0.18);
  overflow: visible;      /* ensure nothing gets clipped by the circle */
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 0;       /* IMPORTANT: no rounding on the image itself */
  margin: 0;
  padding: 0;
  background: transparent;
}
.site-header img.brand-mark { display: block; }
.site-nav a {
  color: var(--ink); text-decoration: none; opacity: .8;
  margin-left: 1.4rem; transition: opacity .2s;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; color: var(--brand); }

/* HERO */
.hero {
  padding: 6rem 0 3rem;
  background: linear-gradient(180deg, rgba(119,197,152,.12), transparent 70%);
}
.hero .sub {
  display: block; font: italic 600 1rem "Playfair Display", serif;
  color: var(--brand); margin-top: .25rem;
}
.tagline {
  max-width: 60ch; margin: 1rem 0 1.5rem;
  color: var(--ink);
}
.chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.chip {
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(119,197,152,.18);
  border: 1px solid rgba(119,197,152,.35);
  color: var(--brand);
  font-weight: 600;
}

/* PANELS & CARDS */
.panels {
  padding: 3rem 0 4rem;
}
.panel, .card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
.panel p, .card p { color: var(--ink); }
.grids {
  display: grid; gap: 1rem;
}
@media (min-width: 900px) {
  .grids { grid-template-columns: repeat(3, 1fr); }
}

/* GALLERY */
.gallery-section {
  padding: 2rem 0 3rem;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery figure {
  background: var(--panel);
  border-radius: var(--rad);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.gallery figcaption {
  padding: .75rem 1rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
}

/* FORMS */
.field {
  display: grid; gap: .35rem; margin-bottom: 1rem;
}
label {
  font-weight: 600; color: var(--brand);
}
input, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #161a18;
  color: var(--ink);
  font-size: 1rem;
}
input::placeholder, textarea::placeholder {
  color: #70756f;
}
input:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn {
  appearance: none; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: .3px;
  padding: .9rem 1rem; border-radius: 10px;
  color: #0e1a11;
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 80%, #000));
  box-shadow: var(--shadow);
  transition: filter .2s ease;
}
.btn:hover { filter: brightness(1.1); }

/* FOOTER */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #141815;
}
.footer-grid {
  display: grid; gap: 1rem; align-items: start;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
}
.footer-nav a {
  display: inline-block; margin-right: 1rem;
  color: var(--ink); text-decoration: none; opacity: .85;
}
.footer-nav a:hover { opacity: 1; color: var(--brand); }
.footer-note {
  text-align: right; color: var(--muted);
}
.brand-footer {
  display: flex; align-items: center; gap: .5rem; font-weight: 700;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  display: none; place-items: center;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.lightbox.open { display: grid; }
.lightbox-figure {
  max-width: min(95vw, 1100px);
  max-height: 85vh;
  margin: 0;
}
.lightbox-figure img {
  width: 100%; height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow);
}
.lightbox-figure figcaption {
  text-align: center; margin-top: .6rem; color: var(--muted);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none;
  background: rgba(20,22,20,.8);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.lightbox-close { top: 6%; right: 3%; transform: none; }
.lightbox-prev { left: 3%; }
.lightbox-next { right: 3%; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 4rem 0 2rem; }
  .tagline { font-size: 1rem; }
}
/* Header: shrink logo + title on narrow screens */
@media (max-width: 600px) {
  .brand-wrap {
    width: 42px;
    height: 42px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-header .brand {
    font-size: 1.05rem;     /* smaller title text */
    gap: 0.5rem;            /* tighter logo-to-text spacing */
  }

  .site-nav a {
    font-size: 0.9rem;
    margin-left: 0.6rem;
  }
}

/* Hero headline: scale down for mobile readability */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;       /* down from ~3.5rem desktop */
    line-height: 1.25;
  }

  .hero .sub {
    font-size: 0.95rem;
  }

  .tagline {
    font-size: 0.95rem;
  }
/* =======================================
   MOBILE HEADER SPACING FIX
   ======================================= */
@media (max-width: 600px) {
  .site-header .wrap {
    flex-direction: column;        /* stack title/nav vertically */
    align-items: center;
    justify-content: center;
    height: auto;                  /* allow header to grow naturally */
    padding: 0.6rem 0.8rem;        /* breathing room top/bottom */
    gap: 0.4rem;                   /* space between title and nav */
  }

  .site-header {
    height: auto;
    padding-bottom: 0.4rem;        /* consistent bottom margin */
  }

  .site-header .brand {
    font-size: 1.05rem;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .site-nav a {
    margin: 0;                     /* rely on gap spacing instead */
    font-size: 0.9rem;
  }
}
/* --- form UX improvements --- */
.form-banner {
  margin: 0.5rem 0 0.2rem;
  min-height: 1.2rem;
}
.form-banner.error {
  color: #ffd7b0; /* warm amber */
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #ffd7b0; /* amber warning */
}

#send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: saturate(80%);
}}
/* ===== About page tweaks ===== */
.about-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.portrait-card { padding: 0; overflow: hidden; }
.portrait-figure { margin: 0; display: block; }
.portrait-svg {
  display: block;
  width: 100%;
  height: auto;
  background: #1a1e1c;              /* match panel base */
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.portrait-card figcaption {
  padding: .8rem 1rem 1rem;
}

.prose h2, .prose h3 { margin-top: .2rem; }
.prose p { margin: .6rem 0 1rem; }
.about-badges { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }

/* Keep header spacing reasonable if title wraps on small devices */
@media (max-width: 600px) {
  .page-head h1 { font-size: 1.6rem; }
}
/* ===== About page tweaks (simplified portrait) ===== */
.about-grid {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.3fr;
    align-items: start;
  }
}

.portrait-card {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1rem;
}

.portrait-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dbfbe8; /* light blue-green border */
  box-shadow: 0 0 25px rgba(123, 214, 173, 0.2);
  background: #1a1e1c;
}

.prose h2, .prose h3 {
  margin-top: .3rem;
}
.prose p {
  margin: .6rem 0 1rem;
}

/* Adjust spacing on mobile */
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .portrait-card { margin-bottom: 1.4rem; }
  .prose { text-align: left; }
}

