/* ==========================================================================
   SECTIONS — layout for each block
   --------------------------------------------------------------------------
   1. Generic section
   2. Hero
   3. Images (single / collage)
   4. Four Pillars
   5. Service cards
   6. FAQ
   7. Contact
   8. Footer
   ========================================================================== */

/* 1. Generic section ------------------------------------------------------ */
.section { padding-block: var(--section-y); }

.section--warm { background: var(--c-warm); }

.section__head {
  display: grid;
  gap: 26px;
  justify-items: start;
  max-width: clamp(820px, 58vw, 1060px);
  margin-bottom: clamp(48px, 5vw, 88px);
}

.section__head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.section__head--tight { margin-bottom: clamp(28px, 3vw, 52px); }

/* 2. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

/* Lighten the left side so the headline stays readable, and let the building
   show through on the right and bottom instead of fading to cream. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(253, 252, 251, 0.88) 0%,
      rgba(253, 252, 251, 0.22) 90px,
      transparent 200px),
    linear-gradient(105deg,
      rgba(253, 252, 251, 0.97) 0%,
      rgba(250, 247, 244, 0.90) 26%,
      rgba(247, 238, 229, 0.38) 48%,
      rgba(247, 238, 229, 0.06) 68%,
      transparent 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.hero__copy {
  display: grid;
  gap: clamp(26px, 2.4vw, 40px);
  justify-items: start;
}

/* Line breaks come from the <br> tags in the HTML, so turn off auto balancing
   and leave the width unconstrained. */
.hero__title { text-wrap: normal; }

.hero__lead {
  font-size: var(--fs-lead);
  max-width: 52ch;
}

.hero__bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1100px);
  margin: 0;
  padding: 4px 8px 0;
  list-style: none;
  border: 1px solid rgba(237, 232, 225, 0.95);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: rgba(253, 252, 251, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__bar li {
  display: grid;
  gap: 8px;
  padding: 22px 28px 24px;
}

.hero__bar li + li {
  border-left: 1px solid rgba(112, 21, 14, 0.12);
}

.hero__bar strong {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.hero__bar span {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--c-body);
  max-width: 28ch;
}

/* 3. Images --------------------------------------------------------------- */
.figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.figure--wide img {
  width: 100%;
  height: clamp(280px, 38vw, 580px);
  object-fit: cover;
}

/* Why us: the image column is slightly wider than the text, both columns are
   flush top and bottom, and the photos always stay sharp. */
.why {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: var(--col-gap);
  align-items: stretch;
}

.why__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why__copy .section__head {
  max-width: none;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.why__copy .lead { max-width: 36ch; }

.why .pillar {
  padding-block: clamp(12px, 1.4vw, 18px);
  grid-template-columns: 52px 1fr;
  gap: 12px;
}

.why .pillar__num { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }

.why .pillar__body {
  gap: 4px;
  padding-left: 16px;
}

.why .pillar__body p { margin: 0; }

.why__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(420px, 42vw, 660px);
}

.why__photos {
  position: absolute;
  inset: 0;
}

.collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
}

.collage figure {
  margin: 0;
  overflow: hidden;
}

.collage__main { grid-row: span 2; }

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. Four Pillars -------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: 0;
}

.pillar {
  display: grid;
  grid-template-columns: minmax(84px, 132px) 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding-block: clamp(26px, 2.9vw, 46px);
  border-top: 1px solid var(--c-border);
}

.pillar:last-child { border-bottom: 1px solid var(--c-border); }

.pillar__num {
  color: var(--c-accent);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* The line between the number and the text */
.pillar__body {
  display: grid;
  gap: 8px;
  padding-left: clamp(20px, 3vw, 48px);
  border-left: 1.5px solid var(--c-accent);
}

.pillar__body p { max-width: 70ch; }

/* 5. Service Cards -------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 40px);
}

.card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(28px, 2.8vw, 48px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-warm);
  color: var(--c-accent);
}

.card__icon svg { width: 24px; height: 24px; }

.card p { max-width: 46ch; }

/* 6. FAQ ------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 56px);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
}

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--c-warm) 0%, rgba(247, 238, 229, 0.45) 62%, rgba(247, 238, 229, 0) 100%);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.faq__item[open] {
  border-color: rgba(112, 21, 14, 0.28);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 1.9vw, 32px);
  color: var(--c-heading);
  font-size: var(--fs-lead);
  cursor: pointer;
  list-style: none;
}

/* Remove the default triangle marker */
.faq__item summary::-webkit-details-marker { display: none; }

/* The dark red circular plus on the right. The vertical stroke is its own
   layer so it can shrink to nothing. */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image:
    linear-gradient(var(--c-surface), var(--c-surface)),
    linear-gradient(var(--c-surface), var(--c-surface));
  background-color: var(--c-accent);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 11px 1.5px, 1.5px 11px;
  transition:
    transform var(--t-panel) var(--ease-panel),
    background-size var(--t-panel) var(--ease-panel);
}

/* When the FAQ item is open, the vertical line disappears. */
.faq__item[open] summary::after {
  background-size: 11px 1.5px, 1.5px 0;
  transform: rotate(180deg);
}

/* The padding lives on the children so this container only drives the height
   animation. That way it can collapse to a true 0 with no leftover gap. */
.faq__answer {
  padding: 0;
}

/* Use padding rather than margin: a child's margin is not counted in the
   parent's scrollHeight, which would make the animation target one line short. */
.faq__answer > * {
  margin: 0;
  padding: 0 clamp(18px, 1.9vw, 32px) 26px;
}

.faq__answer p { max-width: 78ch; }

/* 7. Contact Section ---------------------------------------------------------------- */
/* When the container is very wide, the two columns will be pushed to the left and right ends, so we narrow it down and center it here. */
.contact {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 540px);
  gap: clamp(32px, 3.5vw, 72px);
  align-items: start;
  max-width: 1220px;
  margin-inline: auto;
}

.contact__intro { display: grid; gap: 22px; justify-items: start; }

.contact__list {
  display: grid;
  gap: 22px;
  margin-top: 10px;
}

.contact__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}

.contact__icon svg { width: 20px; height: 20px; }

.contact__label {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.contact__value {
  display: block;
  color: var(--c-heading);
  font-size: var(--fs-lead);
  transition: color var(--t-fast);
}

a.contact__value:hover { color: var(--c-accent); }

.contact__value--plain {
  font-size: var(--fs-body);
  color: var(--c-body);
  max-width: 46ch;
}

/* Form card */
.form-card {
  padding: clamp(26px, 3vw, 56px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}

.form-card h3 { margin-bottom: 6px; }

.form-card__sub {
  margin-bottom: 22px;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* 8. Footer ------------------------------------------------------------------ */
.site-footer {
  padding-top: clamp(28px, 3vw, 48px);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 20px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-body);
}

.site-footer__meta a { transition: color var(--t-fast); }

.site-footer__meta a:hover { color: var(--c-accent); }

.brand--footer .brand__mark { height: 40px; }

.brand--footer .brand__name { height: 28px; }

.site-footer__bar {
  padding-block: 16px 22px;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .contact { grid-template-columns: 1fr; }

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

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

  .why__media { min-height: 260px; height: min(42vh, 340px); }
}

@media (max-width: 760px) {
  .section { padding-block: 72px; }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero__inner {
    padding-block: 48px 56px;
  }

  .hero__copy { gap: 20px; }

  .hero__lead { max-width: none; }

  .hero__bar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero__bar li {
    padding: 16px 0;
  }

  .hero__bar li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(112, 21, 14, 0.12);
  }

  .hero__media::after {
    background:
      linear-gradient(180deg,
        rgba(253, 252, 251, 0.94) 0%,
        rgba(253, 252, 251, 0.78) 48%,
        rgba(247, 238, 229, 0.42) 100%);
  }

  .hero__media img { object-position: 58% center; }

  .contact__item--note { display: none; }

  .contact__list { gap: 16px; }

  .form-card { padding: 22px 18px; }

  .site-footer__top { align-items: flex-start; }

  .site-footer__meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  .brand--footer .brand__mark { height: 34px; }

  .brand--footer .brand__name {
    display: block;
    height: 22px;
    max-width: min(58vw, 180px);
  }

  .collage {
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
  }

  .collage__main { grid-column: 1 / -1; grid-row: auto; }

  .pillar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pillar__body {
    padding-left: 18px;
  }
}

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