/* ============================================
   ROBINS CABINETS — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --terra: #B8573D;
  --terra-dark: #9A4430;
  --terra-light: #D4816A;
  --sand: #F5EDE3;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD0;
  --navy: #1E2D3D;
  --navy-light: #2C3E50;
  --charcoal: #2A2A2A;
  --gray-600: #555;
  --gray-400: #999;
  --gray-200: #E5E5E5;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(30, 45, 61, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 45, 61, 0.12);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn--primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--terra);
  border-color: var(--white);
}
.btn--light:hover {
  background: var(--sand);
  color: var(--terra-dark);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--terra);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Section --- */
.section { padding: 96px 0; }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section__lead { color: var(--gray-600); font-size: 1.05rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--terra); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.nav__links a {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--terra); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition);
}
.nav__cta:hover { background: var(--terra-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding-top: 100px;
  padding-bottom: 96px;
  background: var(--sand-light);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  color: var(--terra);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}
.hero__trust li svg { color: var(--terra); flex-shrink: 0; }

.hero__image { position: relative; }
.hero__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__image-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terra-light);
  line-height: 1;
}
.hero__image-badge-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* --- Services --- */
.services { background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card { text-align: left; }
.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card__body { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* --- About --- */
.about { background: var(--sand-light); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__images { position: relative; }
.about__img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img-main img { width: 100%; height: 100%; object-fit: cover; }
.about__img-small {
  position: absolute;
  bottom: -32px;
  right: -24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about__content .section__label { margin-bottom: 12px; }
.about__content .section__title { margin-bottom: 20px; }
.about__body { color: var(--gray-600); margin-bottom: 16px; font-size: 1rem; }
.about__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--sand-dark);
  border-bottom: 1px solid var(--sand-dark);
}
.stat { text-align: center; flex: 1; }
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 500;
}
.stat-divider { width: 1px; height: 48px; background: var(--sand-dark); }

/* --- Gallery --- */
.gallery { background: var(--white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 7/5;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 45, 61, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Testimonials --- */
.testimonials { background: var(--sand); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial { text-align: left; }
.testimonial__stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial__text {
  color: var(--charcoal);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial__name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.testimonial__location { font-size: 0.85rem; color: var(--gray-400); }

/* --- CTA --- */
.cta {
  background: var(--navy);
  padding: 80px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__content { flex: 1; }
.cta__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta__lead { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.cta__actions { display: flex; gap: 16px; flex-shrink: 0; }

/* --- Contact --- */
.contact { background: var(--sand-light); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__info .section__label { margin-bottom: 12px; }
.contact__info .section__title { margin-bottom: 16px; }
.contact__body { color: var(--gray-600); margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__detail { display: flex; gap: 16px; }
.contact__detail-icon { flex-shrink: 0; margin-top: 2px; }
.contact__detail dt { font-weight: 600; color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact__detail dd { color: var(--charcoal); font-size: 0.95rem; line-height: 1.6; }
.contact__detail a { color: var(--terra); }

/* --- Form --- */
.form__wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form__title { font-size: 1.4rem; margin-bottom: 24px; color: var(--navy); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 16px; }
.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--sand-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(184, 87, 61, 0.15);
}
.form__note { font-size: 0.82rem; color: var(--gray-400); margin-top: 12px; text-align: center; }

.form__success {
  text-align: center;
  padding: 40px 20px;
}
.form__success h3 { margin: 16px 0 8px; color: var(--navy); }
.form__success p { color: var(--gray-600); margin-bottom: 24px; }
.form__success svg { color: var(--terra); margin: 0 auto; }

/* --- Map --- */
.map-section { background: var(--sand-dark); }
.map-section iframe { width: 100%; height: 320px; border: 0; display: block; }

/* --- Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__logo:hover { color: var(--terra-light); }
.footer__tagline { font-size: 0.9rem; max-width: 260px; line-height: 1.7; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; text-decoration: none; transition: color var(--transition); }
.footer ul a:hover { color: var(--terra-light); }
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer a { color: var(--terra-light); }
.footer a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* --- Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  /* default state: visible for no-JS / reduced-motion */
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__grid { gap: 40px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow);
  }
  .hero { padding-top: 80px; padding-bottom: 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { order: -1; }
  .hero__image-badge { left: 16px; bottom: -16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .services__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__img-small { right: 0; }
  .gallery__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { justify-content: center; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}
