/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Color Variables */
  --ink: #062119;
  --sage: #779F6E;
  --sage2: #779F6F;
  --cream: #FDEFBC;
  --card: #FEDB93;
  --tag: #FFDA93;
  --footer: #88A974;
  --shadow: 0 0 22px rgba(30,59,30,.47);

  /* Spacing Scale (based on 27px Figma spacing) */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 1rem;        /* 16px */
  --space-md: 1.6875rem;   /* 27px - Figma spacing */
  --space-lg: 2rem;        /* 32px */
  --space-xl: 3rem;        /* 48px */
  --space-2xl: 4rem;       /* 64px */

  /* Layout */
  --max-width-mobile: 393px;
  --max-width-tablet: 768px;
  --max-width-desktop: 1280px;
  --border-radius-sm: 9px;
  --border-radius-md: 19px;
}

/* ===========================
   BASE STYLES
   =========================== */
body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 6px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

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

button,
a {
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===========================
   SITE WRAPPER
   =========================== */
.site-wrapper {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

/* ===========================
   HERO SECTION (Mobile-First)
   =========================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding: 96px var(--space-sm) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(253, 239, 188, 0.92) 0%, rgba(253, 239, 188, 0) 34%),
    radial-gradient(circle at 82% 20%, rgba(248, 216, 145, 0.82) 0%, rgba(248, 216, 145, 0) 30%),
    radial-gradient(circle at 70% 78%, rgba(136, 169, 116, 0.78) 0%, rgba(136, 169, 116, 0) 38%),
    linear-gradient(138deg, #062119 0%, #446c48 43%, #88a974 68%, #fdefbc 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, rgba(6, 33, 25, 0.36), rgba(6, 33, 25, 0.08) 48%, rgba(6, 33, 25, 0.18));
}

.hero::after {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, rgba(6, 33, 25, 0.16), rgba(6, 33, 25, 0) 48%, rgba(6, 33, 25, 0.12));
}

.hero__decorations {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 58px;
  height: 75px;
  z-index: 2;
  mix-blend-mode: lighten;
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 680px;
}

.hero__name {
  font-size: clamp(1.75rem, 5vw, 2.05rem); /* 28-32.79px */
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 14px rgba(30,58,29,.41);
  line-height: 1.1;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 2.78rem); /* 36-44.53px */
  font-weight: 800;
  margin: 0;
  text-shadow: 0 0 44px rgba(30,59,30,.47);
  line-height: 1.1;
}

.hero__badge {
  position: relative;
  z-index: 3;
  margin-top: var(--space-lg);
  padding: 0.5rem 1.5rem;
  background: var(--tag);
  border-radius: 4.41px;
  color: #062018;
  font-size: clamp(1.125rem, 4vw, 1.32rem); /* 18-21.09px */
  font-weight: 800;
  text-align: center;
  max-width: 90%;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero__tagline {
  position: relative;
  z-index: 3;
  margin-top: var(--space-md);
  font-size: clamp(1.125rem, 4vw, 1.32rem); /* 18-21.09px */
  font-weight: 800;
  text-align: center;
  max-width: 680px;
  width: fit-content;
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
}

/* ===========================
   INTRO SECTION (Mobile)
   =========================== */
.intro {
  padding: var(--space-md) var(--space-sm);
  max-width: var(--max-width-mobile);
  margin: 0 auto;
}

.intro__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.intro__title {
  font-size: clamp(2rem, 5vw, 2.39rem); /* 32-38.27px */
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.intro__portrait {
  flex: 0 0 124px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(6, 33, 25, 0.18);
}

.intro__text {
  font-size: clamp(1.5rem, 4vw, 1.89rem); /* 24-30.29px */
  font-weight: 800;
  color: var(--sage);
  line-height: 1.35;
}

/* ===========================
   PRICE CARD (Mobile)
   =========================== */
.price-card {
  position: relative;
  max-width: calc(var(--max-width-mobile) - 2rem);
  margin: var(--space-md) auto;
  padding: var(--space-lg) var(--space-sm);
  background: var(--card);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.price-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.price-card__price {
  font-size: clamp(1.125rem, 3.5vw, 1.6875rem); /* 18-27px */
  font-weight: 600;
  color: #072118;
  line-height: 1.4;
  margin: 0;
}

.price-card__availability {
  font-size: clamp(1rem, 3vw, 1.4375rem); /* 16-23px */
  font-weight: 600;
  color: #072118;
  line-height: 1.4;
  margin: 0;
}

/* ===========================
   QUOTE SECTION (Mobile)
   =========================== */
.feature-quote-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 0 var(--space-sm);
}

.quote {
  width: 100%;
  max-width: calc(var(--max-width-mobile) - 2rem);
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-sm);
}

.quote__mark {
  width: 51px;
  height: 36px;
  margin-bottom: var(--space-sm);
}

.quote__reviews {
  display: grid;
  gap: var(--space-md);
}

.quote__review {
  padding: var(--space-md);
  border: 2px solid rgba(119, 159, 111, 0.2);
  border-radius: 16px;
  background: rgba(253, 239, 188, 0.36);
}

.quote__text {
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 800;
  color: var(--sage2);
  line-height: 1.35;
  margin: 0;
}

.quote__review cite {
  display: block;
  margin-top: var(--space-sm);
  color: var(--ink);
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
}

/* ===========================
   FEATURE CARDS (Mobile)
   =========================== */
.feature-cards-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.feature-carousel {
  width: 100%;
}

.feature-carousel__track {
  display: flex;
  gap: 1.875rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--space-sm) var(--space-sm);
  scroll-padding-inline: var(--space-sm);
}

.feature-carousel__track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 min(285px, calc(100vw - 4rem));
  width: min(285px, calc(100vw - 4rem));
  min-height: 465px;
  padding: 27px 33px 32px 35px;
  background: #F8D891;
  border-radius: 16px;
  color: #000;
  font-family: "Inter", sans-serif;
  scroll-snap-align: start;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #000;
  line-height: 25px;
  margin: 0 0 28px;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-card__body p {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  line-height: 20px;
  margin: 0;
}

.feature-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: var(--space-md) var(--space-sm) 0;
}

.feature-carousel__button {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #d9d9d9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-carousel__button:hover,
.feature-carousel__button:focus {
  transform: translateY(-2px);
  outline: none;
}

.feature-carousel__button:disabled {
  cursor: default;
  opacity: 0.4;
  transform: none;
}

.feature-carousel__chevron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  border-top: 4px solid #000;
  border-right: 4px solid #000;
}

.feature-carousel__chevron--prev {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.feature-carousel__chevron--next {
  transform: translate(-65%, -50%) rotate(45deg);
}

/* ===========================
   OFFICE IMAGE (Mobile)
   =========================== */
.office-image {
  width: 100%;
  margin: var(--space-md) 0;
}

.office-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   CTA SECTION (Mobile)
   =========================== */
.cta {
  max-width: calc(var(--max-width-mobile) - 2rem);
  margin: var(--space-md) auto;
  padding: 0 var(--space-sm);
  text-align: center;
}

.cta .price-card {
  width: 100%;
  margin: 0 auto var(--space-lg);
}

.cta__text {
  font-size: clamp(1.5rem, 4vw, 1.89rem); /* 24-30.29px */
  font-weight: 800;
  color: var(--sage);
  line-height: 1.35;
  margin-bottom: var(--space-lg);
}

.cta__contact-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-sm);
}

.cta__contact-lines a {
  color: #000;
  overflow-wrap: anywhere;
}

.cta__contact-lines a[href^="mailto:"],
.cta__contact-lines a[href*="instagram.com"] {
  font-size: clamp(0.78rem, 4.2vw, 1.25rem);
  white-space: nowrap;
}

.cta__contact-lines a:hover,
.cta__contact-lines a:focus {
  text-decoration: underline;
}

.cta__button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 3px solid #F8D991;
  border-radius: 11px;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.64rem); /* 20-26.29px */
  font-weight: 800;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta__button:hover,
.cta__button:focus {
  background: #F8D991;
  transform: translateY(-2px);
  outline: none;
}

/* ===========================
   MAP SECTION (Mobile)
   =========================== */
.map {
  width: 100%;
  margin: var(--space-md) 0;
  position: relative;
}

.map img {
  width: 100%;
  height: auto;
  display: block;
}

.map__iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.map__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(119, 159, 110, 0.45);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.map__overlay:hover {
  background: rgba(119, 159, 110, 0.25);
}

.map__overlay-text {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  padding: var(--space-md);
  pointer-events: none;
}

/* ===========================
   FOOTER (Mobile)
   =========================== */
.footer {
  position: relative;
  width: 100%;
  background: var(--footer);
  padding: var(--space-xl) var(--space-sm) var(--space-lg);
  overflow: hidden;
}

.footer__decorations {
  width: 67px;
  height: 87px;
  z-index: 1;
  mix-blend-mode: lighten;
  pointer-events: none;
  object-fit: contain;
  align-self: center;
}

.footer__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: calc(var(--max-width-mobile) - 2rem);
  margin: 0 auto;
}

.footer__contact {
  text-align: center;
  color: #fff;
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  font-weight: 400;
}

.footer__contact p {
  margin: 0.5rem 0;
}

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

.footer__contact a:hover,
.footer__contact a:focus {
  text-decoration: underline;
}

.footer__about {
  color: #fff;
  text-align: left;
}

.footer__about h2 {
  margin: 0 0 var(--space-sm);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}

.footer__about p {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  line-height: 1.65;
}

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

.footer__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.form-group label {
  font-size: 1.125rem; /* 18px */
  color: var(--ink);
  font-weight: 800;
}

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

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px; /* Touch-friendly */
  background: #FCEEBC;
  border: 1px solid var(--footer);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ink);
}

.form__submit {
  align-self: flex-end;
  padding: 0.75rem 2rem;
  min-height: 44px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.form__submit:hover,
.form__submit:focus {
  transform: translateY(-2px);
  outline: none;
}

.form-success{
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 33, 25, 0.08);
  border: 1px solid rgba(6, 33, 25, 0.18);
  color: #062119;
  font-size: 14px;
}

.form-error {
  background: rgba(122, 8, 8, 0.08);
  border-color: rgba(122, 8, 8, 0.2);
  color: #5a0b0b;
}

/* ===========================
   TABLET BREAKPOINT (768px+)
   =========================== */
@media (min-width: 768px) {
  /* Hero adjustments */
  .hero__decorations {
    width: 90px;
    height: 117px;
  }

  /* Intro wider */
  .intro {
    max-width: var(--max-width-tablet);
    padding: var(--space-xl) var(--space-lg);
  }

  .intro__heading {
    gap: var(--space-md);
  }

  .intro__portrait {
    flex-basis: 168px;
    width: 168px;
    height: 168px;
  }

  /* Price card centered, wider */
  .price-card {
    max-width: 500px;
    margin-block: var(--space-xl);
  }

  /* Quote wider on tablet */
  .quote {
    max-width: var(--max-width-tablet);
    padding: 0 var(--space-lg);
  }

  .quote__reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Feature carousel layout */
  .feature-quote-wrapper {
    max-width: var(--max-width-tablet);
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }

  .feature-cards-wrapper {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .feature-carousel__track {
    padding-inline: var(--space-lg);
    scroll-padding-inline: var(--space-lg);
  }

  .feature-carousel__controls {
    padding-inline: var(--space-lg);
  }

  /* CTA wider */
  .cta {
    max-width: var(--max-width-tablet);
    padding: 0 var(--space-lg);
  }

  /* Footer form wider */
  .footer__content {
    max-width: 500px;
  }

  .footer__contact {
    font-size: 1.25rem; /* 20px */
  }

  .footer__decorations {
    width: 90px;
    height: 117px;
    mix-blend-mode: lighten;
  }
}

/* ===========================
   DESKTOP BREAKPOINT (1024px+)
   =========================== */
@media (min-width: 1024px) {
  /* Site wrapper max-width */
  .site-wrapper {
    max-width: var(--max-width-desktop);
    margin: 0 auto;
  }

  /* Full-bleed sections */
  .hero,
  .map,
  .footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* Hero size adjustments */
  .hero {
    min-height: 440px;
    align-items: flex-start;
    padding: 120px max(var(--space-xl), calc((100vw - var(--max-width-desktop)) / 2 + var(--space-xl))) 88px;
  }

  .hero__decorations {
    top: 36px;
    right: max(var(--space-xl), calc((100vw - var(--max-width-desktop)) / 2 + var(--space-xl)));
    width: 96px;
    height: 125px;
  }

  .hero__content,
  .hero__tagline {
    text-align: left;
  }

  .hero__name {
    font-size: 2.44rem; /* 39.06px */
  }

  .hero__title {
    font-size: 3.1rem;
    max-width: 760px;
  }

  .hero__badge {
    font-size: 1.57rem; /* 25.12px */
    padding: 0.75rem 2rem;
  }

  /* Intro layout */
  .intro-price-wrapper {
    max-width: var(--max-width-desktop);
    margin: var(--space-2xl) auto 0;
    padding: 0 var(--space-xl);
  }

  .price-card {
    max-width: 423px;
    margin: var(--space-2xl) auto;
  }

  .intro {
    padding: var(--space-2xl) 0 0 0;
    max-width: 860px;
    margin: 0 auto;
  }

  .intro__heading {
    gap: var(--space-lg);
  }

  .intro__portrait {
    flex-basis: 220px;
    width: 220px;
    height: 220px;
  }

  /* Feature carousel + reviews layout */
  .feature-quote-wrapper {
    gap: var(--space-2xl);
    max-width: var(--max-width-desktop);
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-xl);
  }

  .quote {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .quote__reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote__text {
    font-size: 1.18rem;
  }

  .feature-cards-wrapper {
    min-width: 0;
    padding: 0;
  }

  .feature-carousel {
    overflow: hidden;
  }

  .feature-carousel__track {
    gap: 30px;
    padding: 0 max(var(--space-xl), calc((100vw - var(--max-width-desktop)) / 2 + var(--space-xl))) var(--space-sm);
    scroll-padding-inline: max(var(--space-xl), calc((100vw - var(--max-width-desktop)) / 2 + var(--space-xl)));
  }

  .feature-carousel__controls {
    gap: 1.875rem;
    padding: var(--space-md) max(var(--space-xl), calc((100vw - var(--max-width-desktop)) / 2 + var(--space-xl))) 0;
  }

  /* Office + CTA Grid Layout */
  .office-cta-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    max-width: var(--max-width-desktop);
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-xl);
    align-items: center;
  }

  .office-image {
    margin: 0;
    max-width: 100%;
  }

  .cta {
    margin: 0;
    max-width: 100%;
    padding: 0;
  }

  /* Map wider */
  .map {
    padding: 0;
  }

  .map__iframe {
    height: 500px;
  }

  /* Footer layout */
  .footer {
    padding: var(--space-2xl) var(--space-xl);
  }

  .footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: var(--max-width-desktop);
    margin: 0 auto;
  }

  .footer__contact {
    text-align: left;
    align-self: start;
    padding-top: var(--space-lg);
  }

  .footer__form {
    max-width: 100%;
  }

  .footer__decorations {
    width: 120px;
    height: 156px;
    align-self: flex-start;
    mix-blend-mode: lighten;
  }

  .footer__details {
    align-items: flex-start;
  }
}
