/* ==========================================================================
   PropCare AS — stylesheet
   Colors, fonts and spacing are defined once as variables below.
   To rebrand, change the variables in :root — nothing else needs editing.
   ========================================================================== */

:root {
  /* Matches the colors from the original propcare.no site */
  --color-forest: #2c583c;
  --color-forest-dark: #0e0e0c;
  --color-forest-light: #3a6b4c;
  --color-cream: #f6f4ef;
  --color-cream-dark: #e7e3d9;
  --color-white: #ffffff;
  --color-text: #0e0e0c;
  --color-text-muted: #4a4a45;
  --color-accent: #2c583c;
  --color-accent-dark: #1e3f2a;
  --color-border: #ded8c9;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(14, 14, 12, 0.07);
  --shadow-md: 0 12px 32px rgba(14, 14, 12, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

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

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--color-white); }
.section-forest {
  background: var(--color-forest);
  color: rgba(255, 255, 255, 0.92);
}
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest p { color: rgba(255, 255, 255, 0.78); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}
.section-forest .eyebrow { color: rgba(255,255,255,0.75); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; border-color: var(--color-forest); color: var(--color-forest); }
.btn-secondary:hover { background: var(--color-forest); color: #fff; }
.btn-light { background: #fff; color: var(--color-forest); }
.btn-light:hover { background: var(--color-cream); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 46px; width: auto; display: block; }
.footer-logo { height: 52px; width: auto; align-self: flex-start; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--color-forest); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-forest-dark);
}
.header-phone svg { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--color-forest-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(44, 88, 60, 0.10), transparent 45%),
    linear-gradient(180deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; margin: 32px 0 40px; flex-wrap: wrap; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}
.trust-item svg { color: var(--color-accent); flex-shrink: 0; }

/* ---------- Placeholder image blocks ---------- */
.placeholder-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(44,88,60,0.06) 0 12px, transparent 12px 24px),
    var(--color-cream-dark);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-forest);
  text-align: center;
  min-height: 220px;
  overflow: hidden;
}
.placeholder-img .placeholder-label {
  padding: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 80%;
}
.placeholder-img .placeholder-icon { opacity: 0.55; margin-bottom: 8px; }
.hero-media .placeholder-img { min-height: 420px; box-shadow: var(--shadow-md); }

/* Before / after photo pair */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.before-after figure { margin: 0; position: relative; }
.before-after .placeholder-img { min-height: 0; aspect-ratio: 3 / 4; }
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(14, 14, 12, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.ba-label.after { background: var(--color-forest); }
.gallery-card .before-after { gap: 2px; background: var(--color-border); }
.gallery-card .before-after .placeholder-img { border-radius: 0; border-width: 0; }

/* A placeholder-img holding a real photo instead of the dashed placeholder */
.placeholder-img.filled { background: var(--color-cream-dark); border: none; padding: 0; }
.placeholder-img.filled img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.hero-media { position: relative; }
.hero-media .badge-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.badge-card strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-forest); }
.badge-card span { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-cream-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-forest);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; margin-bottom: 14px; }
.service-card .card-link { font-weight: 600; color: var(--color-forest); font-size: 0.9rem; }
.service-card .card-link:hover { color: var(--color-accent); }

/* Main (tree) services get more visual weight than the rest */
.service-card.featured { padding: 34px 30px; border-top: 4px solid var(--color-forest); }
.service-card.featured .service-icon { width: 60px; height: 60px; background: var(--color-forest); color: #fff; }
.service-card.featured h3 { font-size: 1.35rem; }
.service-card .checklist { margin: 4px 0 20px; }
.service-card .checklist li { font-size: 0.92rem; margin-bottom: 8px; gap: 10px; }
.service-card .checklist svg { width: 18px; height: 18px; margin-top: 2px; }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Quick links under the page title on the services page */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-forest);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--color-forest); background: var(--color-forest); color: #fff; }
.chip.primary { background: var(--color-forest); border-color: var(--color-forest); color: #fff; }
.chip.primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 90px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .step-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-accent);
  opacity: 0.85;
  margin-bottom: 6px;
  display: block;
}
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { font-size: 0.92rem; }

/* ---------- Why us / founder ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--color-text);
}
.checklist svg { color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }

.founder-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
}
.founder-card .placeholder-img { width: 88px; height: 88px; min-height: 88px; border-radius: 50%; flex-shrink: 0; }
.founder-card strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; }
.founder-card span { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { font-style: italic; color: var(--color-text); }
.testimonial-card footer { font-size: 0.88rem; font-weight: 600; color: var(--color-text-muted); font-style: normal; margin-top: 12px; }
.testimonial-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  background: var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 14px 20px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.gallery-card .placeholder-img { border-radius: 0; border-width: 0 0 1px 0; min-height: 240px; }
/* Single photos grow to fill the card when a wider neighbour makes the row taller */
.gallery-card > .placeholder-img.filled { flex: 1 0 auto; }
.gallery-card > .placeholder-img.filled img { position: absolute; inset: 0; }
/* Before / after pairs take two columns so each photo gets room */
.gallery-card.span-2 { grid-column: span 2; }
.gallery-card.span-2 .before-after .placeholder-img { aspect-ratio: 4 / 5; }
.gallery-card.cta-card {
  background: var(--color-forest);
  border-color: var(--color-forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px;
  min-height: 320px;
}
.gallery-card.cta-card h3 { color: #fff; }
.gallery-card.cta-card p { color: rgba(255, 255, 255, 0.82); margin-bottom: 22px; }
.gallery-card-body { padding: 20px 22px; }
.gallery-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-dark);
  background: rgba(44, 88, 60, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gallery-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-forest-dark);
}
.faq-question .icon { transition: transform 0.2s ease; flex-shrink: 0; color: var(--color-accent); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }
.faq-answer p { margin: 0; font-size: 0.96rem; }

/* ---------- Service area ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.area-tag {
  background: var(--color-cream-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-forest);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
}
.contact-info-card h3 { margin-bottom: 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.contact-row svg { color: var(--color-accent); flex-shrink: 0; }
.contact-row:last-child { margin-bottom: 0; }

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field label .req { color: var(--color-accent-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-cream);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  background: #fff;
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #eaf3ec;
  border: 1px solid #bcdbc4;
  color: var(--color-forest-dark);
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-cream-dark);
  color: var(--color-text-muted);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { color: var(--color-text); font-size: 1rem; margin-bottom: 6px; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-forest); }
.footer-muted { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-small { font-size: 0.82rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.92rem; }
.social-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--color-forest); }
.footer-bottom {
  padding: 22px 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Sticky mobile call button ---------- */
.mobile-call-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 48px;
  background: var(--color-cream-dark);
  text-align: center;
}
.page-hero .eyebrow { display: block; }
.page-hero p { max-width: 60ch; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media .placeholder-img { min-height: 440px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    font-size: 1.15rem;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .mobile-call-btn { display: flex; }
  .hero-media .badge-card { left: 12px; bottom: -16px; max-width: 200px; padding: 12px 16px; }
  .services-grid,
  .services-grid.cols-2,
  .services-grid.cols-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.span-2 { grid-column: auto; }
  .gallery-card.span-2 .before-after .placeholder-img { aspect-ratio: 3 / 4; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 56px 0; }
  .founder-card { flex-direction: column; text-align: center; }
}
