/* ============================================
   JB'S LANDSCAPING — PREMIUM STYLES
   Aesthetic: Luxury Estate Grounds
   Palette: Navy + Iron Red + Ivory
   ============================================ */

:root {
  /* Core Palette */
  --forest: #111d2e;
  --forest-mid: #1b263b;
  --forest-light: #253347;
  --sage: #848884;
  --sage-light: #9a9e9a;
  --green-accent: #848884;
  --gold: #8b0000;
  --gold-light: #a31a1a;
  --gold-dim: #6e0000;
  --cream: #fffff0;
  --cream-mid: #f0f0e0;
  --cream-dark: #d5d5c5;
  --brown: #1b263b;
  --brown-light: #4a5568;
  --white: #fffff8;
  --black: #0d1520;

  /* Typography */
  --font-display: 'Saira Condensed', Impact, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-subhead: 'Montserrat', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1280px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
  --duration-slow: 1s;
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  color: var(--forest-mid);
  background: var(--cream);
  line-height: 1.78;
  overflow-x: hidden;
}

/* Headers: Saira Condensed Black, All Caps */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ============================================
   PRELOADER
   ============================================ */

/* Welcome Screen — Slide & Reveal */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  animation: curtainSlideUp 0.6s var(--ease-out-expo) forwards;
}

#preloader.done {
  animation: curtainSlideOut 0.6s var(--ease-out-expo) forwards;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: welcomeContentIn 0.5s ease-out 0.5s forwards;
}

.preloader-logo {
  height: 320px;
  width: auto;
}

.preloader-welcome {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
}

@keyframes curtainSlideUp {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes curtainSlideOut {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes welcomeContentIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: var(--forest-mid);
  transition: all var(--duration-fast) ease;
}

.navbar.scrolled {
  background: rgba(27, 38, 59, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav-logo-img {
  height: 100px;
  width: auto;
  transition: all var(--duration-fast) ease;
}

.navbar.scrolled .nav-logo-img {
  height: 70px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 240, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--duration-fast) ease;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all var(--duration-fast) ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-med) var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-links a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-med) var(--ease-out-expo);
}

.mobile-menu.open .mobile-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-links li:nth-child(1) a {
  transition-delay: 0.1s;
}

.mobile-menu.open .mobile-links li:nth-child(2) a {
  transition-delay: 0.15s;
}

.mobile-menu.open .mobile-links li:nth-child(3) a {
  transition-delay: 0.2s;
}

.mobile-menu.open .mobile-links li:nth-child(4) a {
  transition-delay: 0.25s;
}

.mobile-menu.open .mobile-links li:nth-child(5) a {
  transition-delay: 0.3s;
}

.mobile-cta {
  color: var(--gold) !important;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ============================================
   PAGE SYSTEM
   ============================================ */

.page {
  display: none;
}

.page.active {
  display: block;
}

/* Keep page content visible when JavaScript is unavailable. */
body.js-enabled .page {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-med) var(--ease-out-expo),
    transform var(--duration-med) var(--ease-out-expo);
}

body.js-enabled .page.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

body.js-enabled .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

body.js-enabled .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

body.js-enabled .reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

body.js-enabled .reveal-up.revealed,
body.js-enabled .reveal-left.revealed,
body.js-enabled .reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, #1f2d42 100%);
}

.hero-bg-image {
  position: absolute;
  inset: -10%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="g1" cx="30%25" cy="40%25" r="60%25"><stop offset="0%25" stop-color="%23253347" stop-opacity="0.3"/><stop offset="100%25" stop-color="transparent"/></radialGradient><radialGradient id="g2" cx="70%25" cy="60%25" r="50%25"><stop offset="0%25" stop-color="%231b263b" stop-opacity="0.2"/><stop offset="100%25" stop-color="transparent"/></radialGradient></defs><rect fill="url(%23g1)" width="1200" height="800"/><rect fill="url(%23g2)" width="1200" height="800"/></svg>') center/cover;
  opacity: 0.6;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 29, 46, 0.3) 0%, rgba(17, 29, 46, 0.6) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.badge-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.title-italic {
  font-style: normal;
  font-weight: 900;
  color: var(--gold);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 230, 0.7);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 230, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(245, 240, 230, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn svg {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.35);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  border: 1px solid rgba(245, 240, 230, 0.3);
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 230, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-light:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.25);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.9rem;
}

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

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: var(--forest);
  padding: 48px 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: inline;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-dim);
  font-weight: 400;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(245, 240, 230, 0.1);
}

@media (max-width: 640px) {
  .stats-grid {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    min-width: 120px;
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-tag {
  display: inline-block;
  font-family: var(--font-subhead);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.section-tag-light {
  color: var(--gold-light);
}

.section-tag-light::before {
  background: var(--gold-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-tag {
  padding-left: 0;
}

.section-header .section-tag::before {
  display: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--brown-light);
  font-family: var(--font-subhead);
  font-weight: 700;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   HOME — SERVICES PREVIEW
   ============================================ */

.home-services {
  padding: var(--section-pad) 0;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .services-preview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.service-preview-card {
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--duration-med) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.service-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.service-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(17, 29, 46, 0.08);
  border-color: transparent;
}

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

.spc-icon {
  width: 48px;
  height: 48px;
  color: var(--sage);
  margin-bottom: 20px;
  transition: color var(--duration-fast) ease;
}

.service-preview-card:hover .spc-icon {
  color: var(--gold);
}

.spc-icon svg {
  width: 100%;
  height: 100%;
}

.service-preview-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--forest);
}

.service-preview-card p {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.spc-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.spc-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.spc-link:hover::after {
  width: 100%;
}

/* ============================================
   PROMISE SECTION
   ============================================ */

.promise-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.promise-bg {
  position: absolute;
  inset: -10%;
  background: var(--forest);
}

.promise-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 29, 46, 0.97), rgba(27, 38, 59, 0.95));
}

.promise-content {
  position: relative;
  z-index: 1;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.promise-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

.promise-title em {
  color: var(--gold);
  font-weight: 900;
  font-style: normal;
}

.promise-text {
  font-size: 1.05rem;
  color: rgba(245, 240, 230, 0.7);
  line-height: 1.8;
  margin-bottom: 32px;
}

.promise-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.promise-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pv-icon {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.promise-value strong {
  display: block;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.promise-value span {
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.5);
}

/* ============================================
   SERVICE AREAS
   ============================================ */

.areas-section {
  padding: var(--section-pad) 0;
}

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

@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.area-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: 8px;
  transition: all var(--duration-med) var(--ease-out-expo);
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 29, 46, 0.06);
  border-color: var(--gold);
}

.area-pin {
  color: var(--sage);
  margin-bottom: 16px;
  transition: color var(--duration-fast) ease;
}

.area-card:hover .area-pin {
  color: var(--gold);
}

.area-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
}

.area-card span {
  font-size: 0.8rem;
  color: var(--brown-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  padding: 80px 0;
  background: var(--forest-mid);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.06) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(245, 240, 230, 0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PAGE HERO (Services, Gallery, About)
   ============================================ */

.page-hero {
  position: relative;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: -10%;
  background: linear-gradient(135deg, var(--forest) 0%, #1f2d42 50%, var(--forest-mid) 100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 29, 46, 0.5);
}

.page-hero-content {
  position: relative;
  text-align: center;
  padding: 0 20px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(245, 240, 230, 0.6);
  font-weight: 300;
}

/* ============================================
   SERVICES DETAIL
   ============================================ */

.services-detail {
  padding: var(--section-pad) 0;
}

.service-block {
  margin-bottom: 80px;
  position: relative;
}

.service-block:last-child {
  margin-bottom: 0;
}

.sb-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--cream-mid);
  line-height: 1;
  margin-bottom: -20px;
  position: relative;
  z-index: 0;
}

.sb-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sb-reverse .sb-content {
  direction: rtl;
}

.sb-reverse .sb-content>* {
  direction: ltr;
}

@media (max-width: 768px) {
  .sb-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sb-reverse .sb-content {
    direction: ltr;
  }
}

.sb-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 16px;
}

.sb-text p {
  font-size: 1rem;
  color: var(--brown-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.sb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-list li {
  font-size: 0.9rem;
  color: var(--forest);
  padding-left: 24px;
  position: relative;
}

.sb-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.sb-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--cream-mid);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brown-light);
  border: 2px dashed var(--cream-dark);
  transition: all var(--duration-med) var(--ease-out-expo);
}

.sb-image-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.sb-image-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sb-image-real {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.service-block:hover .sb-image-real {
  transform: scale(1.02);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-section {
  padding: var(--section-pad) 0;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.gallery-filter {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  color: var(--brown-light);
  transition: all var(--duration-fast) ease;
}

.gallery-filter:hover {
  border-color: var(--gold);
  color: var(--forest);
}

.gallery-filter.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-tall {
  grid-row: span 2;
}

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

@media (max-width: 500px) {
  .gallery-item-tall {
    grid-row: span 1;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }
}

.gi-placeholder {
  position: absolute;
  inset: 0;
  background: var(--forest-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gi-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 230, 0.2);
}

.gi-placeholder-inner span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gi-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-med) var(--ease-out-expo);
}

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

.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 29, 46, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-med) var(--ease-out-expo);
}

.gallery-item:hover .gi-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gi-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.gi-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
}

.gi-location {
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.5);
}

/* ============================================
   ABOUT
   ============================================ */

.about-section {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-image {
  position: relative;
}

.about-image-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.about-image-accent {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  opacity: 0.2;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 24px;
}

.about-story p {
  font-size: 1.05rem;
  color: var(--brown-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-story strong {
  color: var(--forest);
}

/* ============================================
   VALUES
   ============================================ */

.values-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

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

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.value-card {
  padding: 36px 28px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--cream-mid);
  transition: all var(--duration-med) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(17, 29, 46, 0.06);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.vc-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--cream-dark);
  margin-bottom: 16px;
  line-height: 1;
  transition: color var(--duration-fast) ease;
}

.value-card:hover .vc-number {
  color: var(--gold);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--brown-light);
  line-height: 1.7;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-section {
  padding: var(--section-pad) 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cream-dark);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  z-index: 1;
  transition: all var(--duration-fast) ease;
}

.timeline-item:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(139, 0, 0, 0.15);
}

.ti-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.ti-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 8px;
}

.ti-content p {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.7;
}

/* ============================================
   QUOTE MODAL
   ============================================ */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-med) var(--ease-out-expo);
}

.quote-modal.open {
  opacity: 1;
  visibility: visible;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 32, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.quote-modal-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.quote-modal.open .quote-modal-container {
  transform: translateX(0);
}

.quote-modal-inner {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .quote-modal-container {
    max-width: 100%;
  }

  .quote-modal-inner {
    padding: 32px 20px;
  }
}

.quote-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--brown-light);
  transition: color var(--duration-fast) ease;
  padding: 4px;
}

.quote-close:hover {
  color: var(--forest);
}

.quote-header {
  margin-bottom: 32px;
}

.quote-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 8px;
}

.quote-header p {
  font-size: 0.95rem;
  color: var(--brown-light);
}

/* Jobber Embed */
.jobber-embed {
  flex: 1;
  min-height: 0;
}

.jobber-embed iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 160px);
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--forest);
  padding: 80px 0 0;
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.08);
}

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

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-areas {
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.35);
}

.footer-areas span {
  color: var(--gold-dim);
}

.footer-links-col h4,
.footer-cta-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--cream);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.5);
  transition: color var(--duration-fast) ease;
}

.footer-links-col a:hover {
  color: var(--gold);
}

.footer-cta-col .btn {
  margin-bottom: 20px;
}

.footer-phone {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
  transition: color var(--duration-fast) ease;
}

.footer-phone:hover {
  color: var(--gold);
}

.footer-email {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.6);
  margin-bottom: 8px;
  transition: color var(--duration-fast) ease;
}

.footer-email:hover {
  color: var(--gold);
}

.footer-contact span {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.4);
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.3);
}

@media (max-width: 500px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--cream-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brown-light);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--gold);
  color: var(--white);
}

/* ============================================
   SMOOTH PAGE TRANSITION OVERLAY
   ============================================ */

/* Page Transition — Navy Slide Wipe */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--forest-mid);
  transform: translateX(-100%);
  pointer-events: none;
  will-change: transform;
}

.page-wipe.wipe-in {
  animation: wipeIn 0.45s var(--ease-out-expo) forwards;
}

.page-wipe.wipe-out {
  animation: wipeOut 0.45s var(--ease-out-expo) forwards;
}

@keyframes wipeIn {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes wipeOut {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ============================================
   MAGNETIC HOVER EFFECT UTILITY
   ============================================ */

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 0, 0, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  z-index: 1;
  pointer-events: none;
}

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

/* ============================================
   LOADING SKELETON SHIMMER
   ============================================ */

.gi-placeholder::after,
.sb-image-placeholder::after,
.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 50%,
      transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.sb-image-placeholder,
.about-image-placeholder {
  position: relative;
  overflow: hidden;
}