/* ─────────────────────────────────────────────
   HERMITAGE PARK SERVICES LTD
   Dark advisory aesthetic
   Deep black (#0a0a0a / #0f0f0f) with antique gold (#c9a86b)
   and a hint of forest green for tertiary moments
   ───────────────────────────────────────────── */

:root {
  --black:        #0a0a0a;
  --black-soft:   #131311;
  --black-card:   #16160e;
  --black-rule:   #1f1d18;
  --green-deep:   #0e2818;
  --green-soft:   #1c4030;
  --gold:         #c9a86b;
  --gold-soft:    #e1c993;
  --gold-bright:  #f4e0a8;
  --gold-deep:    #8b6f3e;
  --gold-faint:   rgba(201, 168, 107, 0.16);
  --ivory:        #ebe3d2;
  --ivory-soft:   #d8cfb8;
  --ivory-quiet:  rgba(235, 227, 210, 0.55);
  --ivory-faint:  rgba(235, 227, 210, 0.32);
  --rule:         rgba(201, 168, 107, 0.14);
  --rule-soft:    rgba(201, 168, 107, 0.08);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Source Serif 4", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle radial atmosphere - hint of warmth top-left, hint of green bottom-right */
  background-image:
    radial-gradient(ellipse 80% 60% at 18% -10%, rgba(201, 168, 107, 0.08), transparent 65%),
    radial-gradient(ellipse 70% 50% at 88% 105%, rgba(28, 64, 48, 0.18), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--gold-soft); text-decoration: none; transition: color 220ms; }
a:hover { color: var(--gold-bright); }

::selection { background: var(--gold); color: var(--black); }

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

/* ── HEADER ───────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.mark-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.02em;
  transition: color 220ms;
}

.brand-mark:hover .mark-text { color: var(--gold-soft); }

.mark-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-style: italic;
  color: var(--gold-deep);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

.primary-nav { display: flex; gap: 36px; }

.primary-nav a {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ivory-quiet);
  position: relative;
}

.primary-nav a:hover { color: var(--ivory); }

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 280ms ease;
}

.primary-nav a:hover::after { transform: scaleX(1); }

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 168, 107, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(28, 64, 48, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crest-frame {
  width: 360px;
  margin-bottom: 36px;
  filter: drop-shadow(0 24px 50px rgba(201, 168, 107, 0.16)) drop-shadow(0 0 40px rgba(201, 168, 107, 0.10));
  animation: crest-rise 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  /* Isolate this stacking context so blend mode only mixes with the page bg,
     not with elements behind it */
  isolation: isolate;
}

.crest {
  width: 100%;
  height: auto;
  display: block;
  /* Pure-black pixels in the PNG become invisible against the page.
     Gold and green colours are brighter than the page bg, so they remain visible.
     This kills the rectangular logo box without needing a transparent PNG. */
  mix-blend-mode: lighten;
}

.hero-rule {
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  margin-bottom: 28px;
  position: relative;
  animation: fade-rise 1200ms 200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-rule::before, .hero-rule::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(201, 168, 107, 0.6);
}
.hero-rule::before { left: -3px; }
.hero-rule::after  { right: -3px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  color: var(--ivory);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  animation: fade-rise 1200ms 350ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-overline {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-lede {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ivory-soft);
  margin-bottom: 40px;
  animation: fade-rise 1200ms 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-rise 1200ms 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cta-primary {
  background: var(--gold);
  color: var(--black);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
  transition: all 280ms ease;
}

.cta-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(201, 168, 107, 0.18);
}

.cta-ghost {
  background: transparent;
  color: var(--ivory);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  border: 1px solid var(--rule);
  transition: all 280ms ease;
}

.cta-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(201, 168, 107, 0.04);
}

/* ── SECTION HEADS ─────────────────────────── */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.centred {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
  display: inline-block;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-head.centred .section-eyebrow {
  padding-left: 28px;
  padding-right: 28px;
}

.section-head.centred .section-eyebrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ivory-soft);
  font-family: var(--font-body);
  max-width: 640px;
}

.section-head.centred .section-lede { margin-inline: auto; }

/* ── PRACTICE ──────────────────────────────── */
.practice {
  padding: 120px 0 130px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.practice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 168, 107, 0.03), transparent 70%);
  pointer-events: none;
}

.practice > .container { position: relative; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.practice-card {
  background: var(--black-soft);
  padding: 44px 36px 40px;
  position: relative;
  transition: background 380ms ease;
  opacity: 0;
  transform: translateY(20px);
}

.practice-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease, background 380ms ease;
}

.practice-card:hover {
  background: var(--black-card);
}

.practice-numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 38px;
  color: var(--gold);
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.practice-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ivory);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.practice-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory-quiet);
  font-family: var(--font-body);
}

/* ── APPROACH (charcoal section with green undertone) ── */
.approach {
  background: linear-gradient(180deg, #0a0a0a 0%, #0c1410 100%);
  color: var(--ivory);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(201, 168, 107, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(28, 64, 48, 0.22), transparent 60%);
  pointer-events: none;
}

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.approach-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--gold-soft);
  margin-bottom: 50px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.principle {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px);
}

.principle.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms ease, transform 800ms ease;
}
.principle.in-view:nth-child(2) { transition-delay: 100ms; }
.principle.in-view:nth-child(3) { transition-delay: 200ms; }

.principle-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}

.principle h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.principle p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory-soft);
}

/* ── CONTACT ───────────────────────────────── */
.contact {
  padding: 130px 0;
  background: var(--black);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 168, 107, 0.06), transparent 70%);
  pointer-events: none;
}

.contact > .container { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}

.contact-card {
  display: block;
  background: var(--black-soft);
  border: 1px solid var(--rule);
  padding: 36px 30px;
  text-align: center;
  transition: all 320ms ease;
  color: inherit;
}

a.contact-card:hover {
  border-color: var(--gold);
  background: var(--black-card);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 168, 107, 0.06);
}

.contact-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-detail {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ivory);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

a.contact-card:hover .contact-detail { color: var(--gold-soft); }

.contact-meta {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ivory-faint);
}

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  background: #050505;
  color: var(--ivory-quiet);
  padding: 80px 0 30px;
  border-top: 1px solid var(--rule);
}

.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--gold-bright); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ivory);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-style: italic;
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.footer-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-quiet);
}

.footer-rule {
  height: 1px;
  background: rgba(201, 168, 107, 0.14);
  margin: 40px 0 22px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  font-size: 11px;
  color: var(--ivory-faint);
  align-items: start;
}

.footer-disclaimer {
  font-style: italic;
  text-align: right;
  max-width: 600px;
  justify-self: end;
  line-height: 1.6;
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes crest-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 880px) {
  .approach-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; justify-self: start; max-width: 100%; }
  .hero { padding: 80px 0 70px; }
  .crest-frame { width: 240px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1180px); }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 14px; }
  .mark-text { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .practice { padding: 80px 0 90px; }
  .approach { padding: 90px 0; }
  .practice-card { padding: 36px 28px 32px; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .cta-primary, .cta-ghost { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
