/* ========================================
   Salt City Cabinet & Design
   styles.css — Full responsive stylesheet
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-dark: #1a1a2e;
  --color-blue: #3b5bdb;
  --color-blue-hover: #2b4bc8;
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-gray: #6c757d;
  --color-text: #212529;
  --color-border: #e9ecef;

  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 72px;
  --container-max: 1200px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

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

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--color-light);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section__title--light {
  color: var(--color-white);
}

.section__subtitle {
  text-align: center;
  color: var(--color-gray);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-blue-hover);
  box-shadow: 0 4px 16px rgba(59,91,219,0.3);
}

.btn--ghost {
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline {
  border: 2px solid var(--color-blue);
  color: var(--color-blue);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--outline-light {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--full {
  width: 100%;
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-dark);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 32px;
}

.nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--color-white); }

.nav__cta {
  display: none;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--color-blue-hover); }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav__mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
}

.nav__mobile-cta {
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 16px;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }
  .nav__mobile { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.85) 0%,
    rgba(26,26,46,0.6) 40%,
    rgba(26,26,46,0.2) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
  margin: 0 auto 0 0;
  padding-left: max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__area {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===================== SOCIAL PROOF BAR ===================== */
.proof-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.proof-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.proof-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.proof-bar__item svg {
  color: var(--color-blue);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .proof-bar__inner {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }
}

/* ===================== BEFORE & AFTER ===================== */
.ba__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .ba__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ba__slider {
  position: relative;
}

.ba__slider--extra {
  display: block;
}

@media (min-width: 768px) {
  .ba__slider--extra {
    display: none;
  }
  .ba__slider--extra.ba__slider--visible {
    display: block;
  }
}

.ba__images {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-light);
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__img--before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-white);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba__handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
}
.ba__handle-circle svg {
  width: 16px;
  height: 16px;
}

.ba__range {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
}

.ba__toggle {
  display: none;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ba__toggle {
    display: inline-flex;
  }
}

/* ===================== SERVICES ===================== */
.services__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr 1fr; }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  color: var(--color-blue);
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===================== GALLERY ===================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--extra {
  display: none;
}
.gallery__item--extra.gallery__item--visible {
  display: block;
}

.gallery__toggle {
  display: flex;
  margin: 0 auto;
}

/* ===================== HOW IT WORKS ===================== */
.process__timeline {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .process__timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Connector line on desktop */
@media (min-width: 768px) {
  .process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: var(--color-border);
  }
}

.process__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__desc {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ===================== REVIEWS ===================== */
.reviews {
  background: var(--color-dark);
  color: var(--color-white);
}

.reviews__grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 16px;
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-style: normal;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

.reviews__link {
  display: flex;
  margin: 0 auto;
}

/* ===================== ABOUT ===================== */
.about__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1.2fr 0.8fr; }
}

.about__text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}
.about__text p:last-child { margin-bottom: 0; }

.about__logo-card {
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__logo-card img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* ===================== CONTACT ===================== */
.contact__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1.2fr 0.8fr; }
}

.contact-form__jotform {
  min-height: 400px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-info__link {
  color: var(--color-blue);
  transition: color 0.2s;
}
.contact-info__link:hover { color: var(--color-blue-hover); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
}

.footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}

.footer__location {
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--color-white); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.footer__contact a { transition: color 0.2s; }
.footer__contact a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--color-white);
  font-size: 2rem;
  padding: 16px;
  z-index: 2001;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__close { top: 16px; right: 16px; font-size: 2.5rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ===================== UTILITIES ===================== */
@media (max-width: 767px) {
  .section { padding: 60px 0; }
}
