/* ========================================
   ROCCA TILE & GRANITE — styles.css
   Foundation Build
   ======================================== */

/* --- CSS RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- CSS VARIABLES --- */
:root {
  /* Layout */
  --navbar-height: 80px;
  --max-width: 1200px;
  --content-width: 65ch;
  --section-pad: 80px 20px;
  --section-pad-mobile: 50px 16px;
  --radius: 8px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Colors — Rocca Tile & Granite brand */
  --primary: #8B2E12;
  --primary-dark: #6B1F0A;
  --primary-rgb: 139, 46, 18;
  --secondary: #D4853A;
  --accent: #4A6741;
  --text: #2C2018;
  --text-light: #6B5D52;
  --bg: #FBF7F2;
  --bg-alt: #F2EBE1;
  --bg-dark: #2C1810;
  --surface: #FFFFFF;

  /* Elevation System — warm shadows */
  --elevation-1: 0 1px 3px rgba(44,24,16,0.08);
  --elevation-2: 0 4px 16px rgba(44,24,16,0.10);
  --elevation-3: 0 8px 28px rgba(44,24,16,0.16);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* --- SKIP-TO-CONTENT --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-sm); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
@media (max-width: 767px) {
  .container { padding-inline: var(--space-md); }
}

/* --- PROSE --- */
.prose { max-width: var(--content-width); }
.prose-centered { max-width: var(--content-width); margin-inline: auto; }

/* --- ANSWER BLOCK --- */
.answer-block {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-xl) 0;
}

/* --- EYEBROW LABEL --- */
.eyebrow-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* --- SECTION TITLES --- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 0 var(--primary-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-dark);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* Ripple effect (optional use) */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* --- NAVBAR --- */
body { padding-top: var(--navbar-height); }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  background: var(--primary);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}
.navbar.scrolled {
  background: rgba(var(--primary-rgb), 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--elevation-2);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after {
  width: 100%;
}
.nav-phone {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--elevation-3);
  list-style: none;
  padding: var(--space-sm) 0;
  z-index: 1001;
  margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block !important;
}
.dropdown li { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--text) !important;
  font-size: 0.95rem;
  white-space: nowrap;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  z-index: 999;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}
.mobile-menu .mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.mobile-menu .mobile-dropdown a {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}
.mobile-menu .mobile-phone {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}
.hero .hero-phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: #fff;
}

/* Hero load animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: heroFadeUp 0.6s ease forwards; }
.hero p { animation: heroFadeUp 0.6s ease 0.15s forwards; opacity: 0; }
.hero .hero-cta { animation: heroFadeUp 0.6s ease 0.3s forwards; opacity: 0; }
.hero .hero-badges { animation: heroFadeUp 0.6s ease 0.45s forwards; opacity: 0; }

@media (max-width: 767px) {
  .hero { min-height: 70vh; }
}

/* --- BADGE STRIP --- */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.badge-strip .badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
}

/* --- TICKER STRIP --- */
.ticker-strip {
  overflow: hidden;
  background: var(--bg-alt);
  padding: var(--space-md) 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- CARDS --- */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--elevation-2);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-4px);
}

/* --- STAT COUNTER --- */
.stat-counter {
  text-align: center;
}
.stat-counter .stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-counter .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: var(--section-pad);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
  margin-inline: auto;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.cta-banner .btn-primary:hover {
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

/* --- GRID LAYOUTS --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.grid-asym {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }

.grid-2 > *, .grid-3 > *, .grid-asym > *, .split > *, .split-reverse > * {
  min-width: 0;
}

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-asym, .split, .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse > :first-child { order: 1; }
  .split-reverse > :last-child { order: 2; }
}

/* --- IMAGE COMPOSITION --- */
.img-reveal {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.img-reveal:hover img { transform: scale(1.03); }

/* --- SCROLL ANIMATION STATES --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate="wipe-right"] {
  clip-path: inset(0 100% 0 0);
  transform: none;
  transition: clip-path 0.6s ease, opacity 0.6s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="wipe-right"].in-view {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* --- FLOATING LABEL FORM --- */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  padding-top: var(--space-lg);
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg);
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
}
.form-group label {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all var(--transition);
}
.form-group textarea ~ label {
  top: var(--space-lg);
  transform: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: var(--space-sm);
  transform: none;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- BREADCRUMBS --- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 var(--space-sm); }

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: var(--space-3xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: #fff;
}
.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.footer-col a:hover { color: #fff; }
.footer-col ul {
  list-style: none;
}
.footer-col ul li { margin-bottom: var(--space-sm); }

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }

.entity-block {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elevation-2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: var(--primary-dark); }

/* --- SECTIONS GENERAL --- */
section { padding: var(--section-pad); }
@media (max-width: 767px) {
  section { padding: var(--section-pad-mobile); }
  .cta-banner { padding: var(--section-pad-mobile); }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
p { line-height: 1.6; }

/* --- LAST UPDATED --- */
.last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: var(--space-xl);
}

/* --- RESPONSIVE HELPERS --- */
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 767px) {
  .tablet-up { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-down { display: none !important; }
}

/* --- NAVBAR RESPONSIVE --- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-phone.desktop-only { display: none !important; }
  .hamburger { display: flex; }
}

/* ========================================
   HOMEPAGE-SPECIFIC STYLES
   ======================================== */

/* --- Trust Badge Strip --- */
.trust-strip {
  background: var(--bg-dark);
  padding: var(--space-lg) 0;
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item i,
.trust-item svg { color: var(--secondary); }
@media (max-width: 767px) {
  .trust-strip .container { gap: var(--space-md); }
  .trust-item { font-size: 0.8rem; }
}

/* --- Service Card Grid --- */
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-1);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-6px);
}
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}
.service-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.service-card-link:hover { gap: var(--space-sm); }

/* --- Stats Section --- */
.stats-section {
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}
.stat-item { padding: var(--space-lg); }
.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}

/* --- Process Steps --- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}
.process-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.process-step h3 { margin-bottom: var(--space-xs); }
.process-step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Gallery Grid (Asymmetric) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-md);
}
.gallery-grid .gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--elevation-1);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-grid .gallery-item:hover {
  box-shadow: var(--elevation-3);
  transform: scale(1.02);
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-grid .gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-grid .gallery-item:nth-child(1) { grid-row: span 1; grid-column: span 2; }
  .gallery-grid .gallery-item:nth-child(4) { grid-column: span 1; }
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid rgba(44,24,16,0.1);
  padding: var(--space-lg) 0;
}
.faq-item:first-child { border-top: 1px solid rgba(44,24,16,0.1); }
.faq-item h3 {
  margin-bottom: var(--space-md);
  color: var(--text);
}
.faq-item p {
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Closing CTA --- */
.closing-cta {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0.8);
  z-index: 1;
}
.closing-cta .container {
  position: relative;
  z-index: 2;
}
.closing-cta h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}
.closing-cta p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}
.closing-cta .hero-phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: #fff;
}
.closing-cta .btn-primary {
  background: var(--secondary);
  box-shadow: 0 4px 0 #b06e2e;
}
.closing-cta .btn-primary:hover {
  box-shadow: 0 6px 0 #b06e2e;
}

/* --- Hero CTA Buttons --- */
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* --- About Split Image --- */
.about-split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-2);
}
.about-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* --- Process Split Image --- */
.process-split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-2);
}
.process-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ========================================
   SERVICE PAGE STYLES
   ======================================== */

/* --- Page Hero (shorter than homepage) --- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0.65);
  z-index: 1;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}
.page-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-inline: auto;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}
.page-hero .hero-phone {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
}
@media (max-width: 767px) {
  .page-hero { min-height: 40vh; }
}

/* --- Split Image Containers (service pages) --- */
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-2);
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* --- Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--elevation-1);
}
.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(139,46,18,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.benefit-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}
.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}
@media (max-width: 767px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* --- Service Gallery (2-col with hover) --- */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.service-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elevation-1);
  aspect-ratio: 16/10;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-gallery-item:hover {
  box-shadow: var(--elevation-3);
  transform: scale(1.02);
}
.service-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .service-gallery { grid-template-columns: 1fr; }
}

/* --- Related Services --- */
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.related-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--elevation-1);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.related-card:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-3px);
}
.related-card h3 { margin-bottom: var(--space-sm); }
.related-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}
@media (max-width: 767px) {
  .related-services { grid-template-columns: 1fr; }
}

/* --- Inline CTA Bar --- */
.inline-cta {
  background: var(--primary);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.inline-cta h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
}
.inline-cta p {
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}
.inline-cta .btn-primary {
  background: var(--secondary);
  box-shadow: 0 4px 0 #b06e2e;
}
.inline-cta .btn-primary:hover {
  box-shadow: 0 6px 0 #b06e2e;
}
