/* ============================================
   Bart Corrigan Contractor
   Desert Craftsman -- Premium Dark Theme
   Forest green + cream gold accents
   Oswald + DM Sans | Vanilla CSS
   ============================================ */

/* --- 1. CSS Reset + Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-page);
  overflow-x: clip;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; border: 2px solid var(--bg-page); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(74, 122, 74, 0.25); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* --- 2. Custom Properties --- */
:root {
  --accent: #4A7A4A;
  --accent-bright: #5D9B5D;
  --accent-deep: #2D4A2D;
  --accent-soft: rgba(74, 122, 74, 0.15);
  --accent-glow: rgba(93, 155, 93, 0.3);
  --accent-undertone: rgba(74, 122, 74, 0.08);

  --gold: #C4A035;
  --gold-bright: #D4B045;
  --gold-soft: rgba(196, 160, 53, 0.15);

  --bg-page: #0F1A0F;
  --bg-elevated: #141F14;
  --bg-card: #1A261A;
  --bg-muted: #1E2E1E;

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(74, 122, 74, 0.25);

  --text: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.85);
  --text-subtle: #a8a89a;
  --text-faint: #666660;

  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1200px;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}


/* --- 3. Typography System --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title--accent span {
  color: var(--accent-bright);
}

.section-intro {
  font-family: var(--font-body);
  color: var(--text-subtle);
  max-width: 65ch;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.required { color: #C0392B; }


/* --- 4. Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--dark { background: var(--bg-page); }
.section--elevated { background: var(--bg-elevated); }

.section-header { margin-bottom: 2.5rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }


/* --- 5. Skip Link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0.5rem; z-index: 9999;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--bg-page);
  font-weight: 700; font-family: var(--font-display);
  letter-spacing: 0.04em; border-radius: var(--radius);
}
.skip-link:focus { left: 0.5rem; }


/* --- 6. Scroll Progress Bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(74, 122, 74, 0.15);
  z-index: 9999; transition: width 0.1s linear; pointer-events: none;
}


/* --- 7. Grain Overlay --- */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}


/* --- 8. Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: rgba(15, 26, 15, 0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--accent-soft);
}

.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; transition: height 0.3s var(--ease);
}

.header--scrolled .header-inner { height: 64px; }

.header-logo-link { display: flex; align-items: center; }

.header-logo {
  max-height: 52px; width: auto;
  background-color: #F5F0E8;
  padding: 4px 8px;
  border-radius: 6px;
  transition: max-height 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s ease;
}

.header--scrolled .header-logo { max-height: 40px; }
.header-logo:hover {
  transform: scale(1.04) translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(74, 122, 74, 0.3));
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); position: relative; transition: color 0.2s ease;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform-origin: bottom right; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-links a:hover { color: var(--accent-bright); }
.nav-links a:hover::after { transform-origin: bottom left; transform: scaleX(1); }

/* Phone button */
.btn-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(160deg, var(--accent-bright), var(--accent), var(--accent-deep));
  color: var(--bg-page);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem; border-radius: 6px; border: 1px solid rgba(0,0,0,0.15);
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease);
}

.btn-phone::before {
  content: ''; width: 1.1em; height: 1.1em; background-color: var(--bg-page);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V21c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V21c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain; flex-shrink: 0;
}

.btn-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 122, 74, 0.3);
  color: var(--bg-page);
}
.btn-phone:active { transform: scale(0.98) translateY(0); }
.btn-phone:visited { color: var(--bg-page); }

.header--scrolled .header-cta { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer; z-index: 52;
}

.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle--active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle--active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: min(320px, 90vw); height: 100vh; height: 100dvh;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-elevated) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 51; padding: 5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  border-left: 2px solid var(--accent);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.mobile-menu--open { transform: translateX(0); visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); padding: 0.75rem 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--accent-bright); }

.mobile-menu-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--accent); color: var(--bg-page);
  font-size: 1.5rem; cursor: pointer; border: none;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover { background: var(--accent-bright); }

.mobile-menu-cta { margin-top: 1.5rem; }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0, 0, 0, 0.6); display: none;
}
.nav-backdrop:not([hidden]) { display: block; }


/* --- 9. Hero --- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25; z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,15,0.85) 0%, rgba(15,26,15,0.55) 40%, rgba(15,26,15,0.45) 100%);
  z-index: 1;
}

/* Accent lines */
.hero::before, .hero::after {
  content: ''; position: absolute; top: 10%; width: 2px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.2; z-index: 2; pointer-events: none;
}
.hero::before { left: clamp(1rem, 3vw, 2.5rem); }
.hero::after { right: clamp(1rem, 3vw, 2.5rem); }

.hero-content {
  position: relative; z-index: 10; width: 100%;
  text-align: left; padding-bottom: 5rem;
}

/* Badge */
.hero-badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  color: var(--gold); font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; border-radius: 9999px; margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite, fadeUp 0.8s var(--ease) 0.2s both;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.1; color: var(--text); margin-bottom: 1.25rem;
}

.hero-title-line { display: block; overflow: hidden; }
.hero-title-line span {
  display: inline-block;
  animation: titleReveal 0.9s var(--ease) both;
}
.hero-title-line:nth-child(1) span { animation-delay: 0.4s; }
.hero-title-line:nth-child(2) span { animation-delay: 0.65s; }

.hero-title-line--accent span {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(74, 122, 74, 0.4));
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted); max-width: 50ch;
  line-height: 1.7; margin-bottom: 2rem;
  animation: fadeUp 0.8s var(--ease) 1.1s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeUp 0.8s var(--ease) 1.3s both;
}

/* Trust bar */
.hero-trust {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(20, 31, 20, 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent-soft);
  z-index: 10; padding: 1rem 0;
}

.hero-trust-inner {
  display: flex; justify-content: space-around; align-items: center; gap: 2rem;
}

.hero-trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); white-space: nowrap;
}

.hero-trust-item svg { color: var(--gold); flex-shrink: 0; }


/* --- 10. Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: var(--text); font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.85rem 1.8rem;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 122, 74, 0.3), 0 0 0 1px rgba(93, 155, 93, 0.2);
  color: var(--text);
}

.btn-primary:active { transform: scale(0.98) translateY(0); }
.btn-primary:visited { color: var(--text); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem; border-radius: 6px;
  border: 2px solid var(--text-subtle); text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--accent-bright); color: var(--accent-bright);
  background: rgba(74, 122, 74, 0.05); transform: translateY(-3px);
}

.btn-ghost:active { transform: scale(0.98) translateY(0); }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }


/* --- 11. Service Cards --- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.service-card {
  position: relative; min-height: 400px;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, transform 0.45s var(--ease-spring), box-shadow 0.4s var(--ease);
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  z-index: 20; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

.service-card-media { position: absolute; inset: 0; z-index: 0; }

.service-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

.service-card-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem; height: 100%;
}

.service-card-badge {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}

.service-card-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700; text-transform: uppercase; color: var(--text); line-height: 1.1;
}

.service-card-desc {
  color: var(--text-muted); margin-top: 0.75rem;
  line-height: 1.6; font-size: 0.9rem;
}

.service-card-link {
  color: var(--accent-bright); font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem;
  transition: gap 0.3s var(--ease);
}

.service-card:hover .service-card-link { gap: 0.8rem; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

.service-card-link svg {
  width: 16px; height: 16px; transition: transform 0.3s var(--ease);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 122, 74, 0.1);
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(-6px);
}

/* Additional services */
.services-more {
  margin-top: 2.5rem; text-align: center;
}

.services-more-title {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-subtle); margin-bottom: 1rem;
}

.services-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
}

.service-tag {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; padding: 0.5rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 9999px; color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.service-tag:hover {
  border-color: var(--border-accent); background: var(--accent-undertone);
  color: var(--accent-bright); transform: translateY(-2px);
}


/* --- 12. Our Work --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}

.work-item--wide { grid-column: span 2; }

.work-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-spring);
}

.work-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.work-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.work-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 1.25rem;
}

.work-item:hover .work-item-overlay { opacity: 1; }

.work-item-caption {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); transform: translateY(10px);
  transition: transform 0.3s var(--ease);
}

.work-item:hover .work-item-caption { transform: translateY(0); }


/* --- 13. About --- */
.about-grid {
  display: grid; grid-template-columns: 55% 45%; gap: 3rem; align-items: center;
}

.about-media { position: relative; }

.about-image-wrapper {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.about-image-wrapper img { width: 100%; display: block; }

.about-stats-badge {
  position: absolute; bottom: -1rem; right: 1rem;
  background: var(--bg-card); padding: 1rem 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); text-align: center;
}

.about-stats-value {
  color: var(--accent-bright); font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; line-height: 1;
}

.about-stats-label {
  color: var(--text-subtle); font-size: 0.75rem; margin-top: 0.25rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.about-content { display: flex; flex-direction: column; justify-content: center; }

.about-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  margin-bottom: 1.5rem; border-radius: 2px;
}

.about-text {
  color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7;
}

.about-check-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.about-check-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0; color: var(--text-muted); font-size: 0.95rem;
}

.about-check-list li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px;
  background-color: var(--accent-bright);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}


/* --- 14. Areas --- */
.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}

.area-tile {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-spring);
}

.area-tile:hover {
  border-color: var(--border-accent); background: var(--accent-undertone);
  transform: translateY(-3px);
}

.area-tile-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.area-tile:hover .area-tile-dot {
  box-shadow: 0 0 8px var(--accent-glow);
}

.area-tile-name {
  font-family: var(--font-display); font-weight: 500;
  color: var(--text-muted); font-size: 0.9rem;
}


/* --- 15. Contact --- */
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem;
}

.contact-form-wrap {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--border);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700; color: var(--text); margin-bottom: 0.5rem;
}

.contact-form-subtitle {
  color: var(--text-subtle); margin-bottom: 1.5rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}

.form-group {
  display: flex; flex-direction: column; position: relative;
  margin-bottom: 1rem;
}

.form-group label {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background-color: var(--bg-muted); color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none; appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a89a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid { border-color: #C0392B; }

.field-error {
  font-size: 0.8rem; color: #C0392B; margin-top: 0.25rem;
}

.cf-turnstile { margin-bottom: 1rem; }

.form-error {
  font-size: 0.9rem; color: #C0392B;
  background-color: rgba(192, 57, 43, 0.08);
  padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
}

.form-submit { border: none; font-size: 1rem; }
.form-submit.is-loading .form-submit-text { display: none; }
.form-submit.is-loading .form-submit-loading { display: inline-flex !important; align-items: center; gap: 0.5rem; }

/* Success state */
.form-success { text-align: center; padding: 2rem 0; }
.form-success-icon { color: var(--accent-bright); margin-bottom: 1rem; }

.form-success h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}

.form-success p { color: var(--text-muted); margin-bottom: 0.5rem; }
.form-success a { color: var(--accent-bright); font-weight: 600; }

/* Sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.contact-sidebar-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.5rem; border: 1px solid var(--border);
}

.contact-sidebar-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.contact-sidebar-phone,
.contact-sidebar-email {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1rem; font-weight: 600;
  color: var(--accent-bright); padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.contact-sidebar-phone:hover,
.contact-sidebar-email:hover { color: var(--gold); }

.contact-sidebar-email {
  font-weight: 400; font-size: 0.9rem; word-break: break-all;
}

.contact-sidebar-secure {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-faint);
}


/* --- 16. Footer --- */
.footer {
  background-color: var(--bg-page);
  border-top: 1px solid var(--border);
  color: var(--text); padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; text-align: center;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 70px; width: auto;
  background-color: #F5F0E8;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-tagline {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.5rem;
}

.footer-contact {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}

.footer-contact a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact span { font-size: 0.85rem; color: var(--text-faint); }

.footer-bottom { padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-faint); }


/* --- 17. Floating CTA --- */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900; padding: 0.75rem clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(160deg, var(--accent-bright), var(--accent), var(--accent-deep));
  transition: transform 0.4s var(--ease);
}

.floating-cta--hidden { transform: translateY(100%); }

.floating-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 0.5rem;
}


/* --- 17b. Particles --- */
.hero-particles {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}

.dust-particle {
  position: absolute; bottom: -10px;
  width: 2px; height: 2px;
  background: rgba(245, 240, 232, 0.5);
  border-radius: 50%;
  animation: dustFloat linear infinite;
}

/* --- 17c. Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute; bottom: 5rem; left: 50%;
  transform: translateX(-50%); z-index: 10;
  color: var(--text-subtle); opacity: 0.4;
  animation: float 2.5s ease-in-out infinite;
}

/* --- 17d. Process Section --- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative;
}

.process-line {
  position: absolute; top: 40px; left: 12%; width: 76%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), var(--accent), var(--accent-soft), transparent);
  opacity: 0.5; z-index: 0; pointer-events: none;
}

.process-step { text-align: center; position: relative; z-index: 1; }

.process-step-circle {
  width: 80px; height: 80px; margin: 0 auto; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step-circle {
  border-color: var(--accent); box-shadow: 0 0 24px var(--accent-soft);
}

.process-step-icon { color: var(--accent-bright); }

.process-step-number {
  position: absolute; top: -8px; right: -4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--bg-page);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 122, 74, 0.3);
}

.process-step-title {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em;
  margin-top: 1.5rem; color: var(--text);
}

.process-step-desc {
  color: var(--text-subtle); font-size: 0.85rem;
  margin-top: 0.5rem; max-width: 220px; margin-inline: auto; line-height: 1.5;
}

/* --- 17e. Contact Form Accent Line --- */
.contact-form-wrap { position: relative; overflow: hidden; }

.contact-form-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
}


/* --- 18. Keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleReveal {
  from { transform: translateY(110%) skewY(4deg); opacity: 0; }
  to { transform: translateY(0) skewY(0deg); opacity: 1; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes dustFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}


/* --- 19. Scroll Animations --- */
.animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.revealed { opacity: 1; transform: translateY(0); }

.animate-on-scroll.fade-left { transform: translateX(-20px); }
.animate-on-scroll.fade-left.revealed { transform: translateX(0); }

.animate-on-scroll.fade-right { transform: translateX(20px); }
.animate-on-scroll.fade-right.revealed { transform: translateX(0); }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-title-line span { animation: none; opacity: 1; transform: none; }
  .hero-badge { animation: none; opacity: 1; }
  .hero-subtitle { animation: none; opacity: 1; }
  .hero-actions { animation: none; opacity: 1; }
  .dust-particle { display: none; }
  .hero-scroll-indicator { animation: none; }
}


/* --- 20. Responsive --- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-inner > .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { height: 60px; }
  .header--scrolled .header-inner { height: 54px; }

  .hero::before, .hero::after { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }

  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .work-item--wide { grid-column: span 2; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .areas-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-trust-inner { flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }

  .form-row { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work-item--wide { grid-column: span 1; }

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

  .contact-form-wrap { padding: 1.5rem; }
}

@media (min-width: 1025px) {
  .floating-cta { display: none; }
}
