/* 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: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 24px;
}
.site-header__logo {
  grid-column: 1 / 2;
  grid-row: 1 / -1;
  align-self: center;
}
.site-header__logo img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}
.site-header__top-right {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: end;
  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 / 3;
  grid-row: 2 / 3;
  align-self: start;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}
.main-nav > a,
.main-nav__item > 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,
.main-nav__item > a:hover,
.main-nav__item > a.is-active,
.main-nav__item--open > a {
  color: var(--brand-green-accent);
}
.main-nav__item { position: relative; }
.main-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  z-index: 110;
}
.main-nav__item:hover > .main-nav__sub,
.main-nav__item--open > .main-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.main-nav__sub li { margin: 0; }
.main-nav__sub a {
  display: block;
  padding: 12px 18px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.main-nav__sub a:hover,
.main-nav__sub a.is-active {
  background: var(--brand-green-accent);
  color: #ffffff;
}
.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; }
.main-nav__close {
  display: none;
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  z-index: 210;
}

/* ---------- 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 (nivoSlider, full-bleed) ---------- */
.hero.slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  height: 475px;
  box-shadow: none;
}
/* nivoSlider default theme uses position:absolute + width/height 100% on the
   .nivoSlider div — fine because our .slider-wrapper is the sized ancestor.
   Force images to cover the wrapper. */
.hero .nivoSlider {
  box-shadow: none !important;
}
.hero .nivoSlider > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}
/* Caption sits over the slider but flows through the site container so its
   left edge lines up with the header/nav/tile columns below. */
.hero__caption-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__caption-wrap > .container { width: 100%; }
.hero__caption {
  display: inline-block;
  background-color: rgba(37, 41, 46, 0.41);
  color: #ffffff;
  font-family: "Roboto", var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  line-height: 40px;
  letter-spacing: 0.01em;
  padding: 16px 22px;
  max-width: 60%;
  text-transform: uppercase;
}
.hero__caption p { margin: 0; }

/* ---------- 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;
}
.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;
}
.tile:hover .tile__label { color: var(--brand-green-dark); }

/* Section 2 tiles: taller image + "See More" overlay button on the image */
.tile--with-cta .tile__image {
  aspect-ratio: auto;
  height: 316px;
}
.tile__cta {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 12px 26px;
  background-color: #25292e;
  color: #ffffff;
  font-family: "Open Sans", var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  opacity: 0.51;
  transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease;
  pointer-events: none;
}
.tile--with-cta:hover .tile__cta {
  background-color: #ffffff;
  color: #000000;
  opacity: 1;
}

/* 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: 'arial black', sans-serif;
  font-size: 107px;
  line-height: 1;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.3em;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  color: var(--ink);
  text-align: center;
}
.testimonial {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
  color: #000;
  text-align: center;
}
.testimonial__author {
  margin-top: 16px;
  color: #000;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
}
.testimonials__stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- 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;
}
body[data-page="about-us"] .page-body__prose {
  max-width: none;
}
.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: 26px;
  color: var(--ink);
  margin-bottom: 22px;
}
.contact-info p {
  margin: 0 0 1.4em;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}
.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: 22px; }
.contact-form > p {
  font-size: 19px;
  line-height: 1.55;
}
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form label .req { color: #d32f2f; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  transition: border-color 150ms;
}
.contact-form textarea { min-height: 150px; 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: 16px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  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: var(--container);
  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;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 10px var(--gutter);
  }
  .site-header__logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center;
  }
  .site-header__logo img { width: 140px; }
  .site-header__top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
    font-size: 14px;
  }
  .nav-toggle {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Full-screen green overlay drawer — slides from top, full-width items */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 56px 0 24px;
    background: var(--brand-green);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 320ms ease;
  }
  body.menu-open .main-nav,
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav > a,
  .main-nav__item { width: 100%; }
  .main-nav > a,
  .main-nav__item > a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background: #ffffff;
    color: var(--ink);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .main-nav > a:hover,
  .main-nav > a.is-active,
  .main-nav__item > a:hover,
  .main-nav__item > a.is-active,
  .main-nav__item--open > a {
    background: #ffffff;
    color: var(--brand-green-dark);
  }
  .main-nav__sub {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .main-nav__sub li { list-style: none; }
  /* Arrow next to SERVICES so users know it has a submenu */
  .main-nav__item--has-sub > a { position: relative; }
  .main-nav__item--has-sub > a::after {
    content: "\25BC"; /* ▼ */
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    line-height: 1;
    color: var(--brand-green-dark);
  }
  /* Sub-items begin roughly where SERVICES text ends — a hanging indent */
  .main-nav__sub a {
    display: block;
    width: 100%;
    padding: 11px 16px 11px 50%;
    text-align: left;
    background: #ffffff;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }
  .main-nav__sub a:hover,
  .main-nav__sub a.is-active {
    background: #ffffff;
    color: var(--brand-green-dark);
  }
  body.menu-open { overflow: hidden; }
  .hero.slider-wrapper {
    height: 260px;
  }
  .hero__caption {
    max-width: 82%;
    font-size: 13px;
    line-height: 20px;
  }
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tile--with-cta .tile__image { height: 180px; }
  .tile__label { padding: 10px 6px; font-size: 13px; }
  .tile__cta { padding: 8px 14px; font-size: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
