/* Klimatinstal — climate-comfort landing. Warm paper base, fresh teal air accent, warm amber heat accent. */

:root {
  --paper: #f6f1e9;
  --paper-2: #efe7db;
  --card: #fffdf9;
  --ink: #1c211f;
  --ink-2: #4a544f;
  --line: #e0d6c6;

  --air: #0e7f78;
  --air-deep: #0a5e59;
  --air-tint: #e2f0ed;
  --heat: #c15a2b;
  --heat-tint: #f6e6da;

  --star: #e2a32b;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(28,33,31,.05), 0 8px 24px -16px rgba(28,33,31,.18);
  --shadow-md: 0 2px 6px rgba(28,33,31,.06), 0 30px 60px -34px rgba(10,94,89,.32);

  --wrap: 1200px;
  --pad: clamp(1.15rem, 5vw, 2.5rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(60rem 40rem at 88% -6%, rgba(14,127,120,.07), transparent 60%),
    radial-gradient(50rem 34rem at -6% 12%, rgba(193,90,43,.05), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.012em; }

::selection { background: var(--air); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--air-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 12px 12px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- shared ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--air-deep);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--air); border-radius: 2px; }

.section-title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.15rem); max-width: 15ch; }
.section-head--split .section-title { max-width: 20ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: .78rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--phone { background: var(--air); color: #fff; box-shadow: 0 10px 24px -12px rgba(14,127,120,.7); }
.btn--phone:hover { background: var(--air-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14,127,120,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--air); color: var(--air-deep); transform: translateY(-2px); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(28,33,31,.5); }
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; }
.nav__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--air), var(--air-deep)); color: #fff;
}
.nav__links { display: flex; gap: 1.65rem; margin-inline: auto; font-weight: 500; font-size: .96rem; }
.nav__links a { color: var(--ink-2); position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--air); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .58rem 1.05rem; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta span { display: none; }
  .nav__cta { padding: .58rem; aspect-ratio: 1; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__grid {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; font-size: .9rem; color: var(--ink-2); margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero__badge strong { color: var(--ink); font-weight: 600; }
.hero__stars { color: var(--star); letter-spacing: .05em; }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.7rem); font-weight: 600; }
.hero__title { font-optical-sizing: auto; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.24rem); color: var(--ink-2); max-width: 42ch; margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-2); letter-spacing: .01em; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 1376 / 768; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.hero__media::before {
  content: ""; position: absolute; inset: auto -14px -16px auto; width: 62%; height: 60%;
  background: radial-gradient(120% 120% at 100% 100%, rgba(14,127,120,.16), transparent 62%);
  border-radius: var(--r-lg); z-index: -1;
}
.hero__chip {
  position: absolute; left: -12px; bottom: 22px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1rem; font-size: .88rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md);
}
.hero__chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px var(--heat-tint); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__chip { left: 12px; bottom: 12px; }
}

/* ---------- services (card grid) ---------- */

.cards {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--air), var(--air-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--air-tint); color: var(--air-deep); margin-bottom: 1.15rem;
}
.card__title { font-size: 1.24rem; margin-bottom: .55rem; }
.card__text { color: var(--ink-2); font-size: .96rem; }

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

/* ---------- why (image + numbered list) ---------- */

.why { background: var(--paper-2); border-block: 1px solid var(--line); }
.why__grid {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: start;
}
.why__media { position: sticky; top: 92px; }
.why__media img {
  width: 100%; aspect-ratio: 896 / 1200; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.why__intro { color: var(--ink-2); font-size: 1.08rem; margin-top: 1rem; max-width: 46ch; }
.why__list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; counter-reset: none; }
.why__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 0; padding-bottom: 0; }
.why__num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--air-deep); line-height: 1; padding-top: .25rem; }
.why__item h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.why__item p { color: var(--ink-2); font-size: .98rem; }

@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__media { position: static; max-width: 420px; }
}

/* ---------- gallery (asymmetric mosaic) ---------- */

.gallery__note { color: var(--ink-2); max-width: 34ch; }
.gallery__grid {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); grid-column: span 3;
}
.gallery__item--tall { grid-column: span 3; grid-row: span 2; }
.gallery__item--wide { grid-column: span 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.15rem .95rem; font-weight: 600; font-size: .95rem; color: #fff;
  background: linear-gradient(0deg, rgba(16,22,20,.82), transparent);
}
.gallery__item--tall img { min-height: 300px; }

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item, .gallery__item--tall, .gallery__item--wide { grid-column: span 1; grid-row: auto; }
  .gallery__item img { aspect-ratio: 1200 / 896; }
}

/* ---------- reviews (editorial quotes) ---------- */

.reviews { background: var(--ink); color: #f1ede4; position: relative; overflow: hidden; }
.reviews::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50rem 30rem at 80% -10%, rgba(14,127,120,.35), transparent 60%),
              radial-gradient(40rem 26rem at 5% 110%, rgba(193,90,43,.2), transparent 60%);
}
.reviews__head, .reviews__grid { position: relative; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.reviews__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews__head .section-title { color: #fff; }
.reviews__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  color: #9fe4dc; font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.reviews__link:hover { border-color: #9fe4dc; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: 1.7rem 1.5rem; position: relative;
  backdrop-filter: blur(2px);
}
.quote__stars { color: var(--star); letter-spacing: .1em; font-size: 1rem; margin-bottom: .9rem; }
.quote blockquote { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.45; color: #f6f2ea; font-weight: 400; }
.quote figcaption { display: flex; flex-direction: column; margin-top: 1.3rem; }
.quote__author { font-weight: 600; color: #fff; }
.quote__src { font-size: .82rem; color: #9aa39f; }

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

/* ---------- faq (two-col: sticky intro + accordion) ---------- */

.faq__grid {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: start;
}
.faq__intro { position: sticky; top: 100px; }
.faq__intro p { color: var(--ink-2); margin: 1rem 0 1.6rem; max-width: 34ch; }
.faq__list { display: grid; gap: .7rem; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 1.35rem; transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--air) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5e59' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item p { color: var(--ink-2); padding-bottom: 1.2rem; font-size: .98rem; max-width: 62ch; }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* ---------- contact (dark inset panel) ---------- */

.contact { padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.contact__panel {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(2rem, 4vw, 3.6rem);
  border-radius: var(--r-lg); color: #f1ede4; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--air-deep), #0b423f);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 3vw, 3.5rem); align-items: center;
  box-shadow: var(--shadow-md);
  margin-inline: var(--pad);
}
.contact__panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(30rem 24rem at 92% -20%, rgba(255,255,255,.09), transparent 60%);
}
.contact__intro { position: relative; }
.contact__intro .section-title { color: #fff; max-width: 18ch; }
.contact__lead { color: #cfe7e3; margin: 1rem 0 1.7rem; max-width: 38ch; }
.contact__panel .btn--phone { background: #fff; color: var(--air-deep); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.contact__panel .btn--phone:hover { background: #f1ede4; color: var(--ink); }
.contact__details { position: relative; display: grid; gap: .1rem; }
.contact__row {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start;
  padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.14);
}
.contact__row:first-child { border-top: 0; }
.contact__row dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8fc7c0; padding-top: .15rem; }
.contact__row dd { font-weight: 500; }
.contact__row a { border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__row a:hover { border-color: #fff; }

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

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 2.6rem 5.5rem; }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; gap: .5rem;
}
.footer__brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.footer__tag { color: var(--ink-2); max-width: 46ch; }
.footer__meta { font-style: normal; color: var(--ink-2); font-size: .95rem; margin-top: .3rem; }
.footer__meta a { color: var(--air-deep); font-weight: 600; }
.footer__copy { font-size: .85rem; color: var(--ink-2); margin-top: .6rem; }

/* ---------- mobile call bar ---------- */

.callbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  align-items: center; justify-content: center; gap: .55rem;
  background: var(--air); color: #fff; font-weight: 600;
  padding: .95rem 1rem calc(.95rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px -14px rgba(0,0,0,.5);
}
@media (max-width: 720px) {
  .callbar { display: flex; }
  .footer { padding-bottom: 6rem; }
}

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .07s; }
.cards .reveal:nth-child(3) { transition-delay: .14s; }
.cards .reveal:nth-child(4) { transition-delay: .21s; }
.reviews__grid .reveal:nth-child(2) { transition-delay: .09s; }
.reviews__grid .reveal:nth-child(3) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery__item img, .card, .btn { transition: none; }
}
