@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400&family=Plus+Jakarta+Sans:wght@400;500&display=swap");

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ede8;
  --bg-parchment: #e8e4dd;
  --surface: #ffffff;
  --primary: #1b3d2f;
  --primary-muted: #4a6358;
  --accent: #c67b5c;
  --accent-hover: #b36a4d;
  --text-headline: #2c2c2c;
  --text-body: #2c2c2c;
  --text-secondary: #6b6560;
  --text-muted: #9a9590;
  --border: #e8e4dd;
  --shadow-card: 0 2px 8px rgba(44, 44, 44, 0.04), 0 8px 24px rgba(44, 44, 44, 0.06);
  --shadow-hover: 0 4px 12px rgba(44, 44, 44, 0.06), 0 16px 32px rgba(44, 44, 44, 0.08);
  --max-width: 1200px;
  --section-padding-v: 160px;
  --card-padding: 32px;
  --card-radius: 2px;
  --margin-desktop: 120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-body);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.005em;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

.contact-page {
  background: var(--bg);
}

.container {
  width: min(calc(100% - (var(--margin-desktop) * 2)), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.overline {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overline.center {
  text-align: center;
}

.h3-title {
  margin: 0 0 32px;
  color: var(--text-headline);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 36px;
  letter-spacing: 0;
}

.body-lg {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: #2a4f3f;
}

.btn-accent {
  padding: 18px 36px;
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-full {
  width: 100%;
}

/* NAV */
.contact-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(calc(100% - 80px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.wordmark {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-headline);
}

.nav-link.active {
  color: var(--text-headline);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  border-bottom: 1px solid var(--text-headline);
}

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile-panel {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.nav-mobile-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* HERO */
.contact-hero {
  margin-top: 80px;
  padding: 96px 0 64px;
  background: linear-gradient(180deg, #faf8f5 0%, #f0ede8 100%);
}

.contact-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero .overline {
  margin-bottom: 24px;
}

.contact-display {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.015em;
  color: var(--text-headline);
}

.contact-hero .body-lg {
  max-width: 600px;
  margin: 0 auto;
}

/* CORE FORM SECTION */
.core-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: start;
}

.expect-list {
  display: grid;
  gap: 20px;
}

.expect-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.expect-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.expect-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-headline);
}

.expect-item p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

.expect-divider {
  margin: 40px 0;
  border-top: 1px solid var(--border);
  width: 80%;
}

.expect-reassurance {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-headline);
}

.expect-trust {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

/* FORM */
.form-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  padding: 40px;
}

.form-title {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: var(--text-headline);
}

.form-subtitle {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

#book-demo-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > label,
.fieldset > legend {
  margin: 0;
  color: var(--text-headline);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.muted {
  color: var(--text-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--card-radius);
  background: var(--bg-alt);
  color: var(--text-body);
  padding: 16px 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.005em;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9590' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text-headline);
  font-size: 15px;
  line-height: 24px;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-alt);
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* CALENDLY CARD */
.calendly-card {
  border-top-color: var(--accent);
}

.calendly-meta-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.calendly-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
}

.calendly-meta-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.calendly-divider {
  margin: 28px 0;
  border-top: 1px solid var(--border);
}

.calendly-trigger {
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.form-fine-print {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--primary);
  text-align: center;
}

/* ALT CONTACT */
.section-contact-options {
  padding: 96px 0;
}

.alt-contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.alt-contact-inner .overline {
  margin-bottom: 32px;
}

.contact-option {
  display: grid;
  justify-items: center;
}

.contact-option-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-option h2 {
  margin: 0 0 4px;
  color: var(--text-headline);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
}

.tertiary-link {
  color: var(--primary);
  font-size: 16px;
  line-height: 26px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.tertiary-link:hover {
  color: var(--primary-muted);
}

.contact-divider {
  margin: 48px auto;
  width: 40%;
  border-top: 1px solid var(--border);
}

.contact-meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

/* FOOTER */
.contact-footer {
  background: var(--primary);
  color: var(--bg);
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bg);
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.footer-tagline {
  margin: 0;
  max-width: 240px;
  color: rgba(250, 248, 245, 0.6);
  font-size: 14px;
  line-height: 22px;
}

.footer-heading {
  margin: 0 0 16px;
  color: var(--bg);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0 0 10px;
}

.footer-links a {
  color: rgba(250, 248, 245, 0.65);
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 248, 245, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-copy,
.footer-bottom-links {
  color: rgba(250, 248, 245, 0.4);
  font-size: 13px;
  line-height: 20px;
}

.footer-bottom-links a:hover {
  color: var(--bg);
}

/* REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-20px);
}

.reveal-right {
  transform: translateX(20px);
  transition-delay: 0.15s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  :root {
    --margin-desktop: 64px;
  }

  .contact-display {
    font-size: 50px;
    line-height: 58px;
  }

  .core-grid {
    gap: 52px;
  }
}

@media (max-width: 1024px) {
  :root {
    --margin-desktop: 40px;
  }

  .nav-inner {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .nav-center {
    gap: 24px;
  }

  .core-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    max-width: 680px;
  }

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

@media (max-width: 768px) {
  :root {
    --margin-desktop: 20px;
  }

  .nav-inner {
    width: calc(100% - 40px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-center,
  .nav-cta-wrap {
    display: none;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .contact-display {
    font-size: 36px;
    line-height: 44px;
  }

  .body-lg {
    font-size: 17px;
    line-height: 27px;
  }

  .form-card {
    padding: 32px 24px;
  }

  .expect-divider {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .btn,
  .nav-link,
  .nav-mobile-panel,
  .tertiary-link,
  .reveal {
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
