@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Inter+Tight:wght@300;400;500&display=swap');

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

html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
}

:root {
  --bg: hsl(38, 30%, 93%);
  --text: hsl(50, 6%, 20%);
  --accent: hsl(92, 8%, 38%);
  --light-accent: hsl(43, 37%, 87%);
  --dark-accent: hsl(29, 39%, 53%);
  --dark-bg: hsl(92, 12%, 26%);
  --footer-bg: hsl(30, 5%, 11%);
  --max-width: 1200px;
  --gutter: 5vw;
  --heading-font: "freight-display-pro", serif;
  --body-font: 'Inter Tight', system-ui, sans-serif;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, hsl(38, 30%, 93%) 35%, transparent 75%),
    url('../images/mountains-bg.svg');
  background-size: 100% 100%, 100% auto;
  background-position: top center, bottom center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.53;
  font-weight: 500;
}

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

/* ===== LOGO ===== */
.logo-stacked {
  font-family: var(--heading-font);
  text-align: center;
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 1.0;
  display: block;
  padding: 2.5rem var(--gutter) 0.2rem;
  color: var(--text);
}

.logo-stacked .logo-line1 {
  display: block;
}

.logo-stacked .logo-line2 {
  display: block;
}


.logo-inline {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--text);
  display: inline-block;
}


/* ===== NAVIGATION ===== */
.site-nav {
  display: flex;
  justify-content: center;
  padding: 0.8rem var(--gutter) 1.6rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 3rem;
  row-gap: 0.3rem;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.nav-links a {
  display: block;
  padding: 0.15em 0;
  transition: opacity 0.2s;
}

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

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Header variant: just nav, no big logo */
.nav-only {
  padding: 2rem var(--gutter) 1.6rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.6em 1.8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  color: var(--text);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-light {
  color: var(--bg);
  border-color: var(--bg);
}

.btn-light:hover {
  background: var(--bg);
  color: var(--dark-bg);
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}

/* ===== DARK SECTION ===== */
.dark-section {
  background-color: var(--dark-bg);
  color: var(--bg);
  padding: 4.5rem var(--gutter) 5rem;
  text-align: center;
}

.dark-section p {
  font-size: 2.2rem;
  line-height: 1.55;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--bg);
  padding: 1.8rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-logo {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--bg);
}

.footer-contact {
  text-align: center;
  justify-self: center;
  line-height: 2.2;
  opacity: 0.85;
}

.footer-contact a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.footer-nav a {
  color: var(--bg);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
  line-height: 2.2;
}

.footer-nav a:hover { opacity: 1; }

/* ===== HOME HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
  padding: 4rem var(--gutter) 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 78vh;
}

.hero-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, hsl(35, 25%, 72%) 0%, hsl(30, 20%, 60%) 50%, hsl(25, 18%, 55%) 100%);
}

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

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-content p {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ===== PAGE TITLE SECTIONS ===== */
/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 3rem var(--gutter) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}

.about-text {
  font-size: 1rem;
  line-height: 1.78;
  font-weight: 400;
}

.about-text .page-title {
  font-family: var(--heading-font);
  font-size: 4.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.about-text p { margin-bottom: 1.1rem; }

.about-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.about-cta-wrap {
  margin-top: 1.6rem;
}

.about-image-col {
  position: relative;
  align-self: stretch;
}

.about-image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    hsl(210, 18%, 28%) 0%,
    hsl(220, 15%, 22%) 30%,
    hsl(215, 20%, 18%) 55%,
    hsl(30, 20%, 30%) 100%
  );
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ACCORDION ===== */
.accordion {
  padding: 0 var(--gutter) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.accordion-item { border-bottom: 1px solid rgba(50, 49, 39, 0.18); }
.accordion-item:first-child { border-top: 1px solid rgba(50, 49, 39, 0.18); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  font-family: var(--body-font);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion-body {
  padding: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.78;
  font-weight: 400;
}

.accordion-body p + p { margin-top: 1.2rem; }

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

/* ===== OFFERINGS PAGE ===== */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 1rem var(--gutter) 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.offering-card { position: relative; }

.offering-image-wrap {
  position: relative;
  width: 190px;
  height: 255px;
  margin: 0 auto 2rem;
}

.offering-image {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}

.offering-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* decorative accent shapes */
.offering-image-wrap .accent-shape {
  position: absolute;
  border-radius: 50%;
}

.card-1 .offering-image {
  background: linear-gradient(150deg, hsl(32, 28%, 72%) 0%, hsl(28, 22%, 65%) 100%);
}
.card-1 .accent-shape {
  width: 50px;
  height: 50px;
  bottom: -10px;
  left: 6px;
  background: var(--dark-accent);
}

.card-2 .offering-image {
  background: linear-gradient(160deg, hsl(50, 8%, 72%) 0%, hsl(42, 12%, 78%) 100%);
}
.card-2 .accent-shape {
  width: 54px;
  height: 54px;
  bottom: -6px;
  right: 10px;
  background: var(--accent);
}

.card-3 .offering-image {
  background: linear-gradient(135deg, hsl(36, 22%, 76%) 0%, hsl(26, 18%, 68%) 100%);
}
.card-3 .accent-shape {
  width: 48px;
  height: 48px;
  bottom: -8px;
  left: 12px;
  background: var(--light-accent);
  border-radius: 50% 50% 0 0;
}

.offering-card h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.offering-card p {
  font-size: 0.85rem;
  line-height: 1.72;
  font-weight: 400;
  max-width: 250px;
  margin: 0 auto;
}

/* ===== PRICING PAGE ===== */
.pricing-label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.45;
  display: block;
  margin-bottom: 1.6rem;
}

.pricing-content {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 3rem var(--gutter) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(40, 18%, 76%) 0%, hsl(45, 22%, 84%) 60%, hsl(38, 15%, 78%) 100%);
}

.pricing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-text h2 {
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.55;
  max-width: 360px;
}

.pricing-text p {
  font-size: 0.85rem;
  line-height: 1.78;
  margin-bottom: 1.8rem;
  max-width: 340px;
  font-weight: 400;
}

.good-faith-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  border-top: 1px solid rgba(50, 49, 39, 0.15);
}

.good-faith-section h3 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.good-faith-section p {
  font-size: 0.83rem;
  line-height: 1.78;
  font-weight: 300;
  padding-top: 0.2rem;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}

.contact-form h1 {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.contact-form .intro-text {
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 0.5rem;
  max-width: 400px;
}

.contact-form .contact-info-text {
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-form .contact-info-text a { color: inherit; }
.contact-form .contact-info-text strong { font-weight: 700; }

.form-group { margin-bottom: 2rem; }

.form-label {
  display: block;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.form-label .req {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 300;
  opacity: 0.5;
  margin-left: 0.4em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-subgroup { display: flex; flex-direction: column; }

.form-sublabel {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(50, 49, 39, 0.3);
  background: transparent;
  padding: 0.4rem 0;
  font-family: var(--body-font);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-input:focus { border-bottom-color: var(--text); }

textarea.form-input {
  resize: vertical;
  min-height: 90px;
  border: 1px solid rgba(50, 49, 39, 0.22);
  padding: 0.5rem 0.6rem;
  border-radius: 2px;
}

.form-submit-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.contact-image-wrap {
  display: block;
}

.contact-image {
  width: 100%;
  height: 100%;
  min-height: 580px;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, hsl(40, 12%, 80%) 0%, hsl(35, 10%, 70%) 50%, hsl(30, 10%, 60%) 100%);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile-only images (hidden on desktop, shown inline on mobile after headings) */
.mobile-inline-image { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Remove complex background on mobile — background-size: 100% 100% can
     cause iOS to compute extra scrollable height beyond the footer */
  body {
    background-image: none;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Hide side-column images; show inline versions after headings instead */
  .about-image-col { display: none; }
  .contact-image-wrap { display: none; }

  .mobile-inline-image {
    display: block;
    margin: 1.5rem 0 2rem;
  }

  .mobile-inline-image .about-image,
  .mobile-inline-image .contact-image {
    min-height: 0;
    height: 320px;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 999px 999px 0 0;
  }

  .offerings-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .pricing-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .good-faith-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: unset;
    text-align: center;
  }

  .hero-image {
    aspect-ratio: 3 / 4;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 999px 999px 0 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  /* Larger tap targets for nav links */
  .nav-links a { padding: 0.5em 0.3em; }

  .logo-stacked { font-size: 2.6rem; }
  .page-title { font-size: 3rem; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .logo-stacked { font-size: 2.1rem; }
  .page-title { font-size: 2.5rem; }
  .dark-section p { font-size: 1.4rem; }
  /* Prevent iOS Safari auto-zoom on input focus (requires ≥ 16px) */
  .form-input { font-size: 1rem; }
}
