/* Eeron pihatyöt — site styles */

:root {
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;

  --color-bg: #f7f3e8;
  --color-bg-alt: #eee6d3;
  --color-ink: #201d17;
  --color-ink-soft: #4a453b;

  --color-forest: #1f3d2b;
  --color-forest-dark: #142a1d;
  --color-forest-tint: #e4ecdf;

  --color-accent: #c1712c;
  --color-accent-dark: #9c5920;

  --color-line: rgba(32, 29, 23, 0.14);
  --color-cream: #fbf8f0;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px -20px rgba(20, 26, 18, 0.35);

  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--color-forest-dark);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

a { color: var(--color-forest); text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: #e7c79a; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff8ee;
  box-shadow: 0 10px 24px -10px rgba(157, 89, 32, 0.6);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-forest);
  color: var(--color-forest-dark);
}
.btn-secondary:hover { background: var(--color-forest); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; min-height: 42px; font-size: 0.92rem; }

/* Icon inside a button (inherits the button's text colour) */
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Two buttons side by side, stacking cleanly on small screens */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 420px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* On dark quote section, secondary needs light border */
.section-quote .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.section-quote .btn-secondary:hover { background: #fff; color: var(--color-forest-dark); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 232, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-forest-dark);
}
.brand-mark { color: var(--color-forest); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-forest-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  background: var(--color-cream);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-forest-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  padding: 6px 2px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-forest); }

.nav-cta {
  background: var(--color-forest);
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-forest-dark); }

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

  .site-nav {
    position: fixed;
    inset: 72px 12px auto 12px;
    background: var(--color-cream);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 12px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 13px 10px;
    border-radius: var(--radius-sm);
  }
  .site-nav a:hover { background: var(--color-forest-tint); }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 88px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 60%, var(--color-bg-alt) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Grid items default to min-width:auto, which lets a long unbroken word push
   the column wider than the viewport. Both hero columns opt out. */
.hero-copy,
.hero-visual { min-width: 0; }

.hero-lead {
  font-size: 1.1rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-visual { display: flex; justify-content: center; }

.stripe-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  border-radius: 28px;
  background: repeating-linear-gradient(
    115deg,
    #2a4b34 0px,
    #2a4b34 34px,
    #234026 34px,
    #234026 68px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.stripe-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 55%);
}
.hero-leaf {
  width: 58%;
  color: #f4ead2;
  opacity: 0.92;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .stripe-panel { max-width: 280px; }
}

/* ---------- Section shells ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-lead { font-size: 1.05rem; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
}

/* ---------- Trust section ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.trust-figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 22px;
  background: var(--color-forest);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.trust-number {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
}
.trust-number-label {
  font-size: 0.92rem;
  color: #d9e3d3;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.trust-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-list h3 { margin-bottom: 0.25em; }
.trust-list p { margin: 0; }

.icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-figure { flex-direction: row; align-items: center; gap: 18px; }
}

/* ---------- Service feature ---------- */

.service-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.service-feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--color-forest-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest);
}
.service-feature-icon svg {
  width: 34px; height: 34px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.check-list {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-forest-tint);
  border: 1.5px solid var(--color-forest);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 0.62em;
  width: 7px; height: 4px;
  border-left: 1.6px solid var(--color-forest);
  border-bottom: 1.6px solid var(--color-forest);
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .service-feature { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* ---------- Services grid ---------- */

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
  width: 30px; height: 30px;
  color: var(--color-forest);
  margin: 0 0 14px;
}
.service-card h3 { margin-bottom: 0.35em; font-size: 1.04rem; }
.service-card p { margin: 0; font-size: 0.94rem; }

.services-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Highlight chips ---------- */

.highlight-chips {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.highlight-chips li {
  background: var(--color-forest-tint);
  color: var(--color-forest-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 15px;
  border-radius: 999px;
}

/* ---------- Floating quote CTA (small screens only) ---------- */

.floating-cta {
  display: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 1040px) {
  .floating-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    padding: 14px 22px;
    min-height: 48px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff8ee !important;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 14px 30px -10px rgba(20, 26, 18, 0.55);
  }
  .floating-cta:active { transform: translateY(1px); }

  /* Hidden while the quote form itself is on screen */
  .floating-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  /* Room so the fixed button never covers footer content */
  .site-footer { padding-bottom: 92px; }
}

/* ---------- Split sections (Yrityksille / Taloyhtiöille) ---------- */

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.split-reverse .split-grid { grid-template-columns: 0.8fr 1.2fr; }
.split-reverse .split-visual { order: -1; }

.split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: var(--color-forest-tint);
  border-radius: var(--radius);
}
.split-icon {
  width: 40%;
  color: var(--color-forest);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-copy p { max-width: 46ch; }

@media (max-width: 760px) {
  .split-grid, .split-reverse .split-grid { grid-template-columns: 1fr; }
  .split-reverse .split-visual { order: 0; }
  .split-visual { aspect-ratio: 16/9; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: flex-start;
}
.about-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-forest);
  color: #f4ead2;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.about-copy p { max-width: 58ch; }

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { width: 88px; height: 88px; font-size: 1.7rem; }
}

/* ---------- Quote / tarjous section ---------- */

.section-quote {
  background: var(--color-forest-dark);
  background-image: radial-gradient(circle at 85% 0%, rgba(255,255,255,0.06), transparent 55%);
  color: #f4ead2;
}
.section-quote h2, .section-quote h3 { color: #fbf8f0; }
.section-quote p { color: #d9e3d3; }

.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: flex-start;
}

.quote-intro p { max-width: 40ch; }

.quote-form-wrap { position: relative; }

.quote-form {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.form-row { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.form-row-half { grid-column: auto; }

.form-row label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-forest-dark);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  min-height: 48px;
}
.form-row textarea { min-height: 100px; resize: vertical; }

/* Native select, restyled to match the text inputs */
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  cursor: pointer;
}
.form-row select:invalid { color: #6f6a5f; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(31, 61, 43, 0.18);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Secondary line inside the confirmation / error panels: the required wording
   comes first, these add the practical follow-up without competing with it. */
.quote-success-extra,
.quote-error-extra {
  margin: 10px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin: 0;
}

.quote-form .btn { grid-column: 1 / -1; }

.quote-success {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  color: var(--color-ink);
}
.quote-success h3, .quote-success h1 { color: var(--color-forest-dark); margin-bottom: 0.4em; }
.quote-success p { color: var(--color-ink-soft); }
.success-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  color: var(--color-forest);
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.quote-error {
  margin-top: 16px;
  background: #fbe9e2;
  border: 1px solid #d98a63;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #6b2e12;
}
.quote-error p { color: #6b2e12; margin: 0; }
.quote-error a { color: #6b2e12; text-decoration: underline; }

@media (max-width: 860px) {
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-form { grid-template-columns: 1fr; padding: 24px 18px; }
  .form-row-half { grid-column: 1 / -1; }
}

/* ---------- Contact cards ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.contact-card h3 { margin-bottom: 0.3em; }
.contact-card p { margin: 0; color: var(--color-ink-soft); word-break: break-word; }

@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Thank-you page ---------- */

.thankyou-page { min-height: 60vh; display: flex; align-items: center; }
.thankyou-wrap { display: flex; justify-content: center; }
.thankyou-wrap .quote-success { max-width: 480px; }
.thankyou-wrap .btn { margin-top: 18px; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.86rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 12px 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-ink-soft);
  opacity: 0.6;
}
.breadcrumbs a { color: var(--color-forest); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--color-ink-soft); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: center;
}

.page-lead {
  font-size: 1.1rem;
  max-width: 58ch;
}

.page-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--color-forest);
  box-shadow: var(--shadow-soft);
}
.page-hero-icon svg {
  width: 46%;
  color: #f4ead2;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-hero-initials {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #f4ead2;
}

.hero-meta {
  margin: 20px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}

@media (max-width: 860px) {
  .page-hero { padding: 36px 0 32px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-icon { max-width: 132px; aspect-ratio: 1; }
  .page-hero-initials { font-size: 2.2rem; }
}

/* ---------- Content + aside ---------- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.content-main > h2 { margin-top: 1.8em; }
.content-main > h2:first-child { margin-top: 0; }
.content-main p { max-width: 68ch; }
.content-main a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.content-main a:hover { color: var(--color-accent-dark); }

.content-aside {
  position: sticky;
  top: 96px;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.aside-title { font-size: 1.05rem; margin-bottom: 0.8em; }

.aside-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--color-ink-soft);
}
.aside-list li { padding-bottom: 10px; border-bottom: 1px solid var(--color-line); }
.aside-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-list strong { color: var(--color-forest-dark); }
.aside-list-plain li { border-bottom: 0; padding-bottom: 0; }
.aside-list a { color: var(--color-forest); font-weight: 600; }

.aside-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.aside-note a { font-weight: 700; text-decoration: underline; }

@media (max-width: 940px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-aside { position: static; }
}

/* ---------- Service cards as links ---------- */

.service-card { padding: 0; }
.service-card-link {
  display: block;
  padding: 26px 22px;
  height: 100%;
}
.service-card-link h3 { margin-bottom: 0.35em; font-size: 1.04rem; }
.service-card-link p { margin: 0 0 12px; font-size: 0.94rem; }
.service-card-link .icon { margin: 0 0 14px; }

.service-card-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}
.service-card-link:hover .service-card-more { text-decoration: underline; }

.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Segment cards ---------- */

.segment-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.segment-card {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.segment-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.segment-card a { display: block; padding: 28px 24px; height: 100%; }
.segment-card .icon { width: 30px; height: 30px; color: var(--color-forest); margin: 0 0 14px; }
.segment-card h3 { margin-bottom: 0.35em; }
.segment-card p { font-size: 0.94rem; margin: 0 0 12px; }

@media (max-width: 860px) {
  .segment-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-forest);
  color: #f4ead2;
  padding: 52px 0;
}
.cta-band h2 { color: #fbf8f0; margin-bottom: 0.4em; }
.cta-band p { color: #d9e3d3; margin: 0; max-width: 52ch; }
.cta-band .btn-secondary { border-color: #fff; color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--color-forest-dark); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-inner .btn-row { margin-top: 0; flex-shrink: 0; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-forest);
  color: #f4ead2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.steps h3 { margin-bottom: 0.3em; font-size: 1.02rem; }
.steps p { margin: 0; font-size: 0.94rem; }

@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; max-width: 820px; }

.faq-item {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-forest-dark);
  position: relative;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--color-forest);
  border-bottom: 2px solid var(--color-forest);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; max-width: 68ch; }

/* ---------- Quote form extras ---------- */

.quote-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.quote-facts li { display: flex; align-items: center; gap: 12px; color: #d9e3d3; }
.quote-facts a { color: #fff; font-weight: 700; text-decoration: underline; }
.icon-light { color: #e7c79a; margin-top: 0; }

.req { color: var(--color-accent-dark); }

.field-error {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #9c2c0c;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #c0492a;
  background: #fff7f4;
}

.thankyou-actions { justify-content: center; margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-forest-dark);
  color: #d9e3d3;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand { color: #fbf8f0; font-size: 1.2rem; }
.footer-about p { margin: 6px 0 0; color: #b9c6b1; font-size: 0.94rem; max-width: 34ch; }

.footer-contact {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-contact a { color: #fbf8f0; font-weight: 700; word-break: break-word; }
.footer-contact a:hover { text-decoration: underline; }

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fbf8f0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: #d9e3d3;
  font-size: 0.94rem;
  display: inline-block;
  padding: 2px 0;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-bottom p { margin: 0; color: #9fae97; font-size: 0.88rem; }

@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Room so the fixed quote button never covers footer content */
@media (max-width: 1040px) {
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Current-page marker in navigation ---------- */

.site-nav a[aria-current="page"] { color: var(--color-forest); }
.site-nav a[aria-current="page"]:not(.nav-cta) {
  box-shadow: inset 0 -2px 0 var(--color-accent);
}
@media (max-width: 1040px) {
  .site-nav a[aria-current="page"]:not(.nav-cta) {
    background: var(--color-forest-tint);
    box-shadow: none;
  }
}
