/* ===== 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;

  /* gradient background % for team card */
  --percent: 80%;
}

/* ===== 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;
}

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

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

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

.black {
  color: var(--color-black);
}

.white {
  color: var(--color-white);
}

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;
}

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;
}

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;
}

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

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

.caption {
  color: var(--Color-Black, #07000b);
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

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% */
}

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

.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) ===== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(7, 0, 11, 0.06);
}

.header-top {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-img {
  width: auto;
  max-width: 200px;
}

.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;
  flex: 1;
  min-width: 0;
}

.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: 0.875rem;
  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;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

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

  .logo-link {
    order: 1;
  }

  .logo-img {
    max-width: 150px;
  }

  .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);
  }

  .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;
  }

  .header-top > .btn-cta {
    display: none;
  }

  .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 7-812) ===== */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-logo {
  margin-bottom: 0.5rem;
  line-height: 0;
}

.about-logo img {
  width: auto;
  max-width: 280px;
  margin: 0 auto;
}

.about-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-brown-dark);
}

.about-content {
  max-width: 640px;
  text-align: left;
  margin: 0 auto;
}

.about-content 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);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===== 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;
  }
}

/* ===== Meet The Team (Figma design node 7-823) ===== */
.meet-the-team {
  background-color: var(--color-white);
  text-align: center;
}

.meet-the-team-title {
  text-align: center;
  margin: 0 0 0.25rem;
}

.meet-the-team-script {
  text-align: center;
  margin: -0.5rem 0 3rem;
  color: var(--color-brown-dark);
  font-size: 75px;
  line-height: 75px;
}

.team-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 960px;
  margin: 3rem auto 0 auto;
}

/* Card design: diagonal split (trapezoidal left, brown right), image overlaps boundary */
.team-card {
  max-width: 700px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 220px;
  /* background-color: var(--color-brown); */
  background: linear-gradient(
    270deg,
    var(--color-brown) 0%,
    var(--color-brown) var(--percent),
    var(--color-beige) var(--percent),
    var(--color-beige) 100%
  );
  overflow: visible;
  position: relative;
  padding: 1.5rem;
  text-align: left;
}

/* Stagger: odd cards left of center, even cards right of center */
.team-card:nth-child(odd) {
  margin-right: auto;
  margin-left: 0;
}

.team-card:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.team-card-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.team-card-image {
  max-width: 256px;
  max-height: 256px;
  min-width: 160px;
  min-height: 160px;
  z-index: 2;
}

.team-card-info {
  color: var(--color-white);
}

.team-card-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.team-card-role {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
}

.team-card-separator {
  margin: 1.5rem 0 1.5rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.team-card-contact {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.team-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.team-contact-icon {
  flex-shrink: 0;
  color: currentColor;
}

.team-contact-btn-call,
.team-contact-btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  width: 100%;
  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;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.team-contact-btn-call:hover,
.team-contact-btn-email:hover {
  background-color: #e5e0da;
  transform: translateY(-1px);
}

.team-card-contact a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.team-card-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-white) !important;
  color: #333333 !important;
  border: 1px solid #333333 !important;
  font-weight: 600;
}

.team-card-cta:hover {
  background-color: #f8f3ed !important;
  color: #333333 !important;
  border-color: #333333 !important;
}

@media (min-width: 700px) {
  .team-card-contact {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .team-contact-btn-call,
  .team-contact-btn-email {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .meet-the-team-title {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .meet-the-team-script {
    font-size: 56px;
    line-height: 56px;
    margin-bottom: 2.5rem;
  }

  .team-cards {
    padding: 0 24px;
  }
}

/* ===== 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);
}

.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-header .what-we-help-title {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .what-we-help-header .what-we-help-script {
    font-size: 56px;
    line-height: 56px;
  }

  .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-content {
    padding: 0 1.5rem;
  }
}

/* ===== Placeholder / utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Footer (Figma-inspired) ===== */
.site-footer {
  background-color: var(--color-white);
  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;
}
