/* ==========================================================================
   Kitchens By Roxx and Designs — site styles
   Edit the tokens below to retheme the whole site.
   ========================================================================== */
:root {
  --black: #000000;        /* header / topbar background */
  --green: #3fa737;        /* brand accent: banners, buttons, links */
  --green-dark: #34902d;   /* hover state for green elements */
  --footer: #484b4d;       /* footer background */
  --text: #1c1c1c;         /* body copy */
  --muted: #5f6368;
  --line: #e2e2e2;
  --white: #ffffff;
  --maxw: 1180px;
  --gutter: 22px;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: background .2s ease;
}
.btn:hover { background: var(--green-dark); color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
#site-header { min-height: 124px; }

.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 15px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
}
.topbar a, .topbar .phone { color: var(--green); font-weight: 500; }
.topbar a:hover { color: var(--white); }

.header-main {
  background: var(--black);
  color: var(--white);
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}
.brand img { height: 90px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .4px;
  padding: 10px 14px;
  white-space: nowrap;
  transition: color .15s ease;
}
.main-nav a:hover,
.main-nav .current > a,
.main-nav .current-parent > a { color: var(--green); }

/* Services dropdown */
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after { content: " \25be"; font-size: 11px; }
.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.main-nav .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .submenu a {
  color: var(--text);
  text-transform: uppercase;
  font-size: 13.5px;
  padding: 9px 20px;
}
.main-nav .submenu a:hover { color: var(--green); background: #f5f5f5; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; width: 100%; }
.nav-toggle span::after { position: absolute; top: 7px; width: 100%; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
  z-index: 190;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #111;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-carousel .carousel-track { position: absolute; inset: 0; }
.hero-carousel .carousel-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-carousel .carousel-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.hero-overlay .container { width: 100%; padding-left: 150px; }
.hero-overlay p {
  margin: 0;
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

.hero .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.32);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
  transition: background .2s;
}
.hero .carousel-arrow:hover { background: rgba(0,0,0,.6); }
.hero .carousel-arrow.prev { left: 16px; }
.hero .carousel-arrow.next { right: 16px; }

.hero .carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 6;
}
.hero .carousel-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  display: block;
}
.hero .carousel-dots i.is-active { background: var(--green); }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 56px 0; }
.intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 22px;
  color: #2b2b2b;
}

/* Inner-page green banner */
.page-banner {
  background: var(--green);
  color: var(--white);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.page-banner h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================================================================
   Service card grid (home + services overview)
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 34px;
  max-width: 940px;
  margin: 0 auto;
}
.service-card {
  display: block;
  color: var(--text);
}
.service-card .thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 287 / 267;
  background: #eee;
}
.service-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .see-more {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 13px;
  letter-spacing: .4px;
  padding: 7px 16px;
  border-radius: 2px;
}
.service-card:hover .see-more { background: var(--green); }
.service-card .card-label {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  color: #000;
  padding: 16px 0 4px;
}

/* Home: 6-card grid over a two-tone band — light grey behind row 1,
   metallic gradient image behind row 2 (desktop). One grid so it reflows to a
   clean 2-col on mobile, matching the source. */
.services-home {
  padding: 56px 0;
  background-image: url(/assets/images/section-band.jpg), linear-gradient(#ebebeb, #ebebeb);
  background-size: 100% 50%, 100% 50%;
  background-position: center bottom, center top;
  background-repeat: no-repeat, no-repeat;
}

/* ==========================================================================
   Testimonials (home)
   ========================================================================== */
.testimonials { background: var(--white); padding: 40px 0 44px; }
.quote-mark {
  width: 60px;
  margin: 0 auto 22px;
  color: var(--green);
}
.quote-mark svg { width: 100%; height: auto; display: block; }
.testimonial-grid {
  column-count: 3;
  column-gap: 44px;
  max-width: 1040px;
  margin: 0 auto;
}
.testimonial {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 28px;
  text-align: center;
  font-size: 15px;
  color: #2e2e2e;
  line-height: 1.55;
}
.testimonial .author {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  font-size: 20px;
  color: #000;
}

/* ==========================================================================
   Standard content (about + service detail)
   ========================================================================== */
.content { max-width: 980px; margin: 0 auto; }
.content p { margin: 0 0 20px; font-size: 17.5px; }
.service-detail { text-align: center; }
.service-detail .copy { max-width: 920px; margin: 0 auto 34px; }
.service-detail .copy p { font-size: 17.5px; }
.service-detail .copy.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  max-width: 980px;
  text-align: left;
}
@media (max-width: 700px) { .service-detail .copy.cols { grid-template-columns: 1fr; } }
.service-detail .feature-img {
  max-width: 760px;
  margin: 0 auto;
}
.service-detail .feature-img img { width: 100%; border-radius: 2px; }
.service-detail .feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 950px;
  margin: 0 auto;
}
.gallery-grid button {
  border: 0; padding: 0; cursor: pointer; background: #eee;
  aspect-ratio: 237 / 174; overflow: hidden;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 3px; }
.lightbox .lb-close,
.lightbox .lb-nav {
  position: absolute;
  background: rgba(255,255,255,.15);
  color: #fff; border: 0;
  width: 50px; height: 50px;
  font-size: 28px; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover,
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-main h2 { font-size: 23px; margin: 0 0 14px; color: var(--text); font-weight: 700; }
.contact-lead { margin: 0 0 26px; font-size: 16.5px; color: #333; }
.contact-info h3 { font-size: 21px; margin: 0 0 16px; color: var(--text); font-weight: 700; }
.contact-map { margin-top: 38px; }
.contact-map iframe { width: 100%; height: 360px; border: 0; display: block; }
.contact-info p { margin: 0 0 10px; font-size: 16.5px; }
.contact-info strong { color: var(--text); }

.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label span { display: block; font-weight: 500; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.contact-form button {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 14px 34px;
  font-size: 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s ease;
}
.contact-form button:hover { background: var(--green-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--footer);
  color: var(--white);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-footer .f-contact { font-size: 15.5px; line-height: 1.6; }
.site-footer .f-social { display: flex; gap: 14px; }
.site-footer .f-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 8px;
  transition: transform .15s ease, opacity .15s ease;
}
.site-footer .f-social a:hover { transform: translateY(-2px); opacity: .85; }
.site-footer .f-social svg { width: 30px; height: 30px; display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    max-width: 84vw;
    height: 100%;
    background: var(--black);
    padding: 76px 0 30px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    z-index: 195;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .has-sub > a::after { float: right; }
  .main-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #1a1a1a;
    display: none;
    padding: 0;
  }
  .main-nav .has-sub.sub-open .submenu { display: block; }
  .main-nav .submenu a { color: #ddd; padding-left: 40px; }
  .main-nav .submenu a:hover { background: #222; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-row { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .testimonial-grid { column-count: 1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero { height: 360px; }
  .hero-overlay .container { padding-left: 22px; }
  .hero-overlay p { font-size: 23px; }
}

@media (max-width: 560px) {
  /* Compact mobile header (~68px) to match the source */
  .container { padding: 0 15px; }
  .topbar .container { min-height: 22px; font-size: 13px; }
  .header-main .container { min-height: 46px; }
  #site-header { min-height: 68px; }
  .brand img { height: 40px; }

  .section { padding: 26px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-home { padding: 26px 0; background: #ebebeb; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { min-height: 64px; }
  .page-banner h1 { font-size: 24px; }

  /* Service/content text: readable, near full-width. (The source mobile uses a
     transform-scaled layout that shrinks text to ~13px; we keep it readable
     instead of replicating that builder hack, so heights can't match exactly.) */
  .content, .service-detail .copy { max-width: none; }
  .service-detail .copy p, .content p { font-size: 16px; line-height: 1.4; margin-bottom: 14px; }
  .service-detail .feature-pair { grid-template-columns: 1fr; }
  .service-detail .feature-img { max-width: none; margin: 0 -15px; }

  .site-footer .container { flex-direction: column; text-align: center; }
  .hero { height: 300px; }
  .hero-overlay p { font-size: 19px; }
  .intro { font-size: 17px; }
}
