@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=Poppins:wght@300;400&display=swap');

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: #050505;
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:     #FFFFFF;
  --cream:  #F5EDE3;
  --accent: #B8623A;
  --text:   #050505;
  --muted:  #6B6B6B;
  --max:    1500px;
  --pad:    4vw;
}

/* ─── Type ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.4;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2.2rem); }
p  { font-size: 0.96rem; line-height: 1.65; color: var(--muted); }

/* ─── Nav ────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding: 1.4rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.35s, border-color 0.35s;
}
nav.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(5,5,5,0.07);
  backdrop-filter: blur(8px);
}
/* A backdrop-filter on the scrolled nav makes it the containing block for the
   fixed full-screen menu, which clips the overlay once the page is scrolled.
   Remove it while the menu is open so the overlay fills the viewport again. */
body.menu-open nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav-logo img {
  max-height: 90px;
  width: auto;
  display: block;
}
/* Logo swap: light logo over the transparent nav on the hero,
   dark logo once the nav gains its white scrolled background. */
.nav-logo .logo-dark { display: none; }
nav.scrolled .nav-logo .logo-light { display: none; }
nav.scrolled .nav-logo .logo-dark { display: block; }
/* Soft shadow keeps the white logo legible on light hero photos */
.nav-logo .logo-light { filter: drop-shadow(0 1px 5px rgba(0,0,0,0.5)); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
nav.scrolled .nav-links a.active { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
nav.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* When the menu is open the overlay behind it is white, so force the
   close (X) icon dark even before the nav has gained its scrolled state. */
.hamburger.open span { background: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.72) 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 9vh;
}
.hero-content h1 {
  color: #fff;
  max-width: 680px;
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 380px;
  line-height: 1.65;
}

/* ─── Section wrappers ───────────────────────────────────────────── */
.section { padding: 7rem var(--pad); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--bg); }

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

/* ─── Label / accent tag ─────────────────────────────────────────── */
.label {
  display: block;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

/* ─── Accent rule ────────────────────────────────────────────────── */
.rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ─── Split: heading left / body right ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.split-head { }
.split-head h2 { max-width: 500px; }
.split-body p { margin-bottom: 1.1rem; }

/* ─── Photo + text block (full-bleed) ────────────────────────────── */
.pt {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: 72vh;
}
.pt.rev { grid-template-columns: 40fr 60fr; }

.pt-photo {
  overflow: hidden;
  position: relative;
}
.pt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pt.rev .pt-photo { order: 2; }

.pt-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem max(var(--pad), 4rem);
}
.pt.rev .pt-text { order: 1; }

.pt-text h3 { max-width: 380px; margin-bottom: 1.4rem; }
.pt-text p  { max-width: 400px; margin-bottom: 1rem; }

/* ─── About / two-col asymmetric ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}
.about-body p { margin-bottom: 1.1rem; }

/* Ian portrait in the About section */
.ian-photo { margin-top: 2.5rem; }
.ian-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.creds {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(5,5,5,0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.cred h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.cred p { font-size: 0.875rem; }

/* ─── Feature grid ───────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  margin-top: 3.5rem;
}
.feature h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.feature p { font-size: 0.875rem; }

/* ─── Process steps ──────────────────────────────────────────────── */
.process-intro { margin-bottom: 3.5rem; }
.process-intro h2 { margin-bottom: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 3rem;
}
.step-num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.step h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.step p { font-size: 0.84rem; }

/* ─── Testimonials ───────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3.5rem;
}
.testi blockquote {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.testi cite {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ─── Testimonial slider (homepage) ──────────────────────────────── */
.testi-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}
.slider-viewport {
  position: relative;
  flex: 1 1 auto;
  max-width: 760px;
}
/* Decorative opening quote mark, sits behind the text top-left */
.slider-viewport::before {
  content: "\201C";
  position: absolute;
  top: -2.6rem;
  left: -0.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.slide blockquote {
  margin: 0 auto;
  max-width: 42em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--text);
}
.slide figcaption {
  margin-top: 2.2rem;
}
.slide-name {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.slide-role {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}
.slider-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.slider-arrow:hover { color: var(--accent); }
.slider-arrow svg { width: 22px; height: 22px; display: block; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
}
.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.dot.is-active { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ─── CTA block ──────────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-block h2 { margin-bottom: 1.2rem; }
.cta-block p  { margin-bottom: 2.5rem; }

/* ─── Link styles ────────────────────────────────────────────────── */
.link-ul {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(5,5,5,0.4);
  padding-bottom: 2px;
  margin-top: 1.4rem;
  transition: color 0.3s, border-color 0.3s;
}
.link-ul:hover { color: var(--accent); border-color: var(--accent); }

.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(5,5,5,0.35);
  padding: 1rem 2.2rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  background: transparent;
}
.btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
button.btn { border-radius: 0; }

/* ─── Contact / form ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 1.2rem; }

.form { display: flex; flex-direction: column; gap: 1.8rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  border: none;
  border-bottom: 1px solid rgba(5,5,5,0.16);
  padding: 0.75rem 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--text); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { cursor: pointer; }

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: 2.5rem var(--pad);
  border-top: 1px solid rgba(5,5,5,0.07);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.foot-logo img {
  max-height: 54px;
  width: auto;
  display: block;
}
.foot-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.foot-nav a {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  transition: color 0.3s;
}
.foot-nav a:hover { color: var(--accent); }
.foot-copy {
  width: 100%;
  font-size: 0.71rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --pad: 6vw; }

  .hamburger { display: flex; }
  .nav-logo img { max-height: 65px; }
  .foot-logo img { max-height: 46px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    z-index: 250;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; max-width: 320px; }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0.5rem 1.5rem;
    font-size: 1.15rem !important;
    color: var(--text) !important;
  }
  .nav-links a:hover,
  .nav-links a.active { color: var(--accent) !important; }

  /* Lock background scroll while the full-screen menu is open */
  body.menu-open { overflow: hidden; }

  .section { padding: 5rem var(--pad); }

  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split-head h2 { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .pt, .pt.rev {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pt-photo { height: 64vw; }
  .pt.rev .pt-photo { order: 0; }
  .pt.rev .pt-text  { order: 0; }
  .pt-text { padding: 3.5rem var(--pad); }
  .pt-text h3,
  .pt-text p { max-width: 100%; }

  .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }

  .testi-grid { grid-template-columns: 1fr; gap: 3rem; }

  .testi-slider { gap: 0.5rem; }
  .slide blockquote { font-size: 1.25rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  :root { --pad: 5vw; }
  .section { padding: 4rem var(--pad); }
  .steps { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }

  .slide blockquote { font-size: 1.12rem; }
  .slider-viewport::before { font-size: 4rem; top: -1.8rem; }
  .slider-arrow svg { width: 18px; height: 18px; }
}
