/* ═══════════════════════════════════════════════════════════
   Eastern Silver Group — Shared Stylesheet
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --ivory:       oklch(96.5% 0.012 82);
  --ivory-dk:    oklch(93% 0.014 80);
  --ivory-dkr:   oklch(89% 0.016 78);
  --charcoal:    oklch(20% 0.008 60);
  --charcoal-lt: oklch(42% 0.008 60);
  --brass:       oklch(62% 0.085 76);
  --brass-lt:    oklch(72% 0.065 76);
  --rule:        oklch(78% 0.010 76);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Helvetica, sans-serif;
  --max: 1280px;
  --pad: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  text-transform: uppercase;
  line-height: 1.2;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--charcoal-lt);
  text-transform: uppercase;
  line-height: 1;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav.main-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--brass);
  transition: right 0.3s ease;
}
nav.main-nav a:hover { color: var(--brass); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { right: 0; }
nav.main-nav a.active { color: var(--brass); }

.nav-contact {
  border: 1px solid var(--charcoal) !important;
  padding: 8px 18px;
  font-size: 10px !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-contact::after { display: none !important; }
.nav-contact:hover { background: var(--charcoal) !important; color: var(--ivory) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 68px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--brass); }

main { padding-top: 68px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: pretty;
}

.section-title-italic {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  text-wrap: pretty;
}

.body-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--charcoal-lt);
}

.small-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--charcoal-lt);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  display: inline-block;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--charcoal); }

.btn-ghost {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.btn-ghost:hover { color: var(--brass); border-color: var(--brass); }

.btn-brass {
  display: inline-block;
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 14px 32px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-brass:hover { background: var(--brass); color: var(--charcoal); }

/* ─── INNER HERO ─────────────────────────────────────────── */
.inner-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 68vh;
  border-bottom: 1px solid var(--rule);
}
.inner-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 6vw, 90px) var(--pad) clamp(40px, 5vw, 72px);
}
.inner-hero-right {
  overflow: hidden;
  position: relative;
}
.inner-hero-right img,
.inner-hero-right .img-ph { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-hero-full {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(60px, 8vw, 120px) var(--pad) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
  max-width: var(--max);
  margin: 0 auto;
}

/* ─── DIVIDERS & LAYOUT ──────────────────────────────────── */
.rule-h { width: 100%; height: 1px; background: var(--rule); }

.section-pad { padding: clamp(60px, 8vw, 110px) var(--pad); }
.section-pad-sm { padding: clamp(40px, 5vw, 72px) var(--pad); }

.inner-max { max-width: var(--max); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col-40-60 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.col-border-right { border-right: 1px solid var(--rule); }
.col-border-left  { border-left: 1px solid var(--rule); }
.col-pad { padding: 0 48px; }
.col-pad:first-child { padding-left: 0; }
.col-pad:last-child  { padding-right: 0; border-right: none; }

.toned { background: var(--ivory-dk); }
.dark  { background: var(--charcoal); color: var(--ivory); }

/* ─── IMAGE PLACEHOLDER ──────────────────────────────────── */
.img-ph {
  width: 100%;
  height: 100%;
  background: var(--ivory-dk);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 200px;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent, transparent 8px,
    oklch(88% 0.014 78 / 0.35) 8px,
    oklch(88% 0.014 78 / 0.35) 9px
  );
}
.img-ph-label {
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--charcoal-lt);
  padding: 8px 12px;
  background: oklch(100% 0 0 / 0.6);
  line-height: 1.5;
}

/* ─── THIN RULE ACCENT ───────────────────────────────────── */
.brass-rule {
  width: 32px;
  height: 1px;
  background: var(--brass);
  margin-bottom: 28px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: oklch(16% 0.008 60);
  color: oklch(72% 0.008 78);
  padding: 80px var(--pad) 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(28% 0.006 70);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-name {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.2;
  display: block;
}
.footer-logo-sub {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(55% 0.008 78);
  line-height: 1;
  display: block;
}
.footer-tagline { font-size: 12px; line-height: 1.8; color: oklch(55% 0.008 78); max-width: 200px; }
.footer-col-title {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12px; color: oklch(58% 0.008 78); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--brass-lt); }
.footer-contact-item {
  font-size: 12px;
  color: oklch(58% 0.008 78);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-icon { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--brass); }
.footer-locations {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: oklch(48% 0.008 78);
  margin-top: 16px;
  letter-spacing: 0.05em;
}
.footer-locations span { border-left: 1px solid oklch(32% 0.006 70); padding-left: 12px; }
.footer-locations span:first-child { border-left: none; padding-left: 0; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11px; color: oklch(42% 0.006 78); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 11px; color: oklch(42% 0.006 78); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--brass-lt); }

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .inner-hero { grid-template-columns: 1fr; }
  .inner-hero-left { padding-bottom: 48px; }
  .inner-hero-right { height: 300px; }
  .two-col, .two-col-40-60, .three-col { grid-template-columns: 1fr; gap: 40px; }
  .col-border-right { border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
  .col-border-left  { border-left: none; border-top: 1px solid var(--rule); padding-top: 40px; }
  .col-pad { padding: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
