/* ==========================================================================
   Renovate — home renovation website
   Plain CSS, no build step. Colours and type live in :root below.
   ========================================================================== */

:root {
  /* Brand colours, taken from the DYrioni.Plac logo */
  --primary: #e9742b;          /* logo orange: buttons, icons, highlights */
  --primary-rgb: 233, 116, 43;
  --primary-text: #a8490c;     /* deeper orange for small text: 6:1 on white, 4.7:1 on the darkest tint */
  --on-primary: #152642;       /* text on orange (5.1:1) */
  --secondary: #3d5578;        /* logo slate blue */
  --dark: #152642;             /* logo navy */
  --dark-rgb: 21, 38, 66;
  --dark-2: #0f1c33;
  --heading: #152642;
  --body: #4a5568;
  --light: #f3f5f8;
  --white: #ffffff;
  --line: rgba(21, 38, 66, 0.12);
  --error: #c0262d;

  --font: "Poppins", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --gutter: 24px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --section-y: 100px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 30px;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font);
  color: var(--heading);
  font-weight: 700;
}

h1 { font-size: 64px; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; }
h2 { font-size: 45px; line-height: 1.125; letter-spacing: -0.025em; margin-bottom: 25px; }
h3 { font-size: 26px; line-height: 1.5; font-weight: 600; margin-bottom: 10px; }
h4 { font-size: 20px; line-height: 1.6; font-weight: 600; margin-bottom: 10px; }
h5 { font-size: 18px; line-height: 1.6; font-weight: 600; margin-bottom: 10px; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--dark); color: #fff; padding: 8px 16px; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; position: relative; }

.bg-tint-1 { background: rgba(var(--dark-rgb), 0.04); }
.bg-tint-2 { background: rgba(var(--dark-rgb), 0.07); }
.bg-tint-3 { background: rgba(var(--dark-rgb), 0.1); }
.bg-dark { background: var(--dark); color: rgba(255, 255, 255, 0.8); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

.text-center { text-align: center; }
.lead { max-width: 640px; }
.text-center .lead { margin-left: auto; margin-right: auto; }

.subtitle {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 20px;
}
.on-dark .subtitle,
.bg-dark .subtitle { color: var(--primary); }

.section-head { margin-bottom: 50px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 30px;
  border: 0;
  border-radius: 30px;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 15px/30px var(--font);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-hover-bg, var(--dark)); color: var(--btn-hover-color, #fff); }
/* On navy sections a navy hover would disappear into the background, so buttons there turn white */
.hero, .cta-band, .service-cta, .estimate-panel, .bg-dark { --btn-hover-bg: #fff; --btn-hover-color: var(--heading); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--primary); color: var(--on-primary); }
.btn-light { background: #fff; color: var(--heading); }
.btn-light:hover { background: var(--primary); color: var(--on-primary); }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-sm { padding: 4px 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--heading);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--primary-text); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

/* At the top of the page the header is a full-width bar; once the page scrolls
   it shrinks into a floating, rounded bar inside the content width. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-top: 0;
  transition: padding 0.3s ease;
}
.site-header > .container {
  max-width: 100%;
  padding: 0;
  transition: max-width 0.3s ease, padding 0.3s ease;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: 0;
  padding: 10px max(var(--gutter), calc((100% - var(--container)) / 2));
  min-height: 104px;
  box-shadow: 0 1px 0 var(--line);
  transition: border-radius 0.3s ease, padding 0.3s ease, min-height 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled { padding-top: 12px; }
.site-header.is-scrolled > .container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding: 0 var(--gutter);
}
.site-header.is-scrolled .header-bar {
  border-radius: var(--radius-sm);
  padding: 8px 14px 8px 22px;
  min-height: 76px;
}
.site-header.is-scrolled .header-bar,
.site-header.menu-open .header-bar { box-shadow: 0 10px 30px rgba(21, 38, 66, 0.1); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: var(--heading); letter-spacing: -0.02em; }
.logo img { height: 84px; width: auto; transition: height 0.3s ease; }
/* Header: full logo (with slogans) at the top, compact logo once scrolled */
.site-header .logo { display: grid; }
.site-header .logo img { grid-area: 1 / 1; transition: height 0.3s ease, opacity 0.3s ease; }
.site-header .logo-full { height: 84px; }
.site-header .logo-compact { height: 84px; opacity: 0; visibility: hidden; }
.site-header.is-scrolled .logo img { height: 60px; }
.site-header.is-scrolled .logo-full { opacity: 0; visibility: hidden; }
.site-header.is-scrolled .logo-compact { opacity: 1; visibility: visible; }
.footer-about .logo img { height: 96px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  border-radius: 20px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--primary-text); }
.main-nav a[aria-current="page"] { color: var(--primary-text); }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Language menu: the current language, opening a list of every language */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px 0 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  border-radius: 22px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { background: rgba(var(--dark-rgb), 0.07); }
.lang-menu summary .icon { width: 18px; height: 18px; }
.lang-menu .lang-code { display: none; }
.lang-menu .lang-caret { width: 16px; height: 16px; transition: transform 0.2s ease; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(var(--dark-rgb), 0.16), 0 0 0 1px var(--line);
}
.lang-menu ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  border-radius: 6px;
}
.lang-menu ul a:hover { background: var(--light); }
.lang-menu ul a[aria-current] { font-weight: 600; color: var(--primary-text); }
.lang-menu ul .icon { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(var(--dark-rgb), 0.07);
  color: var(--heading);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero (home) ---------- */

.hero {
  min-height: 900px;
  display: flex;
  align-items: flex-end;
  padding: 220px 0 60px;
  color: rgba(255, 255, 255, 0.85);
  background: var(--dark) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(var(--dark-rgb), 0.96) 0%, rgba(var(--dark-rgb), 0.88) 35%, rgba(var(--dark-rgb), 0.62) 62%, rgba(var(--dark-rgb), 0.25) 88%),
    linear-gradient(0deg, rgba(var(--dark-rgb), 0.15), rgba(var(--dark-rgb), 0.15));
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { max-width: 560px; color: rgba(255, 255, 255, 0.94); }
.hero .subtitle { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-points {
  list-style: none;
  margin: 70px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero-points li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; }
.hero-points .icon { width: 22px; height: 22px; }

/* ---------- Inner page header ---------- */

.page-header {
  padding: 200px 0 90px;
  background: var(--light) center / cover no-repeat;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243, 245, 248, 0.97) 0%, rgba(243, 245, 248, 0.88) 45%, rgba(243, 245, 248, 0.7) 100%);
}
.page-header .container { position: relative; }
.page-header h1 { font-size: 56px; margin-bottom: 10px; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; font-size: 15px; font-weight: 600; }
.breadcrumb li + li::before { content: "›"; color: var(--primary-text); margin-right: 10px; }
.breadcrumb a { color: var(--body); font-weight: 400; }
.breadcrumb a:hover { color: var(--primary-text); }

/* ---------- Grid helpers ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-4-8 { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- About block ---------- */

.about-media { position: relative; padding: 0 70px 70px 0; }
.about-media .img-main { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); }
.about-media .img-small {
  position: absolute; right: 0; bottom: 0;
  width: 46%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-md);
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(21, 38, 66, 0.12);
}

/* ---------- Feature list (check items) ---------- */

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-text);
}
.feature h4 { margin-bottom: 6px; font-size: 18px; }
.feature p { font-size: 15px; line-height: 1.75; }

/* ---------- Service image cards (home) ---------- */

.service-tile {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  color: #fff;
  text-align: center;
}
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-tile::after { content: ""; position: absolute; inset: 0; background: rgba(21, 38, 66, 0.3); }
.service-tile:hover img { transform: scale(1.04); }
.service-tile-body {
  position: relative; z-index: 1;
  max-width: 420px;
  padding: 34px 30px;
  border-radius: var(--radius-md);
  background: rgba(var(--dark-rgb), 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.service-tile h3 { color: #fff; }
.service-tile p { color: rgba(255, 255, 255, 0.94); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }

/* ---------- Service cards (services page) ---------- */

.service-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 44px 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: rgba(var(--primary-rgb), 0.6); }
.service-card .icon-lg { width: 60px; height: 60px; color: var(--primary); stroke-width: 1.2; margin-bottom: 22px; }
.service-card p { font-size: 15px; line-height: 1.75; flex: 1; }
.service-card h4 a:hover { color: var(--primary-text); }
.service-card .link-arrow { margin-top: 12px; }

/* ---------- Service detail page ---------- */

.service-layout { display: grid; grid-template-columns: 290px 1fr; gap: 50px; align-items: start; }
.service-aside { position: sticky; top: 120px; display: grid; gap: 24px; }
.service-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(var(--dark-rgb), 0.05);
  font-size: 15px; font-weight: 600; line-height: 1.5;
  color: var(--heading);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service-nav a::after { content: "›"; font-size: 20px; line-height: 1; color: var(--primary-text); }
.service-nav a:hover { background: rgba(var(--dark-rgb), 0.09); }
.service-nav a[aria-current="page"] { background: var(--dark); color: #fff; }
.service-nav a[aria-current="page"]::after { content: "–"; color: var(--primary); }

.service-help { padding: 28px 24px; border-radius: var(--radius-md); background: var(--dark); color: rgba(255, 255, 255, 0.8); }
.service-help h4 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.service-help p { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.service-help a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.service-help a .icon { width: 18px; height: 18px; color: var(--primary); }

.service-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.service-intro h2 { font-size: 36px; }
.service-intro-img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-lg); }

.service-highlight {
  display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center;
  margin-top: 50px;
  padding: 34px 36px;
  border-radius: var(--radius-md);
  background: rgba(var(--dark-rgb), 0.05);
}
.highlight-figure { text-align: center; }
.highlight-figure strong { display: block; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--primary-text); white-space: nowrap; }
.highlight-figure span { display: block; font-size: 13px; line-height: 1.5; margin-top: 6px; }
.service-highlight h4 { margin-bottom: 6px; }
.service-highlight p { font-size: 15px; line-height: 1.75; }

.service-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.service-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

.service-features-title { font-size: 24px; margin: 60px 0 30px; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.feature-icon-square { border-radius: 14px; }

.service-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin-top: 60px;
  padding: 36px 40px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
}
.service-cta h4 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.service-cta p { font-size: 15px; line-height: 1.7; max-width: 520px; }

/* ---------- Process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-icon {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-text);
}
.step-icon .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.step + .step::before {
  content: "";
  position: absolute; top: 40px; left: calc(-15px - 22px);
  width: 44px; height: 1px;
  background: rgba(var(--primary-rgb), 0.5);
}
.step h4 { margin-bottom: 8px; font-size: 18px; }
.step p { font-size: 15px; line-height: 1.75; }
.step-number { display: block; font-size: 13px; font-weight: 600; color: var(--primary-text); margin-bottom: 4px; }

/* ---------- Before / after ---------- */

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 7.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--dark);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.compare-label {
  position: absolute; top: 20px;
  padding: 2px 14px;
  border-radius: 20px;
  background: rgba(var(--dark-rgb), 0.8);
  color: #fff; font-size: 13px; font-weight: 600;
  pointer-events: none;
}
.compare-label.before { left: 20px; }
.compare-label.after { right: 20px; }
.compare input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) .compare-handle::after { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Project cards & carousel ---------- */

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.project-card h4 { margin-bottom: 8px; }
.project-card p { font-size: 15px; line-height: 1.75; }
.tags { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; line-height: 1;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(var(--dark-rgb), 0.06);
  color: var(--heading);
  font-weight: 400;
}

.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.carousel-head h2 { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 44px; height: 44px;
  border: 0; border-radius: 8px;
  background: var(--dark); color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.carousel-nav button:hover { background: var(--primary); color: var(--on-primary); }
.carousel-nav button:disabled { opacity: 0.4; cursor: default; }
.carousel-nav .icon { width: 18px; height: 18px; stroke-width: 2; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  margin: 0; padding: 0;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

.project-card-media { display: block; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.project-card-media img { margin-bottom: 0; border-radius: 0; transition: transform 0.6s ease; }
.project-card-media:hover img { transform: scale(1.04); }
.project-card h4 a:hover { color: var(--primary-text); }

/* ---------- Project detail page ---------- */

.project-hero {
  height: 760px;
  padding: 0;
  background: var(--light) center / cover no-repeat;
}

.project-intro { padding-top: 60px; }
.project-intro .breadcrumb { margin-bottom: 30px; flex-wrap: wrap; }
.project-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.project-head h1 { font-size: 45px; line-height: 1.125; margin-bottom: 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.project-meta dt { font-size: 13px; line-height: 1.5; color: var(--body); }
.project-meta dd { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--heading); }
.project-summary { font-size: 17px; line-height: 1.8; margin: 0; }

.project-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}
.project-story h3 { font-size: 22px; }

.gallery-title { font-size: 22px; margin: 50px 0 24px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.gallery-view {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 15px;
  background: rgba(var(--dark-rgb), 0.65);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover .gallery-view,
.gallery-item:focus-visible .gallery-view { opacity: 1; }

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 60px 90px;
  border: 0;
  background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 28, 24, 0.92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius-md); object-fit: contain; }
.lightbox-btn {
  position: fixed;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.15); color: #fff;
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 50px rgba(21, 38, 66, 0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; font-size: 20px; margin: 10px 0 0; }

.field label,
.field .label { display: block; font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 6px; line-height: 1.4; }
.field .hint { display: block; font-size: 13px; line-height: 1.5; color: var(--body); margin-top: 6px; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.025);
  font: 400 15px/1.5 var(--font);
  color: var(--heading);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25); }
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: #636b78; opacity: 1; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23505050' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.input:user-invalid,
.select:user-invalid,
.textarea:user-invalid { border-color: var(--error); }

.field-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--error); }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--error); }
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error { padding: 12px 16px; border-radius: 10px; border-left: 4px solid; }
.form-status.is-success { color: var(--dark); background: #e8f3ec; border-color: #2f7d4f; }
.form-status.is-error { color: #9b1c22; background: #fbeaea; border-color: var(--error); }
.form-note { font-size: 13px; line-height: 1.6; margin-top: 14px; }

/* ---------- Contact ---------- */

.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .feature-icon { width: 46px; height: 46px; }
.contact-list .label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); line-height: 1.5; }
.contact-list a:hover { color: var(--primary-text); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 80px 60px;
  color: rgba(255, 255, 255, 0.85);
  background: var(--dark) center / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--dark-rgb), 0.95) 0%, rgba(var(--dark-rgb), 0.72) 60%, rgba(var(--dark-rgb), 0.45) 100%); }
.cta-band > * { position: relative; }
.cta-band .subtitle { color: #fff; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { max-width: 520px; color: rgba(255, 255, 255, 0.92); }
.cta-band .hero-actions { margin-top: 26px; }

/* ---------- Estimator ---------- */

.estimator { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.estimator .form-card { padding: 40px; }

.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--heading); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 13px; line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.choice strong { display: block; font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.choice input:checked + span { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3); }
.choice-group.cols-2 { grid-template-columns: repeat(2, 1fr); }

.area-row { display: grid; grid-template-columns: 1fr 130px; gap: 16px; align-items: center; }
.area-row .input { text-align: right; }
.range { width: 100%; accent-color: var(--primary); }

.checks { display: grid; gap: 10px; }
.field .check { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--heading); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check small { display: block; color: var(--body); font-size: 13px; font-weight: 400; }
.field .check[hidden] { display: none; }
.included-note { font-size: 13px; line-height: 1.6; padding: 12px 14px; border-radius: 10px; background: var(--light); }
.included-note:empty { display: none; }

.estimate-panel {
  position: sticky; top: 120px;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
}
.estimate-panel h2 { color: #fff; font-size: 18px; letter-spacing: 0; font-weight: 600; margin-bottom: 6px; }
.estimate-range { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.estimate-mid { font-size: 14px; }
.estimate-lines { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.15); display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.estimate-lines li { display: flex; justify-content: space-between; gap: 16px; }
.estimate-lines li span:last-child { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate-lines .total { padding-top: 12px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-weight: 600; color: #fff; }
.estimate-panel .btn { width: 100%; margin-top: 28px; }
.estimate-disclaimer { font-size: 12.5px; line-height: 1.6; margin-top: 18px; color: rgba(255, 255, 255, 0.65); }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.75); padding: 90px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: 40px; }
.site-footer h5 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { line-height: 2.1; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 20px; max-width: 360px; line-height: 1.8; }
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-contact .label { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.6; }
.footer-contact .label .icon { width: 16px; height: 16px; color: var(--primary); }
.footer-contact p { line-height: 1.7; margin: 4px 0 0; }
.subfooter { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  h1 { font-size: 56px; }
  .header-bar { gap: 16px; }
  .site-header .logo-full, .site-header .logo-compact { height: 72px; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .header-cta .btn { padding: 8px 20px; }
}

@media (max-width: 991px) {
  :root { --section-y: 72px; }
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .page-header { padding: 170px 0 64px; }
  .page-header h1 { font-size: 44px; }

  .menu-toggle { display: inline-flex; }
  .header-bar { flex-wrap: wrap; padding: 10px var(--gutter); min-height: 80px; }
  .site-header.is-scrolled .header-bar { padding: 8px 10px 8px 20px; min-height: 64px; }
  .main-nav { display: none; order: 3; width: 100%; padding: 4px 0 12px; }
  .menu-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 6px; border-radius: 0; border-top: 1px solid var(--line); }

  .hero { min-height: 760px; padding-top: 180px; }
  .hero-points { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }

  .split, .split-4-8, .estimator { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step + .step::before { display: none; }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .estimate-panel { position: static; }
  .service-layout { grid-template-columns: 1fr; gap: 40px; }
  .service-aside { position: static; order: 2; }
  .project-hero { height: 520px; }
  .project-head, .project-story { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .compare { aspect-ratio: 4 / 3; }
  .cta-band::before { background: linear-gradient(90deg, rgba(var(--dark-rgb), 0.95) 0%, rgba(var(--dark-rgb), 0.86) 100%); }
}

@media (max-width: 767px) {
  :root { --section-y: 56px; --gutter: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  /* Phones: the compact, floating header from the start, so logo, language and menu fit on one row */
  .site-header,
  .site-header.is-scrolled { padding-top: 10px; }
  .site-header > .container { max-width: none; padding: 0 var(--gutter); }
  .site-header .header-bar,
  .site-header.is-scrolled .header-bar {
    gap: 8px;
    padding: 6px 6px 6px 14px;
    min-height: 60px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(21, 38, 66, 0.1);
  }
  .site-header .logo img,
  .site-header.is-scrolled .logo img { height: 42px; }
  .site-header .logo-full { opacity: 0; visibility: hidden; }
  .site-header .logo-compact { opacity: 1; visibility: visible; }
  .header-cta { gap: 4px; }
  .header-cta .btn { display: none; }
  .lang-menu summary { padding: 0 8px 0 10px; gap: 4px; }
  .lang-menu .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .lang-menu .lang-code { display: inline; }
  .logo img { height: 58px; }
  .footer-about .logo img { height: 84px; }

  .hero { min-height: 0; padding: 150px 0 40px; }
  .hero::before { background: linear-gradient(0deg, rgba(var(--dark-rgb), 0.96) 0%, rgba(var(--dark-rgb), 0.9) 45%, rgba(var(--dark-rgb), 0.78) 75%, rgba(var(--dark-rgb), 0.62) 100%); }
  .hero-points { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }

  .page-header { padding: 140px 0 48px; }
  .page-header h1 { font-size: 36px; }

  .about-media { padding: 0 40px 40px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid, .contact-info-grid, .footer-contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .service-tile { min-height: 400px; padding: 24px; }
  .carousel { grid-auto-columns: 86%; }
  .carousel-head { align-items: flex-start; flex-direction: column; }
  .form-card, .estimator .form-card { padding: 26px 20px; }
  .choice-group,
  .choice-group.cols-2 { grid-template-columns: 1fr; }
  .estimate-panel { padding: 32px 24px; }
  .estimate-range { font-size: 32px; }
  .cta-band { padding: 50px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .compare-label { top: 12px; }
  .service-intro, .service-photos, .service-features { grid-template-columns: 1fr; }
  .service-intro h2 { font-size: 30px; }
  .service-highlight { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; text-align: center; }
  .service-cta { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .project-hero { height: 360px; }
  .project-intro { padding-top: 40px; }
  .project-head h1 { font-size: 32px; }
  .gallery { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

/* The smallest phones: a little more room so the header still fits on one row */
@media (max-width: 359px) {
  .site-header .logo img,
  .site-header.is-scrolled .logo img { height: 38px; }
  .lang-menu .lang-caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
