/* ============================================================
   STERLING STONE STITCH — brand stylesheet
   Palette locked Sep 23 2026: turquoise / silver / gold
   bg #0E3A3C · text #E8EAF0 · gold #C9A961 · muted #9AA3B5
   Fonts: Cormorant Garamond (headline) + Montserrat (body)
   Design principle: plain readable fonts, no decorative swash.
   ============================================================ */

:root {
  --turq: #0E3A3C;
  --turq-deep: #0A2C2E;
  --turq-soft: #155257;
  --silver: #E8EAF0;
  --gold: #C9A961;
  --gold-soft: #DFC583;
  --muted: #9AA3B5;
  --line: rgba(232, 234, 240, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --space: clamp(2.5rem, 7vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--turq);
  color: var(--silver);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain + radial glow for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(700px 600px at -5% 30%, rgba(21, 82, 87, 0.55), transparent 65%);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: var(--space) 0; }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; color: var(--silver); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.3; }
p { color: var(--muted); }
.lead { color: var(--silver); font-size: 1.12rem; }
small { color: var(--muted); }

.gold { color: var(--gold); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rule { width: 56px; height: 1px; background: var(--gold); margin: 1.4rem 0 1.6rem; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: rgba(10, 44, 46, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 500; }
nav.main { display: flex; align-items: center; gap: 6px; }
nav.main a {
  color: var(--silver); text-decoration: none; font-size: 0.86rem;
  padding: 10px 14px; border-radius: 8px; transition: color .18s, background .18s;
}
nav.main a:hover { color: var(--gold); background: rgba(201,169,97,.08); }
nav.main a.cta { background: var(--gold); color: var(--turq-deep); font-weight: 600; }
nav.main a.cta:hover { background: var(--gold-soft); color: var(--turq-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--silver); font-size: 1.2rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.7; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 82% -12%, rgba(201,169,97,0.18), transparent 62%),
    radial-gradient(820px 660px at 4% 30%, rgba(21,82,87,0.5), transparent 66%),
    radial-gradient(700px 500px at 96% 108%, rgba(201,169,97,0.10), transparent 60%),
    repeating-linear-gradient(118deg, rgba(232,234,240,0.018) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, #0A2C2E 0%, #0E3A3C 48%, #123F41 100%);
}
/* Optional: when a real photo is provided, set data-photo on .hero to use it */
.hero[data-photo] .hero-bg {
  background: linear-gradient(180deg, rgba(10,44,46,0.15), rgba(10,44,46,0.65)),
              url('img/hero.jpg') center/cover no-repeat;
  opacity: 1;
}
.hero .inner { max-width: 820px; }
.hero h1 span { display: block; }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--gold-soft); margin-top: 0.6rem; }
.hero .sub { margin: 1.5rem 0 2.2rem; max-width: 560px; color: var(--muted); }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--turq-deep); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(201,169,97,.3); }
.btn-ghost { border: 1px solid var(--line); color: var(--silver); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- pillar cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(201,169,97,.4); }
.card .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(201,169,97,.12); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--gold); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--gold); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.card a.more:hover { text-decoration: underline; }

/* ---------- categories ---------- */
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cat {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; background: var(--card);
}
.cat .ph { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--turq-deep), var(--turq-soft)); border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.cat .ph svg { width: 40px; height: 40px; stroke: rgba(201,169,97,.5); margin-bottom: 8px; }
.cat .bd { padding: 20px; }
.cat h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.cat p { font-size: 0.9rem; }
.cat .taglist { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat .taglist span { font-size: 0.68rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

/* ---------- split/story ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.story-block h2 { margin-bottom: 20px; }
.story-block p { margin-bottom: 16px; }
.story-block blockquote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--silver); border-left: 3px solid var(--gold); padding-left: 18px; margin: 24px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 500; }
.stat span { font-size: 0.8rem; color: var(--muted); }

/* ---------- values tick column for about ---------- */
.values { list-style: none; }
.values li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.values li:last-child { border-bottom: none; }
.values .v { color: var(--gold); margin-top: 2px; }

/* ---------- CTA band ---------- */
.band { background: linear-gradient(135deg, var(--turq-deep), var(--turq-soft)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(2rem,5vw,3.4rem); text-align: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.fields { display: flex; flex-direction: column; gap: 16px; }
.fields label { font-size: 0.82rem; color: var(--silver); font-weight: 600; }
.fields input, .fields textarea, .fields select {
  font-family: var(--sans); font-size: 16px; color: var(--silver);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; width: 100%; outline: none; transition: border-color .18s;
}
.fields input:focus, .fields textarea:focus { border-color: var(--gold); }
.fields textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
footer.site { padding: 46px 0 36px; border-top: 1px solid var(--line); background: var(--turq-deep); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.foot-grid h5 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.foot-grid a:hover { color: var(--silver); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* ---------- page banner ---------- */
.page-hero { padding: 60px 0 0; }
.page-hero h1 { margin-bottom: 12px; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .split, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: 26px; }
  nav.main { display: none; flex-direction: column; gap: 4px; width: 100%; padding-top: 10px; }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
