/* ============================================
   SIENNA PAINTING - Design System & Global Styles
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-sienna: #A0522D;
  --color-sienna-dark: #7A3E22;
  --color-sienna-light: #C4764A;
  --color-burnt-umber: #5C3317;
  --color-raw-sienna: #D2915A;
  --color-sand: #E8D5B7;
  --color-cream: #FAF5EE;
  --color-warm-white: #FDFBF7;

  /* Neutrals */
  --color-charcoal: #2C2420;
  --color-dark-gray: #4A4340;
  --color-medium-gray: #7A7370;
  --color-light-gray: #B8B2AD;
  --color-pale-gray: #E8E4E0;
  --color-off-white: #F5F2EF;

  /* Semantic */
  --color-success: #5A7A52;
  --color-warning: #C4944A;
  --color-error: #A04030;

  /* Surfaces */
  --surface-primary: var(--color-warm-white);
  --surface-secondary: var(--color-cream);
  --surface-dark: var(--color-charcoal);
  --surface-accent: var(--color-sand);

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  /* Type Scale */
  --text-hero: clamp(2.8rem, 6vw, 4.5rem);
  --text-h1: clamp(2.2rem, 4vw, 3.5rem);
  --text-h2: clamp(1.8rem, 3vw, 2.5rem);
  --text-h3: clamp(1.3rem, 2vw, 1.75rem);
  --text-h4: clamp(1.1rem, 1.5vw, 1.35rem);
  --text-body: 1.0625rem;
  --text-body-lg: 1.1875rem;
  --text-small: 0.875rem;
  --text-xs: 0.8125rem;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 800px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-padding: clamp(4rem, 8vw, 7rem);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 36, 32, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 36, 32, 0.1);
  --shadow-xl: 0 16px 50px rgba(44, 36, 32, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Navigation */
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-charcoal);
  background-color: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-sienna);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-sienna-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-sienna);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--color-sienna);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
  margin-bottom: var(--space-6);
}

.text-hero {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: var(--space-4);
  display: block;
}

.section-heading {
  font-size: var(--text-h2);
  margin-bottom: var(--space-6);
}

.section-subtext {
  font-size: var(--text-body-lg);
  color: var(--color-dark-gray);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--section-padding) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-sienna);
  color: white;
  box-shadow: 0 2px 8px rgba(160, 82, 45, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-sienna-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(160, 82, 45, 0.35);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-sienna);
  border: 2px solid var(--color-sienna);
}

.btn--secondary:hover {
  background-color: var(--color-sienna);
  color: white;
  transform: translateY(-2px);
}

.btn--light {
  background-color: white;
  color: var(--color-sienna);
  box-shadow: var(--shadow-md);
}

.btn--light:hover {
  color: var(--color-sienna-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--color-charcoal);
  color: white;
}

.btn--dark:hover {
  background-color: var(--color-dark-gray);
  color: white;
  transform: translateY(-2px);
}

.btn--large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-body-lg);
  min-height: 56px;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-8);
}

.card__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--color-dark-gray);
  margin-bottom: var(--space-6);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  transition: all var(--duration-normal) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.site-nav__logo svg {
  width: 40px;
  height: 40px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-dark-gray);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sienna);
  transition: width var(--duration-normal) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--color-sienna);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: 100%;
}

.site-nav__cta {
  margin-left: var(--space-4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-sienna);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-pale-gray);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-decoration: none;
  margin-bottom: var(--space-6);
}

.footer__logo svg {
  width: 36px;
  height: 36px;
}

.footer__brand p {
  color: var(--color-light-gray);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  color: var(--color-light-gray);
  font-size: var(--text-small);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-raw-sienna);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light-gray);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--color-sienna);
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-medium-gray);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-medium-gray);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--color-raw-sienna);
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-raw-sienna);
  line-height: 0;
  position: relative;
  top: 0.3em;
  margin-right: var(--space-2);
  opacity: 0.4;
}

.testimonial-card__author {
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-sienna);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-warning);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  background: white;
  border: 1.5px solid var(--color-pale-gray);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-sienna);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-light-gray);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-white { color: white; }
.text-sienna { color: var(--color-sienna); }

.bg-cream { background-color: var(--color-cream); }
.bg-sand { background-color: var(--color-sand); }
.bg-charcoal { background-color: var(--color-charcoal); }
.bg-warm-white { background-color: var(--color-warm-white); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

/* --- Page Hero --- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand) 50%, var(--color-cream) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(160, 82, 45, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero__label {
  display: block;
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-6);
  max-width: 700px;
}

.page-hero__text {
  font-size: var(--text-body-lg);
  color: var(--color-dark-gray);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .site-nav__links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  }
}

@media (max-width: 480px) {
  .btn--large {
    width: 100%;
  }
}

/* ============================================
   ARTISTIC / PAINTERLY TREATMENTS
   ============================================ */

/* --- Paint Brush Stroke Decorations --- */
.brush-stroke {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.brush-accent {
  display: inline-block;
  position: relative;
}

.brush-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -5%;
  width: 110%;
  height: 12px;
  background: var(--color-raw-sienna);
  opacity: 0.2;
  border-radius: 40% 60% 50% 50%;
  transform: rotate(-1deg);
  z-index: -1;
}

/* --- Canvas Texture Overlay --- */
.texture-overlay {
  position: relative;
}

.texture-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* --- Paint Drip Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-cream);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.hero__title em {
  font-style: italic;
  color: var(--color-sienna);
}

.hero__text {
  font-size: var(--text-body-lg);
  color: var(--color-dark-gray);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-pale-gray);
}

.hero__badge {
  text-align: center;
}

.hero__badge-number {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  color: var(--color-sienna);
  display: block;
}

.hero__badge-label {
  font-size: var(--text-xs);
  color: var(--color-medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Hero Decorative Elements --- */
.hero__decor {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
}

.hero__paint-swatch {
  position: absolute;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.hero__paint-swatch--1 {
  width: 180px;
  height: 260px;
  background: var(--color-sienna);
  top: 20%;
  right: 15%;
  transform: rotate(-6deg);
}

.hero__paint-swatch--2 {
  width: 160px;
  height: 220px;
  background: var(--color-sand);
  top: 30%;
  right: 5%;
  transform: rotate(3deg);
}

.hero__paint-swatch--3 {
  width: 140px;
  height: 200px;
  background: var(--color-charcoal);
  top: 45%;
  right: 22%;
  transform: rotate(-2deg);
}

.hero__paint-swatch--4 {
  width: 120px;
  height: 170px;
  background: var(--color-raw-sienna);
  top: 15%;
  right: 30%;
  transform: rotate(8deg);
}

/* --- Organic Divider --- */
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--color-sienna);
  border-radius: 40% 60% 50% 50%;
  margin: var(--space-6) 0;
  opacity: 0.6;
}

.section-divider--center {
  margin: var(--space-6) auto;
}

/* --- Service Cards (Artistic) --- */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sienna), var(--color-raw-sienna), var(--color-sand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-sienna);
}

.service-card__title {
  font-size: var(--text-h4);
  margin-bottom: var(--space-4);
}

.service-card__text {
  color: var(--color-dark-gray);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

/* --- Before/After Slider --- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: col-resize;
  box-shadow: var(--shadow-md);
}

.ba-slider img {
  width: 100%;
  display: block;
}

.ba-slider__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba-slider__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transform: translateX(-50%);
  z-index: 10;
}

.ba-slider__handle::before,
.ba-slider__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  transform: translateY(-50%) rotate(45deg);
}

.ba-slider__handle::before {
  left: -14px;
  border-right: none;
  border-top: none;
}

.ba-slider__handle::after {
  right: -14px;
  border-left: none;
  border-bottom: none;
}

.ba-label {
  position: absolute;
  bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.ba-label--before { left: var(--space-4); }
.ba-label--after { right: var(--space-4); }

/* --- Process Timeline --- */
.process-step {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  padding: var(--space-8) 0;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  border: 2px solid var(--color-sienna);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  color: var(--color-sienna);
  position: relative;
  z-index: 2;
}

.process-step__content h3 {
  margin-bottom: var(--space-3);
}

.process-step__content p {
  color: var(--color-dark-gray);
  margin-bottom: 0;
}

.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-sienna), var(--color-sand));
  opacity: 0.3;
}

/* --- Team Card --- */
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-card__image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: var(--color-sand);
}

.team-card__body {
  padding: var(--space-8);
}

.team-card__name {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.team-card__role {
  font-size: var(--text-small);
  color: var(--color-sienna);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.team-card__bio {
  color: var(--color-dark-gray);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
}

.lightbox__caption {
  color: white;
  margin-top: var(--space-4);
  font-size: var(--text-small);
  text-align: center;
  max-width: 600px;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 32, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: white;
  font-size: var(--text-small);
  font-weight: 500;
}

/* --- Quote Form Section --- */
.quote-section {
  background: var(--color-charcoal);
  color: white;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(160, 82, 45, 0.15), transparent 70%);
  border-radius: 50%;
}

.quote-section h2 {
  color: white;
}

.quote-section .section-label {
  color: var(--color-raw-sienna);
}

.quote-section .form-input,
.quote-section .form-textarea,
.quote-section .form-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.quote-section .form-input::placeholder,
.quote-section .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.quote-section .form-input:focus,
.quote-section .form-textarea:focus,
.quote-section .form-select:focus {
  border-color: var(--color-sienna);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.25);
}

.quote-section .form-label {
  color: var(--color-pale-gray);
}

/* --- Pillar Cards --- */
.pillar {
  text-align: center;
  padding: var(--space-10);
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-style: italic;
  color: var(--color-sienna);
  margin-bottom: var(--space-4);
}

.pillar__text {
  color: var(--color-dark-gray);
  line-height: var(--leading-relaxed);
}

/* --- Accordion --- */
.accordion__item {
  border-bottom: 1px solid var(--color-pale-gray);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  color: var(--color-charcoal);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.accordion__trigger:hover {
  color: var(--color-sienna);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.accordion__content-inner {
  padding-bottom: var(--space-6);
  color: var(--color-dark-gray);
  line-height: var(--leading-relaxed);
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-dark-gray);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-sienna);
}

/* --- Paint Palette Decoration --- */
.paint-palette {
  display: flex;
  gap: 3px;
  margin: var(--space-4) 0;
}

.paint-palette__swatch {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  transition: transform var(--duration-fast);
}

.paint-palette__swatch:hover {
  transform: scaleY(1.5);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-sienna) 0%, var(--color-sienna-dark) 100%);
  color: white;
  text-align: center;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* --- Responsive additions --- */
@media (max-width: 1024px) {
  .hero__decor {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  }

  .hero__badges {
    gap: var(--space-6);
  }

  .process-step {
    gap: var(--space-5);
  }

  .process-step__number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: var(--text-body);
  }

  .process-timeline::before {
    left: 22px;
  }

  .trust-bar {
    gap: var(--space-6);
  }

  .quote-section .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TESTIMONIALS GRID - Equal Height Cards
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: stretch;
}

.testimonials-grid .testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonials-grid .testimonial-card__quote {
  flex: 1;
}

.testimonials-grid .testimonial-card__quote::before {
  content: none;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE FIXES
   ============================================ */

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__image {
    display: none !important;
  }
  .hero__content {
    max-width: 100%;
  }
}

/* Service card images responsive */
.service-card img {
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Testimonials responsive */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    gap: var(--space-6);
  }

  .testimonial-card {
    padding: var(--space-8);
  }

  .testimonial-card__quote {
    font-size: var(--text-body) !important;
  }
}

/* Gallery responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

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

/* Mobile nav improvements */
@media (max-width: 768px) {
  .mobile-nav {
    padding: var(--space-8);
  }

  .mobile-nav__link {
    font-size: var(--text-h4);
    padding: var(--space-3) 0;
  }

  .site-nav__logo img {
    height: 32px !important;
  }
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-10);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__text {
    font-size: var(--text-body);
  }

  .hero__badges {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero__badge {
    flex: 1;
    min-width: 80px;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .paint-palette {
    display: none;
  }
}

/* Service cards mobile */
@media (max-width: 768px) {
  .service-card {
    padding: var(--space-6);
    text-align: left;
  }

  .service-card img {
    margin: -1.5rem -1.5rem 1rem -1.5rem !important;
    width: calc(100% + 3rem) !important;
    height: 140px !important;
    border-radius: 12px 12px 0 0 !important;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 0 var(--space-4) 0;
  }
}

/* Footer mobile */
@media (max-width: 480px) {
  .site-footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer__social {
    margin-top: var(--space-4);
  }

  .footer__bottom {
    gap: var(--space-3);
  }

  .footer__legal {
    gap: var(--space-4);
  }
}

/* Page hero mobile */
@media (max-width: 480px) {
  .page-hero {
    padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-8);
  }

  .page-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}

/* Process timeline mobile */
@media (max-width: 480px) {
  .process-step {
    gap: var(--space-4);
    padding: var(--space-6) 0;
  }

  .process-step__number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: var(--text-small);
  }

  .process-timeline::before {
    left: 20px;
  }
}

/* Quote section mobile */
@media (max-width: 768px) {
  .quote-section {
    padding: var(--space-12) 0;
  }
}

/* Team cards mobile */
@media (max-width: 480px) {
  .team-card__image {
    height: 260px !important;
  }

  .team-card__body {
    padding: var(--space-6);
  }
}

/* CTA banner mobile */
@media (max-width: 480px) {
  .cta-banner {
    padding: var(--space-10) 0;
  }

  .cta-banner h2 {
    font-size: var(--text-h3);
  }
}

/* Pillar cards responsive */
@media (max-width: 768px) {
  .pillar {
    padding: var(--space-6);
    text-align: left;
  }
}

/* Trust bar mobile */
@media (max-width: 480px) {
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
}

/* Form responsive */
@media (max-width: 480px) {
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* Intro animation mobile */
@media (max-width: 768px) {
  .intro-logo img {
    width: 80px;
    height: 80px;
  }

  .intro-text {
    font-size: 1.3rem;
  }

  .intro-stroke {
    display: none;
  }
}

/* Section label mobile */
@media (max-width: 480px) {
  .section-label {
    font-size: var(--text-xs);
  }

  .section-heading {
    font-size: var(--text-h3);
  }
}

/* Prevent horizontal scroll everywhere */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Contact page responsive */
@media (max-width: 480px) {
  iframe {
    height: 250px !important;
  }
}
