/* ============================================================
   CONCRETE CREATIONS — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ---- CSS Variables ---------------------------------------- */
:root {
  --color-stone:    #2C2A26;
  --color-earth:    #5C4A32;
  --color-sand:     #C9A96E;
  --color-cream:    #F5F0E8;
  --color-white:    #FFFFFF;
  --color-accent:   #B8741A;
  --color-dark:     #1A1814;
  --color-mid:      #7A6A58;
  --color-light-bg: #FAF8F4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  --max-width: 1280px;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(44,42,38,0.12);
  --shadow-md: 0 8px 32px rgba(44,42,38,0.18);
  --shadow-lg: 0 20px 60px rgba(44,42,38,0.25);
}

/* ---- 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);
  background: var(--color-light-bg);
  color: var(--color-stone);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-stone);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { font-size: 1rem; color: var(--color-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Utility ---------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section-label {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-mid);
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-earth);
  border-color: var(--color-earth);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ---- HEADER ----------------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Home page — transparent until scrolled, but always visible above canvas */
body[data-page="home"] #site-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(26,24,20,0.72) 0%, transparent 100%);
}

#site-header.scrolled {
  background: rgba(26,24,20,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

#site-header.solid {
  background: var(--color-dark);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo svg { width: 44px; height: 44px; flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sand);
}

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }

.nav-desktop a {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color var(--transition);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-sand);
  transition: left var(--transition), right var(--transition);
}

.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--color-white);
}

.nav-desktop a:hover::after, .nav-desktop a.active::after {
  left: 0.9rem; right: 0.9rem;
}

.header-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: 2px;
}
.header-cta::after { display: none !important; }
.header-cta:hover { background: var(--color-earth) !important; }

.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(--color-white);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-dark);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--color-sand); }

.nav-mobile.open { display: flex; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroScale 12s ease-in-out infinite alternate;
}

@keyframes heroScale {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,24,20,0.82) 0%,
    rgba(44,42,38,0.55) 55%,
    rgba(44,42,38,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-sand);
}

.hero h1 {
  color: var(--color-white);
  max-width: 720px;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s 0.15s ease both;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s 0.3s ease both;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.45s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1.5s 1s ease both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5) translateY(10px); opacity: 0.5; }
}

/* ---- STATS BAR -------------------------------------------- */
.stats-bar {
  background: var(--color-stone);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-sand);
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
  display: block;
}

/* ---- SERVICES SECTION ------------------------------------- */
.services-section { background: var(--color-light-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(44,42,38,0.1);
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--color-stone);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.65) saturate(0.8);
}

.service-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.45) saturate(0.6);
}

.service-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(26,24,20,0.9) 0%, transparent 60%);
  transition: background var(--transition);
}

.service-card:hover .service-card-content {
  background: linear-gradient(to top, rgba(26,24,20,0.97) 0%, rgba(26,24,20,0.4) 100%);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201,169,110,0.2);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  line-height: 1;
  transition: color var(--transition);
}

.service-card:hover .service-number { color: rgba(201,169,110,0.5); }

.service-card h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}

.service-card:hover p { max-height: 100px; opacity: 1; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.1s ease, transform 0.4s 0.1s ease;
}

.service-card:hover .service-card-link { opacity: 1; transform: translateY(0); }

/* ---- WHY US SECTION --------------------------------------- */
.why-section { background: var(--color-cream); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-image-wrap {
  position: relative;
}

.why-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.why-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 130px;
  height: 130px;
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.why-badge-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.why-badge-text {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  margin-top: 0.2rem;
}

.why-features { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }

.why-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.why-feature-icon svg { width: 22px; height: 22px; }

.why-feature h4 {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.why-feature p { font-size: 0.9rem; margin: 0; }

/* ---- TESTIMONIALS ----------------------------------------- */
.testimonials-section { background: var(--color-stone); }

.testimonials-section .section-title,
.testimonials-section .section-label { color: var(--color-white); }
.testimonials-section .section-label { color: var(--color-sand); }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.6); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}

.testimonial-quote-icon {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-sand);
  opacity: 0.4;
  margin-bottom: 1rem;
  display: block;
}

.testimonial-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-stars { color: var(--color-sand); font-size: 0.9rem; margin-bottom: 0.5rem; }

.testimonial-author {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sand);
}

/* ---- CTA SECTION ------------------------------------------ */
.cta-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.7);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,42,38,0.85), rgba(184,116,26,0.6));
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.cta-content p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 2.5rem; }

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ----------------------------------------------- */
#site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand .logo-name { font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; line-height: 1.7; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.9);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-sand); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}

.footer-contact li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--color-sand); }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: white;
}

.footer-social a svg { width: 16px; height: 16px; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--color-sand); }

.footer-legal { display: flex; gap: 1.5rem; }

/* ---- PAGE HERO (inner pages) ------------------------------ */
.page-hero {
  background: var(--color-stone);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { color: var(--color-white); margin-bottom: 0.75rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-sand); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--color-sand); }

/* ---- ABOUT PAGE ------------------------------------------- */
.about-intro { background: var(--color-light-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image img { width: 100%; height: 500px; object-fit: cover; box-shadow: var(--shadow-lg); }

.about-values { background: var(--color-cream); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.value-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-bottom: 3px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.value-icon {
  width: 52px; height: 52px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
}

.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.value-card p { font-size: 0.9rem; }

/* ---- SERVICES PAGE ---------------------------------------- */
.services-detail { background: var(--color-light-bg); }
.services-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.service-detail-card {
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-detail-card img { width: 100%; height: 280px; object-fit: cover; }

.service-detail-body { padding: 2rem; }
.service-detail-body h3 { margin-bottom: 0.75rem; }
.service-detail-body p { font-size: 0.92rem; margin-bottom: 1rem; }

.service-features { display: flex; flex-direction: column; gap: 0.4rem; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-mid);
}
.service-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ---- GALLERY PAGE ----------------------------------------- */
.gallery-section { background: var(--color-light-bg); }

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-stone);
  background: transparent;
  color: var(--color-stone);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-stone);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-stone);
}

.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); filter: brightness(0.75); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,24,20,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay { background: rgba(26,24,20,0.35); }

.gallery-zoom {
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.gallery-zoom svg { width: 22px; height: 22px; }

.gallery-item:hover .gallery-zoom { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--color-accent);
}

.lightbox-close {
  top: -3rem; right: 0;
  width: 40px; height: 40px;
}

.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
}

.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

/* ---- CONTACT PAGE ----------------------------------------- */
.contact-section { background: var(--color-light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }

.contact-info-card {
  background: var(--color-stone);
  padding: 3rem;
  color: white;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.contact-info-card h3 {
  color: white;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-item svg { width: 20px; height: 20px; color: var(--color-sand); flex-shrink: 0; margin-top: 2px; }

.contact-info-item strong {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 0.25rem;
}

.contact-info-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.contact-info-item a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.contact-info-item a:hover { color: var(--color-sand); }

/* Contact Form */
.contact-form-wrap { background: var(--color-white); padding: 3rem; box-shadow: var(--shadow-sm); }
.contact-form-wrap h3 { margin-bottom: 2rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(44,42,38,0.2);
  background: var(--color-light-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-stone);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,116,26,0.12);
  background: white;
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--color-mid);
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  background: #f0faf0;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ---- MAP SECTION ------------------------------------------ */
.map-section { background: var(--color-cream); }
.map-embed { width: 100%; height: 420px; border: none; filter: grayscale(20%); }

/* ---- LEGAL PAGES ------------------------------------------ */
.legal-content {
  background: var(--color-white);
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44,42,38,0.1);
}

.legal-content h2:first-of-type { border-top: none; margin-top: 0; }

.legal-content p, .legal-content li {
  font-size: 0.93rem;
  color: var(--color-mid);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li { margin-bottom: 0.4rem; }

.legal-effective {
  background: var(--color-cream);
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  font-size: 0.88rem;
  color: var(--color-mid);
  margin-bottom: 2rem;
}

/* ---- ANIMATIONS ------------------------------------------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.visible { opacity: 1; transform: translateY(0); }
.animate-up.delay-1 { transition-delay: 0.1s; }
.animate-up.delay-2 { transition-delay: 0.2s; }
.animate-up.delay-3 { transition-delay: 0.3s; }
.animate-up.delay-4 { transition-delay: 0.4s; }
.animate-up.delay-5 { transition-delay: 0.5s; }

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .about-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 1; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .why-grid, .about-grid, .services-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-badge { right: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-card { position: static; }
  .legal-content { padding: 2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section-padding { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .values-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: -2rem; }
  .lightbox-next { right: -2rem; }
}

/* ============================================================
   ENHANCED ANIMATIONS — added via animations.js pass
   ============================================================ */

/* Page transition overlay (created by JS) */
#page-transition-overlay { will-change: opacity; }

/* Stat number pulse on counter complete */
.stat-number.counted {
  animation: statPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes statPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--color-accent); }
  100% { transform: scale(1); }
}

/* Section label line extension (JS appends a <span>) */
.section-label { overflow: visible; }

/* Tilt cards — ensure 3D perspective context */
.value-card, .testimonial-card { transform-style: preserve-3d; will-change: transform; }

/* Why feature hover */
.why-feature { transition: transform 0.2s ease; }
.why-feature:hover { transform: translateX(6px); }
.why-feature:hover .why-feature-icon { background: var(--color-earth); transition: background 0.3s ease; }

/* Gallery item — smooth scale with will-change */
.gallery-item { will-change: transform; }

/* Service card number pop */
.service-card:hover .service-number {
  animation: numBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes numBounce {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Staggered footer columns on reveal */
.footer-grid .footer-col { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.footer-main.in-view .footer-col:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.footer-main.in-view .footer-col:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.footer-main.in-view .footer-col:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.footer-main.in-view .footer-col:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }

/* Smooth underline on nav links */
.nav-desktop a { overflow: hidden; }

/* Contact form field focus glow pulse */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: focusPulse 0.3s ease both;
}

@keyframes focusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,116,26,0.35); }
  100% { box-shadow: 0 0 0 3px rgba(184,116,26,0.12); }
}

/* Hero eyebrow line slide */
.hero-eyebrow::before {
  animation: lineDraw 1s 0.5s ease both;
}

@keyframes lineDraw {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}

/* About/Services image reveal with clip */
.about-image img, .why-image-wrap img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77,0,0.175,1);
}
.about-image.visible img, .why-image-wrap.visible img {
  clip-path: inset(0 0% 0 0);
}

/* Badge pop */
.why-badge {
  opacity: 0;
  transform: scale(0.6) rotate(-10deg);
  transition: opacity 0.5s 0.8s ease, transform 0.5s 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.why-image-wrap.visible .why-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Smooth scroll progress indicator */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-sand));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   PARTICLE CANVAS Z-INDEX LAYERING
   Canvas sits at z-index:2.
   Solid white/cream sections stack at z-index:3 so their
   background covers the canvas — particles vanish behind them.
   Dark/image sections (hero, stats, testimonials, cta, footer)
   stay at z-index:1 so particles float OVER those areas.
   Header always on top at z-index:1000.
   ============================================================ */

/* Solid background sections — particles hide behind these */
.services-section,
.why-section,
.about-intro,
.about-values,
.services-detail,
.gallery-section,
.contact-section,
.map-section,
.legal-content,
section[style*="background:var(--color-light-bg)"],
section[style*="background: var(--color-light-bg)"],
section[style*="background:var(--color-white)"],
section[style*="background: var(--color-white)"] {
  position: relative;
  z-index: 3;
}

/* Dark / image sections — particles float OVER these */
.hero,
.stats-bar,
.testimonials-section,
.cta-section,
.page-hero,
section[style*="background:var(--color-stone)"],
section[style*="background: var(--color-stone)"] {
  position: relative;
  z-index: 1;
}

/* Footer always above canvas but below header */
#site-footer {
  position: relative;
  z-index: 3;
}

/* Header always on top */
#site-header {
  z-index: 1000;
}
