:root {
  --charcoal: #252525;
  --ink: #151515;
  --muted: #68615b;
  --line: #e5e0da;
  --paper: #fffaf4;
  --white: #ffffff;
  --wood: #9b633b;
  --wood-dark: #5f3824;
  --terracotta: #c85f2b;
  --blue: #1f4f6d;
  --shadow: 0 18px 45px rgba(20, 17, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 118px;
  height: auto;
}

.brand span {
  color: var(--wood-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(200, 95, 43, 0.22);
  background: #ad4f23;
}

.btn.ghost:hover {
  color: var(--white);
  border-color: var(--terracotta);
}

.btn.secondary {
  background: var(--charcoal);
}

.btn.ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.hero .btn.ghost,
.page-hero .btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 650px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 96px 0 120px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--terracotta);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1.12rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  margin-bottom: 34px;
  max-width: 820px;
}

.section-head p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 95, 43, 0.42);
  box-shadow: var(--shadow);
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}

.product-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.08);
}

.product-tile.wide {
  grid-column: span 2;
}

.product-tile img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.08), rgba(20, 20, 20, 0.76));
}

.product-tile div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.product-tile span {
  display: block;
  margin-bottom: 8px;
  color: #ffd7bf;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-tile h3 {
  max-width: 420px;
  font-size: 1.45rem;
}

.product-tile:hover img {
  transform: scale(1.04);
}

.card-body {
  flex: 1;
  padding: 24px;
}

.visual-card .card-body {
  padding: 18px;
}

.visual-card p {
  font-size: 0.95rem;
}

.card p,
.feature p,
.contact-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.feature-list,
.product-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.product-list li {
  position: relative;
  padding-left: 26px;
}

.feature-list li::before,
.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 10px;
  height: 10px;
  background: var(--terracotta);
}

.feature {
  padding: 26px;
  border-left: 4px solid var(--terracotta);
  background: var(--white);
  box-shadow: 0 12px 24px rgba(20, 17, 14, 0.06);
}

.catalog-section,
.catalog-card {
  scroll-margin-top: 96px;
}

.section-head.compact {
  max-width: none;
}

.section-head.compact p {
  max-width: 620px;
  margin-top: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}

.catalog-grid.compact-grid {
  grid-auto-rows: 270px;
}

.catalog-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 270px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.08);
}

.catalog-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.72));
}

.catalog-copy,
.catalog-card > span,
.catalog-card > strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.catalog-copy h3,
.catalog-card > span,
.catalog-card > strong {
  font-weight: 900;
}

.catalog-copy h3 {
  font-size: 1.25rem;
}

.catalog-copy p {
  max-width: 420px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.45;
}

.catalog-card:not(.large) .catalog-copy p {
  font-size: 0.88rem;
}

.catalog-card:hover img {
  transform: scale(1.04);
}

.product-group {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.06);
}

.product-group + .product-group {
  margin-top: 34px;
}

.product-group-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.product-group-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 92px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.9), rgba(20, 20, 20, 0.62)),
    var(--charcoal);
}

.page-hero.materials {
  background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.9), rgba(20, 20, 20, 0.58)), url("../images/products/wooden-door.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero.cabinetry {
  background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.54)), url("../images/products/kitchen-cabinet.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero.installation {
  background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.54)), url("../images/products/solar-panel.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero.contact {
  background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.54)), url("../images/aircon-install.png");
  background-position: center;
  background-size: cover;
}

.cta-band {
  background: var(--paper);
  color: var(--charcoal);
  padding: 84px 0;
}

.cta-band .container {
  display: block;
}

.cta-band p {
  max-width: 680px;
  color: var(--muted);
}

.cta-band .section-actions {
  margin-top: 26px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.06);
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

.contact-card dt {
  color: var(--wood-dark);
  font-weight: 900;
}

.contact-card dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  background: #181818;
  color: rgba(255, 255, 255, 0.78);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.footer-logo {
  width: 130px;
  background: var(--white);
  padding: 6px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 14px 0 0;
  max-width: 440px;
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-contact span {
  display: block;
}

.copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.whatsapp-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  background: #25d366;
  color: #102317;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(16, 35, 23, 0.24);
}

.whatsapp-chat:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid.four,
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head.compact {
    display: block;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 600px;
  }

  .hero-slide {
    min-height: 600px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand img {
    width: 102px;
  }

  .hero-content,
  .section,
  .page-hero {
    padding: 64px 0;
  }

  .hero-slide {
    min-height: 560px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .grid.four,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-tile.wide {
    grid-column: span 1;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .catalog-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .btn {
    width: 100%;
  }

  .product-group {
    padding: 22px;
  }

  .whatsapp-chat {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
