/* =========================
   Variables
========================= */
:root {
  --navy: #1F4E78;
  --navy-light: #153552;
  --gold: #C69A2E;
  --gold-dark: #B08526;
  --cream: #FAF7F1;
  --white: #ffffff;
  --text: #283247;
  --muted: #6d7485;
  --border: #ded9cf;
  --danger: #b53b3b;
  --success: #357a4a;
  --shadow: 0 18px 45px rgba(31, 78, 120, 0.09);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

input,
textarea,
select {
  width: 100%;
}

textarea {
  resize: vertical;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.container {
  width: min(calc(100% - 36px), 1180px);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.brand small {
  margin-top: 4px;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-link {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  padding: 95px 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 166, 106, 0.17), transparent 24%),
    linear-gradient(120deg, var(--cream), #ffffff);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 80px;
}

.hero__text {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__reassurance span {
  padding: 9px 13px;
  border: 1px solid rgba(23, 34, 56, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__card {
  padding: 36px;
  border: 1px solid rgba(23, 34, 56, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero__card p {
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  line-height: 1.25;
}

.hero__card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   Layout
========================= */
.project-section {
  padding: 100px 0;
  background: #fbfaf8;
}

.project-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.project-sidebar {
  position: sticky;
  top: 110px;
}

.project-sidebar > p:not(.eyebrow) {
  color: var(--muted);
}

.progress-card,
.help-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.progress-card__top strong {
  color: var(--gold-dark);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #ece8df;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-dark);
  transition: width 0.3s ease;
}

.help-card {
  color: var(--white);
  background: var(--navy);
}

.help-card strong {
  display: block;
  margin-bottom: 10px;
}

.help-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

/* =========================
   Accordion
========================= */
.project-form {
  display: grid;
  gap: 15px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.accordion-item.open {
  border-color: rgba(169, 133, 72, 0.58);
  box-shadow: 0 14px 35px rgba(23, 34, 56, 0.08);
}

.accordion-button {
  display: grid;
  width: 100%;
  padding: 22px 24px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
}

.accordion-title {
  display: flex;
  flex-direction: column;
}

.accordion-title strong {
  font-size: 1rem;
}

.accordion-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.accordion-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--cream);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

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

.accordion-content {
  display: grid;
  max-height: 0;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    grid-template-rows 0.45s ease,
    opacity 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 5000px;
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-inner {
  min-height: 0;
  padding: 0 24px 28px;
  overflow: hidden;
}

/* =========================
   Fields
========================= */
.form-grid {
  display: grid;
  gap: 20px;
}

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

.form-field {
  margin-top: 21px;
}

.form-field label,
.choice-group legend {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-field label span,
.choice-group legend span,
.consent strong {
  color: var(--danger);
}

.form-field input,
.form-field textarea,
.form-field select {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8d3ca;
  border-radius: 10px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(169, 133, 72, 0.12);
}

.form-field input.invalid,
.form-field textarea.invalid,
.form-field select.invalid {
  border-color: var(--danger);
}

.choice-group {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  display: block;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card > span {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid #ddd8cf;
  border-radius: 13px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.choice-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.choice-card input:checked + span {
  border-color: var(--gold-dark);
  background: rgba(200, 166, 106, 0.09);
  box-shadow: 0 0 0 3px rgba(169, 133, 72, 0.1);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-grid label {
  display: flex;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.checkbox-grid input,
.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--gold-dark);
}

.consent {
  display: flex;
  margin-top: 25px;
  padding: 16px;
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.8rem;
}

/* =========================
   Submit
========================= */
.form-submit {
  margin-top: 15px;
  padding: 32px;
  border-radius: 20px;
  color: var(--white);
  background: var(--navy);
}

.form-submit p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.submit-button {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: var(--gold-dark);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.submit-button:hover {
  background: #bb914f;
  transform: translateY(-2px);
}

.form-message {
  margin-top: 14px;
  color: #ffd6d6;
  font-size: 0.82rem;
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #101827;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.76rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .hero__inner,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }

  .hero__card {
    max-width: 620px;
  }
}

@media (max-width: 650px) {
  .site-header__inner {
    min-height: 70px;
  }

  .header-link {
    padding: 9px 13px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .project-section {
    padding: 70px 0;
  }

  .form-grid--two,
  .choice-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .accordion-button {
    padding: 18px 16px;
    gap: 12px;
  }

  .accordion-number {
    width: 36px;
    height: 36px;
  }

  .accordion-title small {
    display: none;
  }

  .accordion-inner {
    padding: 0 16px 22px;
  }

  .form-submit {
    padding: 25px 20px;
  }

  .submit-button {
    width: 100%;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
