/* ==========================================================================
   Revival Västerås — stylesheet
   ========================================================================== */

:root {
  --forest: #183328;
  --forest-light: #234838;
  --forest-dark: #0e1f18;
  --beige: #F1E9DC;
  --beige-soft: #F8F4EC;
  --brass: #B08D57;
  --brass-light: #C9A66B;
  --brass-dark: #8A6B3B;
  --black: #121212;
  --white: #FFFFFF;

  --text-body: #2b2b28;
  --text-muted: #6b6a63;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;

  --container-w: 1200px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(24, 51, 40, 0.10);
  --shadow-card: 0 6px 20px rgba(20, 30, 25, 0.08);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

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

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--beige);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass);
  color: var(--forest-dark);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(241, 233, 220, 0.6);
  color: var(--beige);
}
.btn-outline:hover { background: rgba(241, 233, 220, 0.12); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: background-color 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(24, 51, 40, 0.96);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  box-shadow: var(--shadow-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--beige);
}
.logo-line-1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.logo-line-2 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--brass-light);
  margin-top: 4px;
}
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  color: var(--beige);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,31,24,0.55) 0%, rgba(14,31,24,0.72) 55%, rgba(14,31,24,0.92) 100%),
    linear-gradient(90deg, rgba(14,31,24,0.55) 0%, rgba(14,31,24,0.25) 45%, rgba(14,31,24,0.55) 100%);
}
.hero-content {
  padding-top: 90px;
  max-width: 680px;
}
.hero .eyebrow { color: var(--brass-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero-text {
  color: rgba(241, 233, 220, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(241,233,220,0.55);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--brass-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite ease-in-out;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .fade-in.is-visible { transition-delay: 0.05s; }

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits {
  padding: 90px 0;
  background: var(--beige-soft);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.benefit-card {
  text-align: center;
  padding: 10px;
}
.benefit-card .icon {
  width: 44px;
  height: 44px;
  margin-inline: auto 12px;
  margin-bottom: 18px;
  color: var(--brass);
}
.benefit-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 110px 0; }
.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.service-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card h3 {
  font-size: 1.2rem;
  margin: 22px 24px 8px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 24px 24px;
}


/* ==========================================================================
   Before / After slider
   ========================================================================== */
.before-after {
  padding: 110px 0;
  background: var(--forest);
}
.before-after .eyebrow { color: var(--brass-light); }
.before-after .section-title { color: var(--white); }
.before-after .section-subtitle { color: rgba(241,233,220,0.75); margin-inline: auto; }

.ba-slider {
  position: relative;
  margin-top: 50px;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  user-select: none;
  touch-action: pan-y;
}
.ba-media {
  position: absolute;
  inset: 0;
}
.ba-media svg, .ba-media img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { z-index: 1; }
.ba-after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}
.ba-tag {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(18, 39, 32, 0.55);
  color: var(--beige);
  backdrop-filter: blur(3px);
}
.ba-tag-before { left: 20px; }
.ba-tag-after { right: 20px; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--beige);
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-handle-grip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote { padding: 110px 0; background: var(--white); }
.quote-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.quote-points { margin-top: 26px; }
.quote-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-body);
  font-weight: 500;
}
.quote-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brass);
}

.quote-form {
  background: var(--beige-soft);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(24,51,40,0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--forest);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(24,51,40,0.18);
  border-radius: 4px;
  background: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.18);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field.has-error input,
.form-field.has-error select {
  border-color: #b3413a;
}
.field-error {
  display: block;
  min-height: 18px;
  font-size: 0.8rem;
  color: #b3413a;
  margin-top: 5px;
}
.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-field-file input { padding: 10px 14px; background: var(--white); }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 20px;
}
.form-status.success { color: var(--forest); }
.form-status.error { color: #b3413a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-dark); color: rgba(241,233,220,0.85); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-brand .logo { color: var(--beige); margin-bottom: 14px; }
.footer-slogan { font-family: var(--font-display); font-style: italic; color: var(--brass-light); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--beige);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--brass-light); }
.footer-col p { font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid rgba(241,233,220,0.12);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(241,233,220,0.55);
}

/* ==========================================================================
   Mobile sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--brass);
  color: var(--forest-dark);
  text-align: center;
  padding: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--forest);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { font-size: 1.05rem; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-sticky-cta { display: block; }
  .quote { padding-bottom: 150px; }
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 22px; }
  .hero-actions .btn { width: 100%; }
  .ba-slider { aspect-ratio: 4 / 5; }
}

/* FAQ */
.faq {
  padding: 100px 0;
  background: var(--beige-soft);
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--brass);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
