/* ===== Figma design tokens (Website node 1-133) ===== */
:root {
  /* Colors from Figma variables */
  --color-white: #ffffff;
  --color-black: #07000b;
  --color-accent: #dd9348;
  --color-beige: #f8f7f4;
  --color-brown: #a6948a;
  --color-brown-dark: #937f74;
  --color-brown-light: #c0afa5;

  /* Fonts (load via Google Fonts in index.html) */
  --font-heading: "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --font-buttons: "Noto Sans", system-ui, sans-serif;
  --font-script: "Meow Script", cursive;

  /* Button typography (from Figma Buttons node 2-167) */
  --btn-font-size: 15px;
  --btn-font-weight: 500;
  --btn-line-height: 25.2px;
  --btn-letter-spacing: 0;
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.script {
  font-family: "Meow Script";
  font-size: 75px;
  font-style: normal;
  font-weight: 400;
  line-height: 75px; /* 100% */
  transform: rotate(-4deg);
  margin: 0;
  text-transform: none;
  letter-spacing: -1px;
  display: inline-block;
}

.dark-brown {
  color: var(--color-brown-dark);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

/* Scroll margin so sticky header doesn’t cover section headings (Safari + all) */
[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-black);
  background-color: var(--color-white);
}

footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== Sections ===== */
section {
  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
  /* margin-bottom: 3rem; */
}

section:last-child {
  margin-bottom: 0;
}

h1 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 75px;
  font-style: normal;
  font-weight: 600;
  line-height: 75px; /* 100% */
  letter-spacing: 3.75px;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 56px;
  font-style: normal;
  font-weight: 600;
  line-height: 56px; /* 100% */
  letter-spacing: 2.8px;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: 50.4px; /* 120% */
  letter-spacing: 0.84px;
  text-wrap: balance;
}

h4 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 31px;
  font-style: normal;
  font-weight: 400;
  line-height: 37.2px; /* 120% */
  text-wrap: balance;
}

h5 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 23px;
  font-style: normal;
  font-weight: 500;
  line-height: 29.9px; /* 130% */
  text-wrap: balance;
}

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

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

p {
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.2px; /* 140% */
  text-wrap: pretty;
  margin-bottom: 1.25rem;
}

.small-print {
  color: var(--color-black);
  font-family: var(--font-body);
  font-family: "Noto Sans";
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* ===== Layout ===== */
header,
main,
footer {
  width: 100%;
  /* max-width: 1200px; */
  margin-left: auto;
  margin-right: auto;
  /* padding-left: 1rem; */
  /* padding-right: 1rem; */
}

/* ===== Header (Figma design node 1-8) ===== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(7, 0, 11, 0.06);
  transition: padding 0.3s ease;
}

.header-top {
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.2s ease;
}

.header-social-link:hover {
  opacity: 0.7;
}

.header-social-link img {
  width: 32px;
  height: 32px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  line-height: 1;
  text-decoration: none;
}

.logo-name {
  font-family: var(--font-script);
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  color: var(--color-black);
  transform: rotate(-4deg);
  display: inline-block;
  white-space: nowrap;
}

.logo-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-black);
  text-align: center;
  white-space: nowrap;
  margin-top: 2px;
}

.header-cta {
  justify-self: end;
}

/* ===== Compact header on scroll (desktop only) ===== */
@media (min-width: 769px) {
  .site-header--compact {
    flex-direction: row;
    align-items: center;
    padding: 0.4rem 2.5rem;
  }

  .site-header--compact .header-top {
    display: contents;
  }

  .site-header--compact .header-social {
    display: none;
  }

  .site-header--compact .logo-link {
    order: 1;
    justify-self: auto;
  }

  .site-header--compact .logo-name {
    font-size: 32px;
    line-height: 32px;
  }

  .site-header--compact .logo-title {
    font-size: 10px;
  }

  .site-header--compact .header-nav {
    order: 2;
    flex: 1;
    padding: 0;
  }

  .site-header--compact .header-cta {
    order: 3;
    justify-self: auto;
  }

  .site-header--compact .nav-toggle {
    order: 4;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  margin-left: 1rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease,
    bottom 0.2s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 4px;
}

.nav-toggle-bar:nth-child(2) {
  top: 11px;
}

.nav-toggle-bar:nth-child(3) {
  bottom: 4px;
}

/* ===== Buttons (Figma node 2-167) ===== */
.btn,
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-buttons);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: var(--btn-line-height);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Primary: Brown bg, white text */
.btn--primary,
.btn-cta {
  background-color: var(--color-brown);
  color: var(--color-white);
}

.btn--primary:hover,
.btn-cta:hover {
  background-color: var(--color-brown-dark);
}

/* Outline: White bg, black text, black border */
.btn--outline {
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--outline:hover {
  background-color: var(--color-brown);
  color: var(--color-black);
  border-color: var(--color-black);
}

/* Ghost: Beige bg, black text */
.btn--ghost {
  background-color: var(--color-beige);
  color: var(--color-black);
}

.btn--ghost:hover {
  background-color: var(--color-brown-light);
}

.header-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-black);
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Desktop: hide nav CTA item so only header button shows */
@media (min-width: 769px) {
  .nav-links-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header-social {
    display: none;
  }

  .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .logo-link {
    order: 1;
  }

  .header-cta {
    display: none;
  }

  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(7, 0, 11, 0.06);
    padding: 0;
  }

  .site-header.nav-open .header-nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1rem;
  }

  .nav-links-cta {
    margin-top: 0.5rem;
  }

  .nav-links-cta .btn-cta {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    color: var(--color-white);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== Hero (Figma design node 7-795) ===== */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #a09d9b;
}

.hero-background {
  position: absolute;
  inset: 0;
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-bg-image {
  flex: 0 0 60%;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-left {
  flex: 0 0 20%;
  width: 20%;
  object-position: right center;
}

.hero-bg-center {
  flex: 0 0 60%;
  width: 60%;
  object-position: center;
}

.hero-bg-right {
  flex: 0 0 20%;
  width: 20%;
  object-position: left center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 0, 11, 0.4) 0%,
    rgba(7, 0, 11, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-script {
  color: #fff;
}

.hero-title {
  margin: 0 0 0.25rem;
  color: var(--color-white);
}

.hero-title-sub {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-buttons);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: var(--btn-line-height);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  background-color: #efebe6;
  color: #333333;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero-cta:hover {
  background-color: #e5e0da;
  transform: translateY(-1px);
}

/* ===== About (Figma design node 3-426) ===== */
.about {
  background-color: var(--color-white);
  overflow: hidden;
}

.about-inner {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
}

.about-text {
  flex: 0 0 40%;
  padding-top: 2rem;
}

.about-greeting {
  margin-bottom: -0.5rem;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 75px;
  font-weight: 600;
  line-height: 75px;
  letter-spacing: 3.75px;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 1.5rem;
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
}

.about-bio {
  max-width: 393px;
  margin: 0;
  margin-bottom: 1.25rem;
}

.about-images {
  flex: 1;
  position: relative;
  min-height: 580px;
}

.about-headshot {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  max-width: 370px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 15px solid var(--color-white);
  z-index: 2;
}

.about-bg-image {
  position: absolute;
  right: 0;
  top: 68px;
  width: 60%;
  max-width: 370px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  z-index: 1;
}

/* ===== Service (Figma design node 7-818) ===== */
.service {
  background-color: var(--color-beige);
}

.service-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.service-headline-col {
  text-align: left;
}

.service-headline {
  margin: 0;
}

.service-headline-script {
  color: var(--color-brown-dark);
  text-align: left;
  margin-top: -0.5rem !important;
}

.service-divider {
  width: 1px;
  min-height: 120px;
  align-self: stretch;
  background-color: var(--color-black);
  opacity: 0.25;
}

.service-body-col {
  text-align: left;
}

.service-body-col p {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-black);
}

.service-body-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .service-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
  }

  .service-headline-col,
  .service-body-col {
    text-align: center;
  }

  .service-headline,
  .service-headline-script {
    text-align: center;
  }
}

/* ===== Testimonials (Figma design node 3-460) ===== */
.testimonials {
  background-color: var(--color-white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-title {
  margin: 0 0 0.25rem;
  text-align: center;
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
}

.testimonials-script-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: -0.5rem;
}

.testimonials-ampersand {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--color-black);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card {
  border-top: 1px solid rgba(7, 0, 11, 0.12);
  padding-top: 2rem;
}

.testimonial-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 0.75rem;
}

.testimonial-stars svg {
  flex-shrink: 0;
}

.testimonial-name {
  margin: 0 0 1rem;
}

.testimonial-card p {
  margin: 0 0 1rem;
}

.testimonial-card p:last-child {
  margin-bottom: 0;
}

.testimonials-cta-wrap {
  text-align: center;
  margin-top: 4rem;
}

.testimonials-cta {
  letter-spacing: 1.6px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .testimonials-title {
    font-size: 42px;
    line-height: 42px;
    letter-spacing: 2px;
  }

  .testimonials-ampersand {
    font-size: 42px;
    line-height: 42px;
  }

  .testimonials-script-row .script {
    font-size: 56px;
    line-height: 56px;
  }
}

/* ===== What We Help With (Figma design node 84-2330) ===== */
.what-we-help {
  background-color: var(--color-beige);
}

.what-we-help-header {
  text-align: center;
  margin-bottom: 6rem;
}

.what-we-help-blocks {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.what-we-help-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.what-we-help-block--reverse {
  direction: rtl;
}

.what-we-help-block--reverse > * {
  direction: ltr;
}

.what-we-help-text {
  text-align: left;
}

.what-we-help-heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--color-black);
}

.what-we-help-text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-black);
  margin-bottom: 1.25rem;
}

.what-we-help-text li {
  margin-bottom: 0.5rem;
  text-wrap: pretty;
}

.what-we-help-media {
  position: relative;
  overflow: hidden;
}

.what-we-help-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(7, 0, 11, 0.08);
}

@media (max-width: 768px) {
  .what-we-help-header {
    margin-bottom: 4rem;
  }

  .what-we-help-block,
  .what-we-help-block--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: ltr;
  }

  .what-we-help-block--reverse .what-we-help-text {
    text-align: left;
  }

  .what-we-help-media {
    order: -1;
  }

  .what-we-help-block--reverse .what-we-help-media {
    order: -1;
  }
  .about-inner {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .about-text {
    flex: none;
    width: 100%;
    text-align: center;
    padding-top: 0;
  }

  .about-name {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 2.4px;
  }

  .about-bio {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .about-images {
    min-height: 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-headshot {
    width: 55%;
  }

  .about-bg-image {
    width: 55%;
    top: 50px;
  }
}

/* ===== Contact Details (Figma node 7-674) ===== */
.contact-details {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.contact-details-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.contact-details-info {
  flex: 1;
}

.contact-details-name {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 0.5rem;
  font-stretch: condensed;
}

.contact-details-title {
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 400;
  line-height: 37.2px;
  color: var(--color-black);
  margin: 0 0 2.5rem;
  font-stretch: condensed;
}

.contact-details-reg {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  line-height: 29.9px;
  vertical-align: super;
}

.contact-details-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-details-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 25.2px;
  color: var(--color-black);
  text-decoration: none;
}

.contact-details-link:hover {
  color: var(--color-brown-dark);
}

.contact-details-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.contact-details-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details-social-link {
  display: inline-flex;
  transition: opacity 0.2s;
}

.contact-details-social-link:hover {
  opacity: 0.7;
}

.contact-details-social-link img {
  display: block;
}

.contact-details-photo {
  flex-shrink: 0;
  width: 392px;
  border: 15px solid var(--color-white);
  overflow: hidden;
}

.contact-details-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact Details responsive */
@media (max-width: 768px) {
  .contact-details {
    padding: 4rem 0;
  }

  .contact-details-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .contact-details-name {
    font-size: 40px;
    line-height: 40px;
  }

  .contact-details-title {
    font-size: 24px;
    line-height: 30px;
  }

  .contact-details-links {
    align-items: center;
  }

  .contact-details-social {
    justify-content: center;
  }

  .contact-details-photo {
    width: 280px;
    height: 420px;
    border-width: 10px;
  }
}

/* ===== Footer (Figma-inspired) ===== */
.site-footer {
  background-color: var(--color-beige);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-simple {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo-img {
  max-width: 180px;
}

.footer-simple-copy {
  margin: 0;
  text-align: center;
}
