/* Kitchens By Roxx and Designs — clean rewrite */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --brand-green: #7fc06a;
  --brand-green-dark: #3fa737;
  --brand-green-accent: #2dc26b;
  --ink: #111214;
  --ink-2: #333;
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --dark: #000000;
  --footer-bg: #4b4f52;
  --topbar-h: 44px;
  --header-h: 90px;
  --nav-height: 60px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-heading: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-quote: "Roboto Condensed", "Roboto", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-green-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.site-header__logo img {
  width: 320px;
  max-width: 100%;
  height: auto;
}
.site-header__top-right {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  text-align: right;
  color: var(--brand-green-accent);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
}
.site-header__top-right a { color: var(--brand-green-accent); }
.main-nav {
  grid-column: 2 / -1;
  grid-row: 2 / 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  display: inline-block;
  padding: 8px 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand-green-accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Green title banner (inner pages) ---------- */
.page-banner {
  background: var(--brand-green);
  color: var(--ink);
  padding: 36px 0;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Home hero (slider) ---------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1920 / 600;
  min-height: 240px;
  max-height: 60vh;
}
.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__caption {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  max-width: 55%;
  text-transform: uppercase;
}
.hero__caption p { margin: 0; }
.hero__dots {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms;
}
.hero__dot.is-active { background: #fff; }

/* ---------- Intro (tagline strip) ---------- */
.intro {
  text-align: center;
  padding: 40px var(--gutter);
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-2);
}

/* ---------- Service tile grid ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 24px 0 48px;
}
.tile {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #222;
}
.tile__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tile__image::before,
.tile__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 350ms ease;
}
.tile__image::before { opacity: 1; }
.tile__image::after { opacity: 0; }
.tile:hover .tile__image::before { opacity: 0; }
.tile:hover .tile__image::after { opacity: 1; }
.tile__label {
  display: block;
  text-align: center;
  padding: 14px 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  background: #fff;
}
.tile:hover .tile__label { color: var(--brand-green-dark); }

/* Grey/gradient background band that wraps the second row of tiles on home */
.tile-band {
  background: linear-gradient(180deg, #e8e8e8, #dcdcdc);
  padding: 40px 0;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 56px 0 40px;
}
.testimonials__quotes-mark {
  color: var(--brand-green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  text-align: center;
  margin-bottom: 24px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  color: var(--ink-2);
}
.testimonial {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.testimonial__author {
  margin-top: 12px;
  color: var(--brand-green-accent);
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
}

/* ---------- Page content (about, service pages) ---------- */
.page-body {
  padding: 40px 0 56px;
}
.page-body__prose {
  max-width: 960px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 16px;
  text-align: center;
}
.page-body__prose p { margin: 0 0 1.2em; }
.page-body__prose--left { text-align: left; }

.service-hero-image {
  max-width: 720px;
  margin: 24px auto 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.service-hero-image img { width: 100%; height: auto; display: block; }

/* Services overview grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 32px 0;
}
.service-card {
  background: #fff;
  color: var(--ink);
  display: block;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 200ms;
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.service-card__image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.service-card__label {
  padding: 14px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-card:hover .service-card__label { color: var(--brand-green-dark); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px 0 48px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 32px 0 64px;
}
.contact-info h2, .contact-form h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-info p { margin: 0 0 1.4em; color: var(--ink-2); }
.contact-info a { color: var(--ink-2); }
.contact-info a:hover { color: var(--brand-green-accent); }

.contact-form form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form label .req { color: #d32f2f; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 150ms;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-green-accent);
}
.contact-form button[type="submit"] {
  background: #ececec;
  color: var(--ink);
  border: 0;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.contact-form button[type="submit"]:hover {
  background: var(--brand-green-accent);
  color: #fff;
}
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status {
  font-size: 15px;
  color: var(--brand-green-dark);
  min-height: 20px;
}
.contact-form__status.is-error { color: #c62828; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 22px 0;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__contact {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 200ms;
}
.site-footer__social a:hover { transform: translateY(-2px); }
.site-footer__social img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 10px var(--gutter);
  }
  .site-header__logo img { width: 140px; }
  .site-header__top-right { font-size: 14px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms ease;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid #222;
  }
  body.menu-open .main-nav,
  .main-nav.open { max-height: calc(100vh - var(--header-h)); }
  .hero {
    aspect-ratio: auto;
    height: 260px;
    min-height: 240px;
  }
  .hero__caption {
    max-width: 82%;
    left: 5%;
    font-size: 12px;
    line-height: 1.4;
  }
  .hero__dots { right: 12px; bottom: 10px; }
  .tile-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
