/* =========================================================
   DESIGN TOKENS — pulled from the Smart Shades Co. logo
   ========================================================= */
:root {
  --orange: #DD582C;       /* brand orange, from the logo */
  --orange-hover: #C24A22; /* darker, for hover states */
  --tan: #F0BF72;          /* brand tan, from the logo */
  --ink: #2B211B;          /* warm near-black, body text */
  --ink-deep: #1E160F;     /* darkest, footer/quote backgrounds */
  --cream: #FBF1E4;        /* warm light section background */
  --paper: #FFFBF5;        /* warm off-white, page background */
  --mist: #9C8E80;         /* warm muted gray, secondary text */
  --white: #FFFFFF;
  --line: rgba(240, 191, 114, 0.35); /* soft tan border on light bg */

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Caveat', cursive;

  --container: 1120px;
  --radius: 10px;
  --transition: 0.25s ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 0.2em;
}

/* Accessible focus state — visible keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-bottom-color: var(--cream);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 38px; width: auto; border-radius: 8px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.logo-text em { font-style: normal; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55em 1.2em;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--orange-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, #f7dfb8 100%);
  padding: 80px 0;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 0.4em; color: var(--ink); }
.hero-sub { font-size: 1.05rem; max-width: 520px; margin: 0 auto 1em; color: #4A3A2E; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 1.6em; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4A3A2E;
}
.trust-item svg { width: 26px; height: 26px; color: var(--orange); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 90px 0; background: var(--white); }
.services h2 { font-size: 2rem; margin-bottom: 1.4em; color: var(--ink); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.card-icon { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; color: var(--ink); }
.card p { font-size: 0.92rem; color: #5A4B3D; margin-bottom: 0; }

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--cream); padding: 90px 0; }
.why h2 { color: var(--ink); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.why-item { border-left: 3px solid var(--orange); padding-left: 20px; }
.why-item h3 { font-size: 1.1rem; color: var(--ink); }
.why-item p { color: #5A4B3D; margin-bottom: 0; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: 90px 0; background: var(--white); }
.gallery h2 { font-size: 2rem; margin-bottom: 0.2em; color: var(--ink); }
.section-sub { color: var(--mist); margin-bottom: 1.6em; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; }

/* =========================================================
   VIDEOS
   ========================================================= */
.videos { background: var(--cream); padding: 90px 0; }
.videos h2 { font-size: 2rem; margin-bottom: 0.2em; color: var(--ink); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.video-card {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 2px dashed var(--mist);
  border-radius: var(--radius);
  color: var(--mist);
  text-align: center;
  padding: 0 16px;
}
.play-icon { width: 36px; height: 36px; color: var(--orange); }
.video-placeholder p { margin: 0; font-size: 0.9rem; font-weight: 500; }
.video-embed { width: 100%; height: 100%; }
.video-embed iframe { width: 100%; height: 100%; border: none; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 90px 0; background: var(--white); }
.testimonials h2 { font-size: 2rem; margin-bottom: 1.4em; color: var(--ink); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-quote { font-style: italic; color: #5A4B3D; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0; color: var(--ink); }

/* =========================================================
   QUOTE / CONTACT
   ========================================================= */
.quote { background: var(--ink-deep); color: var(--white); padding: 90px 0; }
.quote h2 { font-size: 2rem; }
.quote p { color: #D9CBBE; }
.quote-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.quote-form { display: flex; flex-direction: column; gap: 6px; }
.quote-form label { font-size: 0.85rem; color: #D9CBBE; margin-top: 10px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.quote-form button { margin-top: 18px; align-self: flex-start; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status--success { color: #8fd9c4; }
.form-status--error { color: #e89a9a; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #D9CBBE; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 56px 24px 32px;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 14px; border-radius: 10px; }
.footer-tagline { font-size: 0.92rem; max-width: 280px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: border-color var(--transition), color var(--transition);
  color: var(--white);
}
.social-links a:hover { border-color: var(--tan); color: var(--tan); }
.social-links svg { width: 17px; height: 17px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { margin-bottom: 6px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  font-size: 0.82rem;
  color: var(--mist);
}

/* =========================================================
   SCROLL REVEAL (driven by IntersectionObserver in script.js)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
