:root {
  --ink: #1b1b1b;
  --muted: #6f6a61;
  --paper: #f5f0e8;
  --ivory: #fffaf3;
  --white: #ffffff;
  --line: #d9cfbf;
  --gold: #ae9d7d;
  --gold-soft: #c9bba3;
  --dark: #101010;
  --soft: #eee7da;
  --danger: #8f2c24;
  --success: #2d5a43;
  --shadow: 0 28px 80px rgba(15, 15, 15, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
.result-box strong {
  margin: 0;
  font-family: Caudex, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 980px;
  margin-top: 18px;
  font-size: clamp(42px, 6.2vw, 86px);
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 30px);
}

p {
  max-width: 74ch;
  margin-top: 0;
  text-wrap: pretty;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(90deg, #20201e 0%, #101010 52%, #20201e 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: clamp(138px, 14vw, 190px);
  max-height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--white);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-button {
  background: var(--gold);
  color: var(--white);
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.ghost-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 92px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.16)),
    url("/assets/hero-france.jpg") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 32%;
  content: "";
  background: linear-gradient(180deg, rgba(16, 16, 16, 0), var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(74px, 8vw, 124px) clamp(18px, 7vw, 92px);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #e7ddcb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker::before {
  width: 42px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: #f3efe7;
  font-size: clamp(18px, 1.55vw, 23px);
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero .secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(92%, 460px);
  margin: 96px clamp(18px, 5vw, 68px) 96px auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 16, 16, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card img {
  width: 108px;
  height: 108px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
}

.hero-card p {
  color: #e8dfcf;
}

.hero-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card dl div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-card dt {
  color: #c9bba3;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 800;
}

.section {
  padding: clamp(68px, 8vw, 112px) clamp(18px, 6vw, 76px);
}

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

.section-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 34px;
}

.section-heading .eyebrow {
  color: var(--gold);
}

.section-heading p {
  color: var(--muted);
}

.grid,
.tool-panel,
.content-panel,
.message-box,
.process-strip {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.info-card,
.tool-panel,
.content-panel,
.message-box {
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 18px 58px rgba(15, 15, 15, 0.07);
}

.info-card {
  padding: 28px;
}

.info-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.info-card p,
.content-panel p,
.content-panel li {
  color: var(--muted);
}

.tool-panel {
  padding: clamp(22px, 4vw, 38px);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.stack-form,
.lead-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(174, 157, 125, 0.22);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.input-row input {
  border: 0;
}

.input-row span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.locked {
  background: var(--soft);
}

.locked input {
  background: transparent;
}

.result-box {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(174, 157, 125, 0.22), transparent 36%),
    var(--dark);
  color: var(--white);
}

.result-box span,
.result-box small {
  display: block;
  color: #d8cfbf;
}

.result-box strong {
  display: block;
  margin: 7px 0;
  color: var(--gold-soft);
  font-size: clamp(38px, 6vw, 70px);
}

.check-stack {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.check-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.message-box {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border-left: 5px solid var(--gold);
}

.message-box p {
  color: #4d4438;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-strip div {
  min-height: 116px;
  padding: 18px;
  background: var(--ivory);
}

.process-strip b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 12px;
  background: var(--dark);
  color: var(--gold-soft);
  font-family: Caudex, Georgia, "Times New Roman", serif;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-item {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.lead-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.content-panel {
  padding: clamp(24px, 4vw, 42px);
}

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

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.form-feedback[data-tone="success"] {
  color: var(--success);
}

.form-feedback[data-tone="error"] {
  color: var(--danger);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 42px clamp(18px, 6vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark);
  color: #ddd6ca;
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: start;
}

.social-links {
  align-items: center;
}

.social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(201, 187, 163, 0.45);
  color: var(--white);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.social-link:hover {
  border-color: var(--gold-soft);
  background: rgba(201, 187, 163, 0.1);
  transform: translateY(-1px);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    width: auto;
    margin: 0 clamp(18px, 7vw, 92px) 54px;
  }

  .grid.three,
  .grid.two,
  .tool-grid,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .process-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    min-height: auto;
    padding: 14px 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-wordmark {
    width: 132px;
  }

  .topbar > .primary-button {
    display: none;
  }

  .hero-copy,
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-card {
    margin-right: 16px;
    margin-left: 16px;
  }

  .form-grid,
  .process-strip {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .social-link {
    width: 46px;
    height: 46px;
  }
}
