/* ============================================================
   Haga Bygg — demo site (Göteborg renovation company)
   Cool Scandinavian industrial palette: pine, amber, off-white
   ============================================================ */

:root {
  --bg: #f2f4f2;
  --paper: #ffffff;
  --ink: #1b2321;
  --muted: #5f6b66;
  --pine: #1f3d33;
  --pine-dark: #15302a;
  --pine-light: #e3ece8;
  --amber: #d9772f;
  --line: #dde3de;
  --shadow: 0 10px 30px rgba(20, 35, 30, .08);
  --radius: 10px;
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 em { font-style: normal; color: var(--amber); }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head .lede { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section-foot { margin-top: 40px; text-align: center; }
.lede { font-size: 17.5px; color: var(--muted); }
.p-muted { color: var(--muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 600 15px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--pine-light); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn-block { width: 100%; margin-top: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--pine);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text em { font-style: normal; color: var(--amber); }
.brand-light { color: #fff; }
.brand-light .brand-text em { color: #f0b47f; }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; transition: color .15s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
  margin-top: 5px;
}
.nav-cta { margin-left: 10px; padding: 12px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 100px 0 110px;
  color: #fff;
  background: linear-gradient(120deg, var(--pine-dark), var(--pine));
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 28, 24, .88) 0%, rgba(12, 28, 24, .55) 55%, rgba(12, 28, 24, .25) 100%); }
.hero-content { position: relative; max-width: 700px; }
.hero .eyebrow { color: #f0b47f; }
.hero h1 { font-size: clamp(40px, 5.8vw, 62px); margin-bottom: 20px; }
.hero .lede { color: rgba(255, 255, 255, .9); font-size: 18.5px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.hero-notes strong { color: #fff; }

/* Stats bar */
.stats-bar { background: var(--pine-dark); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 38px 0;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: #f0b47f; }
.stat-label { font-size: 13.5px; color: rgba(255, 255, 255, .75); margin-top: 4px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20, 35, 30, .12); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-tag {
  display: inline-block;
  background: var(--pine-light);
  color: var(--pine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.price { font-weight: 700; color: var(--pine); font-size: 16px; font-family: var(--font-display); }
.link-arrow { color: var(--amber); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: #b85d1e; }

.review-card { display: flex; flex-direction: column; }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 16px; margin-bottom: 14px; }
.review-card blockquote { font-size: 16px; line-height: 1.55; flex: 1; }
.review-card figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-card figcaption strong { display: block; font-size: 15px; }
.review-card figcaption span { color: var(--muted); font-size: 13.5px; }

/* Two-column & chips */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2 h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.grid-2 .lede { margin-bottom: 22px; }
.cta-row { margin-top: 28px; }
.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--pine-light), var(--line));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before {
  content: "✓";
  width: 23px; height: 23px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--pine-light);
  color: var(--pine);
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
  margin-top: 2px;
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, #b85d1e, var(--amber) 65%, #e8944f); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 64px 24px; }
.cta-band .eyebrow { color: #ffe0c4; }
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 52px; }
.footer-brand p { font-size: 14.5px; margin-top: 18px; max-width: 320px; }
.footer-org { color: rgba(255, 255, 255, .5) !important; font-size: 13px !important; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col h4 { color: #f0b47f; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 24px;
}
.footer-bottom a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Inner page hero */
.page-hero { background: linear-gradient(120deg, var(--pine-dark), var(--pine)); color: #fff; padding: 84px 0 72px; }
.page-hero .eyebrow { color: #f0b47f; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 760px; margin-bottom: 18px; }
.page-hero .lede { color: rgba(255, 255, 255, .88); max-width: 640px; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-card .media { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.project-body { padding: 24px 26px 26px; }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-head h3 { font-size: 22px; }
.project-loc { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }
.project-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.step-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--amber); display: block; margin-bottom: 12px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Guarantee card */
.guarantee-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--pine-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
}
.guarantee-card h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.guarantee-card p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.guarantee-card .eyebrow { color: #f0b47f; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; }
.form-card h2 { font-size: 26px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 500 15px var(--font-sans);
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(31, 61, 51, .14);
}
.field-full { grid-column: 1 / -1; margin-top: 18px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-success { background: var(--pine-light); border: 1px solid var(--pine); color: var(--pine-dark); border-radius: var(--radius); padding: 30px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.info-stack { display: grid; gap: 18px; position: sticky; top: 100px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; }
.info-card .p-muted { margin-top: 6px; }
.info-link { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-decoration: none; color: var(--pine); }
.info-link:hover { color: var(--pine-dark); }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; background: var(--pine-light); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-stack { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 11px 12px; border-radius: 8px; font-size: 16px; }
  .nav-link.active { background: var(--pine-light); }
  .nav-link.active::after { display: none; }
  .hero { min-height: 0; padding: 84px 0 96px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .info-stack { grid-template-columns: 1fr; }
  .form-card, .guarantee-card { padding: 28px 22px; }
}
