/* ==========================================================================
   VineyardLine — Estate & Home Finance
   Mediterranean vineyard estate design system
   ========================================================================== */

:root {
  --wine: #6D1F38;
  --wine-deep: #4A1426;
  --olive: #617A55;
  --olive-deep: #45573C;
  --limestone: #F2E9DD;
  --gold: #D8A14B;
  --ink: #2A1A20;
  --cream: #FBF7F1;
  --line: rgba(109, 31, 56, .16);
  --shadow-soft: 0 18px 45px -25px rgba(42, 26, 32, .55);
  --shadow-lift: 0 28px 60px -30px rgba(42, 26, 32, .65);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --arch: 46% 46% 12px 12px / 34% 34% 12px 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--wine); text-decoration-color: rgba(216, 161, 75, .6); text-underline-offset: 3px; }
a:hover { color: var(--wine-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--wine-deep);
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive-deep);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}

.section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; position: relative; }
.section--limestone { background: var(--limestone); }
.section--wine { background: var(--wine-deep); color: #F6EDE3; }
.section--wine h2, .section--wine h3 { color: var(--limestone); }

.lead { font-size: 1.12rem; max-width: 60ch; color: #4A3A3F; }
.section--wine .lead { color: rgba(246, 237, 227, .82); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Vine trellis divider — signature motif */
.trellis {
  height: 26px;
  width: 100%;
  background-image:
    linear-gradient(var(--gold), var(--gold)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(97, 122, 85, .55) 46px 48px);
  background-size: 100% 1px, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, repeat-x;
  opacity: .5;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--wine);
  color: #FFF6EA;
  padding: .6rem 1.1rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #FFF6EA; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--primary { background: var(--wine); color: #FFF7EF; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--wine-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(242, 233, 221, .5); color: var(--limestone); }
.btn--ghost:hover { background: rgba(242, 233, 221, .12); color: #fff; transform: translateY(-2px); }
.btn--olive { background: var(--olive); color: #F7F4EC; }
.btn--olive:hover { background: var(--olive-deep); color: #fff; transform: translateY(-2px); }
.btn--outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn--outline:hover { background: var(--wine); color: #FFF7EF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 241, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wine-deep);
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--body);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-top: .2rem;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { color: var(--wine); border-bottom-color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: var(--wine-deep);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--wine-deep); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--wine-deep);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #F7EFE6;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
  background: var(--wine-deep);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=1800&q=70");
  background-size: cover;
  background-position: center;
  opacity: .42;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(74, 20, 38, .93) 12%, rgba(74, 20, 38, .62) 55%, rgba(97, 122, 85, .45) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 { color: #FFF6EA; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 52ch; color: rgba(255, 246, 234, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.6rem; font-size: .85rem; color: rgba(255, 246, 234, .68); max-width: 48ch; }

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(242, 233, 221, .22);
  border: 1px solid rgba(242, 233, 221, .22);
  border-radius: 18px;
  overflow: hidden;
}
.hero-stats div { background: rgba(42, 12, 22, .55); padding: 1.4rem 1.5rem; }
.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stats span { font-size: .84rem; color: rgba(255, 246, 234, .78); }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 90px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 1.5rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { font-size: .96rem; color: #4A3A3F; }
.card ul { margin: 0 0 1.2rem; padding-left: 1.1rem; font-size: .93rem; color: #4A3A3F; }
.card ul li { margin-bottom: .35rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  color: var(--wine);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.card .card-link:hover { gap: .7rem; }

/* ---------- Process (vine stages) ---------- */
.stages { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: stage; }
.stage {
  position: relative;
  padding: 2.4rem 1.4rem 1.6rem;
  border-top: 2px solid rgba(242, 233, 221, .3);
}
.stage::before {
  counter-increment: stage;
  content: "0" counter(stage);
  position: absolute;
  top: -.9rem;
  left: 1.4rem;
  background: var(--gold);
  color: var(--wine-deep);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  padding: .15rem .6rem;
  border-radius: 999px;
}
.stage h3 { font-size: 1.35rem; }
.stage p { font-size: .95rem; color: rgba(246, 237, 227, .8); margin-bottom: 0; }

/* ---------- Split section (about / estate) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.arch-frame {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid #fff;
}
.arch-frame img { width: 100%; height: clamp(320px, 46vw, 520px); object-fit: cover; }
.arch-caption {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(74, 20, 38, .88);
  color: var(--limestone);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.fact-list li {
  display: flex;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .97rem;
}
.fact-list li::before { content: "❧"; color: var(--gold); font-size: 1.1rem; line-height: 1.4; }
.fact-list li strong { display: block; color: var(--wine-deep); font-family: var(--display); font-size: 1.15rem; }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, .95fr);
  align-items: start;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--wine-deep);
}
.field output { font-family: var(--display); font-size: 1.25rem; color: var(--olive-deep); }
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--wine);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(42, 26, 32, .35);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--wine);
  border: 3px solid #fff;
}
input[type="range"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }

.calc-result {
  background: var(--wine-deep);
  color: var(--limestone);
  border-radius: 24px 24px 24px 90px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.calc-result .amount {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 3vw, 3.8rem);
  color: var(--gold);
  line-height: 1;
  margin: .3rem 0 .2rem;
}
.calc-result dl { margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.calc-result .row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(242, 233, 221, .25); padding-bottom: .5rem; font-size: .93rem; }
.calc-result .row dt { color: rgba(242, 233, 221, .72); margin: 0; }
.calc-result .row dd { margin: 0; font-weight: 700; }
.calc-disclaimer { font-size: .8rem; color: rgba(242, 233, 221, .62); margin-top: 1.2rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lift); }
.plan-flag {
  position: absolute;
  top: -.85rem; left: 1.7rem;
  background: var(--gold);
  color: var(--wine-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
}
.plan h3 { margin-bottom: .1rem; }
.plan .plan-for { font-size: .88rem; color: var(--olive-deep); font-weight: 700; margin-bottom: 1rem; }
.plan .price { font-family: var(--display); font-size: 3rem; color: var(--wine); line-height: 1; }
.plan .price small { font-family: var(--body); font-size: .82rem; color: #6A585D; display: block; margin-top: .35rem; font-weight: 600; }
.plan ul { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; font-size: .95rem; }
.plan ul li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px dashed var(--line); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }

.price-notes {
  margin-top: var(--gap);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.price-notes h3 { font-size: 1.3rem; }
.price-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .94rem; }
.price-table th, .price-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-deep); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--wine); white-space: nowrap; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  background: var(--limestone);
  border-radius: 22px 90px 22px 22px;
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.section--limestone .quote { background: #fff; }
.quote blockquote { margin: 0 0 1.2rem; font-family: var(--display); font-size: 1.22rem; line-height: 1.45; color: var(--wine-deep); }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-size: .88rem; }
.quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote strong { display: block; color: var(--ink); }
.quote span { color: #6A585D; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .35rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.4rem 1.1rem 0;
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--wine-deep);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.6rem;
  font-family: var(--body);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq p { font-size: .97rem; color: #4A3A3F; padding-right: 2rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .88rem; color: var(--wine-deep); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(216, 161, 75, .5);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-field .error { color: var(--wine); font-size: .82rem; min-height: 1em; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; grid-column: 1 / -1; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--wine); }
.form-status {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(97, 122, 85, .14);
  border: 1px solid rgba(97, 122, 85, .35);
  font-size: .95rem;
  display: none;
}
.form-status.is-visible { display: block; }

.contact-card {
  background: var(--wine-deep);
  color: var(--limestone);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-card h3 { color: var(--limestone); }
.contact-card a { color: var(--gold); }
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; font-size: .95rem; }
.contact-list li { border-bottom: 1px dashed rgba(242, 233, 221, .25); padding-bottom: 1rem; }
.contact-list span {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 233, 221, .6);
  margin-bottom: .25rem;
}
.contact-photo { margin-top: 1.4rem; border-radius: 18px; overflow: hidden; }
.contact-photo img { height: 180px; width: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(242, 233, 221, .78); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 {
  font-family: var(--body);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(242, 233, 221, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand-name { color: var(--limestone); }
.footer-brand p { max-width: 34ch; margin-top: 1rem; font-size: .9rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 233, 221, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(242, 233, 221, .58);
}
.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(242, 233, 221, .55);
  max-width: 90ch;
}

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  width: min(100% - 1.5rem, 980px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(42, 26, 32, .5);
  padding: 1.3rem 1.5rem;
  z-index: 90;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  transition: transform .4s ease;
}
.cookie-bar.is-open { transform: translateX(-50%) translateY(0); }
.cookie-bar p { margin: 0; font-size: .9rem; }
.cookie-bar strong { font-family: var(--display); font-size: 1.2rem; display: block; color: var(--wine-deep); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { padding: .7rem 1.3rem; font-size: .87rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--wine);
  color: #FFF6EA;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 70;
  box-shadow: var(--shadow-soft);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Legal pages ---------- */
.page-head {
  background: var(--wine-deep);
  color: var(--limestone);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-head h1 { color: #FFF6EA; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.page-head p { color: rgba(255, 246, 234, .78); max-width: 60ch; margin-bottom: 0; }
.breadcrumb { font-size: .84rem; margin-bottom: 1rem; color: rgba(255, 246, 234, .7); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.4rem; }
.legal-body h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: .65rem .7rem; text-align: left; vertical-align: top; }
.legal-body th { background: var(--limestone); font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-meta {
  background: var(--limestone);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.3rem;
  border-radius: 0 14px 14px 0;
  font-size: .92rem;
}
.legal-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .8rem; }
.legal-nav a {
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  color: var(--wine);
}
.legal-nav a:hover { background: var(--wine); color: #FFF6EA; }

/* ---------- Motion & responsive ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
}

@media (max-width: 620px) {
  .cookie-bar { grid-template-columns: 1fr; }
  .card { border-radius: 20px 20px 20px 60px; }
  .calc-result { border-radius: 20px 20px 20px 60px; }
  .hero-stats b { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cookie-bar, .to-top, .hero::before { display: none; }
}
