/* Presence Media Labs — Ordeal
   Matches cottagenine.com/KG-ESP ref. Uses user-built assets only. */

:root {
  --charcoal: #1a1c1e;
  --charcoal-2: #22262a;
  --ink: #0e1012;
  --gold: #d6aa47;
  --gold-hover: #e0b85a;
  --muted: #6b7076;
  --line: #e6e7e9;
  --paper: #f3f4f5;
  --white: #ffffff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 0.5rem;
}

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

html { scroll-behavior: smooth; }

/* Sticky header clearance — value set by ordeal.js */
#approach,
#services,
#contact {
  scroll-margin-top: var(--header-offset, 4.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

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

/* Nav CTA: bigger hit area only — keep default .btn font-size */
.btn-nav-cta {
  --bs-btn-padding-y: 0.65rem;
  --bs-btn-padding-x: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}


/* Hero CTA: btn-lg padding+, fs-6 keeps type from scaling with btn-lg */
.btn-hero-cta {
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-padding-x: 1.65rem;
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-cta .bi {
  transition: transform 0.2s ease;
}

.btn-hero-cta:hover .bi {
  transform: translateX(0.2rem);
}

/* Process CTA: wider hit area, default font size */
.btn-process-cta {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-process-cta .bi {
  transition: transform 0.2s ease;
}

.btn-process-cta:hover .bi {
  transform: translateX(0.25rem);
}

/* Brand color only — sizing comes from Bootstrap (.btn / .btn-lg / etc.) */
.btn-gold {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--gold-hover);
  --bs-btn-hover-border-color: var(--gold-hover);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--gold-hover);
  --bs-btn-active-border-color: var(--gold-hover);
  --bs-btn-disabled-color: var(--ink);
  --bs-btn-disabled-bg: var(--gold);
  --bs-btn-disabled-border-color: var(--gold);
}

/* ——— Header ——— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  min-height: 4.75rem;
}

.navbar-brand {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-brand img {
  width: 248px;
  height: auto;
}

.navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 0 !important;
}

.navbar-nav .nav-item + .nav-item {
  margin-left: 2.75rem;
}

.navbar-nav .nav-item--cta {
  margin-left: 3rem;
}

.navbar-nav .nav-link:hover { color: var(--gold); }

.navbar-toggler {
  border: 1px solid #ddd;
  padding: 0.35rem 0.5rem;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-item + .nav-item,
  .navbar-nav .nav-item--cta {
    margin-left: 0;
    margin-top: 0.65rem;
  }

  .navbar-brand img {
    width: 210px;
  }
}

/* ——— Hero (match ref screenshot) ——— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050607;
  aspect-ratio: 2038 / 772;
  min-height: 26rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
}

/* Ref: solid black ~32–35% of viewport, soft fade out by ~48% */
.hero__mask {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.85) 78%,
    rgba(0, 0, 0, 0.4) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

/* BS .container — left edge matches the logo */
.hero__copy {
  max-width: 38rem;
  padding: 2.25rem 0;
  color: var(--white);
}

.hero__copy .eyebrow {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 1.15rem;
}

.hero__copy h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.5rem, 4.2vw, 3.65rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.22;
  font-weight: 700;
  color: var(--white);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

/* ——— Paths ——— */
.paths {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: #0a0b0c;
  min-height: 36rem;
}

.paths__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.paths__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%);
}

.paths__inner {
  position: relative;
  z-index: 1;
  padding-top: 6.5rem !important;
  padding-bottom: 6.5rem !important;
}

.paths__title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.paths__intro {
  max-width: 46rem;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.path-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.65rem 1.4rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(18, 20, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.path-card:hover {
  transform: translateY(-0.35rem);
  background: rgba(28, 30, 36, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(214, 170, 71, 0.55),
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.path-card i {
  font-size: 1.85rem;
  line-height: 1;
  color: var(--white);
  margin-top: 0.1rem;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.path-card:hover i {
  color: var(--gold);
  transform: scale(1.08);
}

.path-card strong {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.path-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.paths__footer {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ——— Then / Now ——— */
.eras {
  background: var(--white);
  border-top: 8px solid var(--ink);
}

.eras > .container {
  padding-top: 6.5rem !important;
  padding-bottom: 6.5rem !important;
}

.eras__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.eras__lead {
  max-width: none;
  margin: 0 0 2.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #555;
}

.era {
  margin: 0;
  transition: transform 0.25s ease;
}

.era:hover {
  transform: translateY(-0.35rem);
}

.era img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0.65rem;
  background: #e8e8e8;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.era:hover img {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(214, 170, 71, 0.35);
}

.era figcaption {
  margin-top: 1.1rem;
}

.era__title {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.era__label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.era__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* ——— Process / Challenge ——— */
.process {
  background: var(--white);
  padding-bottom: 6.5rem;
}

.process__media {
  height: 100%;
  min-height: 28rem;
  background: #111;
}

.process__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fill the half-column; right edge lines up with BS .container */
.process__copy {
  width: 100%;
  max-width: none;
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-right: 1.5rem;
}

@media (min-width: 992px) {
  .process__copy {
    padding-right: max(1.5rem, calc((100vw - 960px) / 2));
  }
}

@media (min-width: 1200px) {
  .process__copy {
    padding-right: max(1.5rem, calc((100vw - 1140px) / 2));
  }
}

@media (min-width: 1400px) {
  .process__copy {
    padding-right: max(1.5rem, calc((100vw - 1320px) / 2));
  }
}

.process__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.process__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
}

.process__steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.process__steps li {
  display: flex;
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.process__steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.process__steps .num {
  flex: 0 0 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  padding-top: 0.2rem;
}

.process__steps strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.process__steps span {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 991.98px) {
  .process {
    padding-bottom: 4.5rem;
  }

  .process__media {
    min-height: 20rem;
    max-height: 26rem;
  }

  .process__copy {
    padding: 4.5rem 1.5rem;
    max-width: none;
  }
}

/* ——— Services ——— */
.services {
  background: var(--charcoal);
}

.services__inner {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.services__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.services__lead {
  max-width: none;
  margin: 0 0 2.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.6;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(16rem, 0.4fr) 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #f3f4f5;
  border-radius: 0.75rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.service-row:hover {
  transform: translateY(-0.35rem);
  background: #fff;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(214, 170, 71, 0.45);
}

.service-row__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.service-row__title i {
  font-size: 1.85rem;
  color: #333;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-row:hover .service-row__title i {
  color: var(--gold);
  transform: scale(1.08);
}

.service-row h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.service-row p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.goldmine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  background-color: #0c0d0e;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.goldmine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.goldmine h3,
.goldmine .btn {
  position: relative;
  z-index: 1;
}

.goldmine h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: none;
  flex: 1 1 18rem;
}

.btn-goldmine-cta {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.65rem;
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-goldmine-cta .bi {
  transition: transform 0.2s ease;
}

.btn-goldmine-cta:hover .bi {
  transform: translateX(0.25rem);
}

.btn-footer-cta {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ——— Contact ——— */
.contact {
  background: var(--white);
}

.contact__inner {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.contact__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.contact__lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
}

.contact-form {
  background: var(--paper);
  border: 1px solid #e6e7e9;
  border-radius: 0.75rem;
  padding: 1.75rem 1.75rem 1.85rem;
}

.contact-form .form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.contact-form .form-control {
  background: #fafafa;
  border-color: #ddd;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  min-height: calc(1.5em + 1.3rem + 2px);
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(214, 170, 71, 0.25);
}

.contact-form textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

/* Honeypot — visually hidden, not display:none (bots still fill it) */
.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.contact-form__status.is-success {
  color: #1b6b3a;
}

.contact-form__status.is-error {
  color: #a11f2c;
}

.recaptcha-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b7280;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.grecaptcha-badge {
  z-index: 999 !important;
}

.btn-contact-cta:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-contact-cta {
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-contact-cta .bi {
  transition: transform 0.2s ease;
}

.btn-contact-cta:hover .bi {
  transform: translateX(0.25rem);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 2.5rem 0 1.25rem;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--charcoal-2);
  border-radius: 0.65rem;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2.5rem;
}

.footer-cta h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-about {
  max-width: 26rem;
  font-size: 0.92rem;
  margin: 0;
}

.footer-main h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.footer-links li + li { margin-top: 0.45rem; }

.footer-links a {
  color: rgba(255,255,255,.72);
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--gold); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.footer-legal {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-legal a:hover { color: var(--gold); }

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: 28rem;
  }

  .hero__mask {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.72) 45%,
      rgba(0,0,0,.88) 100%
    );
  }

  .hero__content {
    align-items: flex-end;
  }

  .hero__copy {
    max-width: 36rem;
    padding: 1.75rem 0 2.25rem;
  }

  .hero__copy h1 {
    font-size: clamp(2.25rem, 8.5vw, 3rem);
    line-height: 1.2;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .services__inner,
  .contact__inner {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.25rem 1.35rem;
  }

}

@media (max-width: 575.98px) {
  .paths__inner,
  .eras > .container {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  .path-card {
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem 1.15rem;
  }
  .goldmine { padding: 1.25rem; }
  .footer-cta { padding: 1.15rem; }
}
