/* =====================================================================
   THE GWIN — Gwin Mine Holdings, LLC
   Shared stylesheet. Dark-gold heritage theme, fully responsive.
   ===================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --black:      #0d0b08;
  --near-black: #141109;
  --panel:      #1a160f;
  --panel-2:    #211b12;
  --cream:      #efe7d6;
  --cream-2:    #e4d8bf;
  --ink:        #1c1710;
  --gold:       #c8a24a;
  --gold-light: #e6c874;
  --gold-deep:  #9c7a2e;
  --line:       rgba(200,162,74,0.28);
  --text:       #d8cdb8;
  --text-dim:   #a89c83;
  --white:      #f7f2e8;
  --maxw:       1180px;
  --serif:      "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display:    "Cinzel", Georgia, serif;
  --shadow:     0 18px 50px rgba(0,0,0,0.55);
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  font-size: 19px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--white); }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--white); letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); letter-spacing: .08em; text-transform: uppercase; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--cream-2); }
.gold { color: var(--gold-light); }
.script { font-style: italic; color: var(--gold-light); font-size: 1.15rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }

/* Ornamental divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 28px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { color: var(--gold); letter-spacing: .3em; font-size: .8rem; text-transform: uppercase; }
.eyebrow { color: var(--gold); letter-spacing: .32em; text-transform: uppercase; font-size: .8rem; font-family: var(--display); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn--solid { background: var(--gold); color: var(--black); }
.btn--solid:hover { background: var(--gold-light); color: var(--black); }
.btn--dark { border-color: var(--ink); color: var(--cream); background: rgba(0,0,0,.4); }
.btn--dark:hover { background: var(--ink); color: var(--gold-light); border-color: var(--gold); }

/* ---- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,11,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand__text { line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.35rem; color: var(--gold-light); letter-spacing: .12em; }
.brand__sub  { font-size: .62rem; color: var(--text-dim); letter-spacing: .28em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__links a {
  font-family: var(--display); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--gold-light); margin: 5px 0; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  background-color: #0d0b08;
  background-image:
    /* left fade — keeps text readable, melts photo into black on the left */
    linear-gradient(90deg, #0d0b08 0%, rgba(13,11,8,.92) 28%, rgba(13,11,8,.45) 60%, rgba(13,11,8,.15) 100%),
    /* top + bottom fade — dissolves the photo into the page background */
    linear-gradient(180deg, #0d0b08 0%, rgba(13,11,8,.35) 16%, transparent 42%, transparent 60%, rgba(13,11,8,.85) 90%, #0d0b08 100%),
    url("../images/hero-mine.jpg");
  background-size: cover; background-position: center;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; width: 100%; }
.hero__logo { width: 210px; margin-bottom: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; margin: 20px 0 30px; }
.hero__scroll { text-align: center; color: var(--gold); letter-spacing: .3em; font-size: .72rem; padding: 18px 0 6px; }

/* Page banner (inner pages) */
.banner {
  position: relative; padding: 96px 0 64px; text-align: center;
  background-color: #0d0b08;
  background-image: linear-gradient(180deg, rgba(13,11,8,.7), rgba(13,11,8,.92)),
                    linear-gradient(120deg, #2a2416, #0d0b08);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.banner.b-hero      { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/hero-mine.jpg"); }
.banner.b-history   { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/history-banner.jpg"); }
.banner.b-vision    { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/vision-banner.jpg"); }
.banner.b-community { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/community-banner.jpg"); }
.banner.b-permits   { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/permits-banner.jpg"); }
.banner.b-gallery   { background-image: linear-gradient(180deg, rgba(13,11,8,.60), rgba(13,11,8,.90)), url("../images/gallery-banner.jpg"); }
.banner h1 { margin-bottom: 6px; }
.banner p { color: var(--cream-2); }

/* ---- Value icon strip ------------------------------------------------- */
.values { background: var(--near-black); border-bottom: 1px solid var(--line); }
.values__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: var(--maxw); margin: 0 auto;
}
.value {
  padding: 40px 18px; text-align: center;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: 0; }
.value__icon { font-size: 1.9rem; color: var(--gold); margin-bottom: 12px; }
.value h4 { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.value p { font-size: .95rem; color: var(--text-dim); margin: 0; }

/* ---- Our Story cream band -------------------------------------------- */
.story-band { background: var(--cream); color: var(--ink); }
.story-band .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.story-band h2 { color: var(--ink); }
.story-band p { color: #4a4030; }
.story-band .divider span { color: var(--gold-deep); }
.story-band .divider::before { background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.story-band .divider::after  { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.photo-strip { display: flex; gap: 12px; }
.photo-strip .ph { flex: 1; aspect-ratio: 3/4; box-shadow: var(--shadow); }

/* ---- Split: project status + gallery --------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.status-list { list-style: none; margin-top: 18px; }
.status-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.status-list .label { color: var(--cream); }
.badge { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--gold-light); }
.badge--active   { color: #9ad29a; border-color: rgba(154,210,154,.4); }
.badge--progress { color: var(--gold-light); border-color: var(--line); }
.badge--ongoing  { color: var(--cream); }
.badge--planned  { color: var(--text-dim); }

.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-gallery .ph { aspect-ratio: 1; }

/* ---- Image placeholders ---------------------------------------------- */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(200,162,74,.06) 0 12px, transparent 12px 24px),
    var(--panel-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-dim); font-family: var(--display); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 10px; overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Gallery grid (gallery page) ------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; }
.gallery-grid .ph { aspect-ratio: 4/3; }
.gallery-grid figcaption { color: var(--gold-light); font-size: .85rem; text-align: center; padding-top: 8px; font-family: var(--display); letter-spacing: .08em; }

/* ---- Lightbox (gallery click-to-enlarge) ----------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 40px 24px;
  background: rgba(8,7,5,0.93); cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-fade .18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; cursor: default; }
.lightbox img {
  max-width: 94vw; max-height: 84vh; object-fit: contain;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel);
}
.lightbox figcaption {
  color: var(--cream-2); font-family: var(--display); letter-spacing: .08em;
  font-size: .95rem; margin-top: 16px; text-align: center; max-width: 60ch;
}
.lightbox__close {
  position: absolute; top: 14px; right: 22px; background: none; border: 0;
  color: var(--gold-light); font-size: 2.4rem; line-height: 1; cursor: pointer;
  font-family: var(--display); padding: 6px 10px;
}
.lightbox__close:hover { color: var(--white); }

/* ---- Content prose ---------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 32px 0 10px; color: var(--gold-light); }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* Card grid (community / vision) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 30px 26px; }
.card__icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; }
.card h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--text-dim); margin: 0; }

/* Timeline (history) */
.timeline { max-width: 860px; margin: 0 auto; position: relative; }
.timeline::before { content:""; position: absolute; left: 170px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 170px 1fr; gap: 42px; padding: 0 0 40px; position: relative; }
.tl-item .year { font-family: var(--display); color: var(--gold-light); font-size: .92rem; letter-spacing: .04em; text-align: right; padding-right: 26px; padding-top: 4px; white-space: nowrap; }
.tl-item .body h3 { margin-bottom: 6px; }
.tl-item .body { position: relative; }
.tl-item .body::before { content:""; position: absolute; left: -47px; top: 6px; width: 11px; height: 11px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--near-black); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); color: var(--gold-light); letter-spacing: .04em; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 12px; color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  color: var(--white); font-family: var(--serif); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row .k { color: var(--gold-light); font-family: var(--display); letter-spacing: .1em; font-size: .78rem; text-transform: uppercase; min-width: 90px; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--near-black); border-top: 1px solid var(--line); }
.footer-tagline { text-align: center; padding: 40px 24px 14px; }
.footer-tagline .script { font-size: 1.35rem; }
.footer-tagline p.small { color: var(--text-dim); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-family: var(--display); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; border-top: 1px solid var(--line); }
.footer-cols h4 { font-size: .78rem; letter-spacing: .16em; color: var(--gold-light); margin-bottom: 14px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--text-dim); font-size: .95rem; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .82rem; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .value:nth-child(3) { border-right: 0; }
  .value { border-bottom: 1px solid var(--line); }
  .split, .story-band .container, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--near-black); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.open { max-height: 620px; }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 15px 24px; }
  .section { padding: 60px 0; }
  .hero { min-height: 70vh; }
  .timeline::before { left: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .tl-item .year { text-align: left; }
  .tl-item .body::before { left: -22px; }
}
@media (max-width: 520px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .cards, .gallery-grid, .mini-gallery { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
