/* ═══════════════════════════════════════════════════════
   Shoreline Foundry — shared styles
   Slate base · warm bronze accent · DM Serif + DM Sans
═══════════════════════════════════════════════════════ */

:root {
  /* slate ink */
  --ink:        #1d2731;
  --ink-2:      #47535e;
  --ink-3:      #808d99;
  /* cool off-white ("fog" / "sea glass") */
  --fog:        #eceeec;
  --fog-2:      #e4e7e5;
  --paper:      #fbfbf9;
  /* deep slate for dark bands */
  --slate:      #18222c;
  --slate-2:    #1f2b36;
  --hair-d:     rgba(255,255,255,0.12);
  /* forged bronze accent */
  --bronze:     #b06a3a;
  --bronze-2:   #97572c;
  --bronze-lt:  #c98a5e;

  --hair:       rgba(29,39,49,0.13);
  --radius:     4px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --maxw:       1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--fog);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

a { color: var(--bronze); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--bronze-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ── type helpers ── */
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--bronze);
  display: inline-block;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.62); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.05; }
p { text-wrap: pretty; }

/* ── buttons / links ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--bronze); color: #fff; }
.btn-primary:hover { background: var(--bronze-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost.on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.04); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.arrow-link .ar { transition: transform .2s ease; color: var(--bronze); }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover .ar { transform: translateX(4px); }

/* ═══ NAV ═══ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(236,238,236,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px; position: relative;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 11px;
  font-family: var(--font-serif); font-size: 27px; color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bronze); align-self: center; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  font-family: var(--font-sans);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-links a.current::after {
  content: ""; display: block; height: 1.5px; background: var(--bronze);
  margin-top: 3px;
}
.nav-cta { font-size: 14px !important; }
.nav-toggle {
  display: none; width: 44px; height: 44px; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 1px solid var(--hair); border-radius: 7px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══ FOOTER ═══ */
footer {
  background: var(--slate); color: rgba(255,255,255,0.7);
  padding: 64px 0 34px;
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--hair-d);
}
.foot-brand { font-family: var(--font-serif); font-size: 24px; color: #fff; margin-bottom: 14px; }
.foot-brand .mark { display:inline-block; width:8px;height:8px;border-radius:50%;background:var(--bronze);margin-right:8px;vertical-align:middle; }
.foot-tag { font-size: 14.5px; line-height: 1.65; max-width: 300px; color: rgba(255,255,255,0.6); }
.foot-col h5 {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600;
  margin-bottom: 16px;
}
.foot-col a { display: block; color: rgba(255,255,255,0.72); font-size: 14.5px; margin-bottom: 11px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 40px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.42); flex-wrap: wrap; gap: 12px;
}

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── responsive ── */
@media (max-width: 780px) {
  .wrap, .nav-inner, .foot-grid, .foot-bottom { padding-left: 22px; padding-right: 22px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fog); border-bottom: 1px solid var(--hair);
    box-shadow: 0 22px 40px rgba(24,34,44,0.12); padding: 6px 22px 18px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 16px; color: var(--ink); padding: 15px 2px; border-bottom: 1px solid var(--hair); }
  .nav-links a.current::after { display: none; }
  .nav-links a.current { color: var(--bronze); }
  .nav-cta { margin-top: 14px; justify-content: center; padding: 14px !important; border-bottom: none !important; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .brand { font-size: 22px; gap: 9px; }
  .brand .mark { width: 9px; height: 9px; }
}
