/* ==========================================
   Black Oak Hardscapes - Main Stylesheet
   ========================================== */

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

:root {
  --bg: #0C0C0C;
  --bg2: #131313;
  --bg3: #1A1A1A;
  --bg4: #212121;
  --w: #fff;
  --w90: rgba(255, 255, 255, 0.9);
  --w70: rgba(255, 255, 255, 0.7);
  --w50: rgba(255, 255, 255, 0.5);
  --w30: rgba(255, 255, 255, 0.3);
  --w15: rgba(255, 255, 255, 0.12);
  --w08: rgba(255, 255, 255, 0.07);
  --gold: #FFFFFF;
  --gold-l: #E0E0E0;
  --gold-dim: rgba(255, 255, 255, 0.12);
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 6px;
  --rl: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  color: var(--w);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img.loaded,
.nav-logo img,
.hero-bg img {
  opacity: 1;
}

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


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

.section-pad {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}


/* --- Typography --- */
.label {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.heading-xl {
  font-family: var(--fd);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.body-lg {
  color: var(--w50);
  font-size: 1rem;
  font-weight: 400;
  max-width: 52ch;
  line-height: 1.75;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: var(--r);
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

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

.btn-gold,
a.btn-gold {
  background: var(--gold);
  color: #0C0C0C;
}

.btn-gold:hover,
a.btn-gold:hover {
  background: var(--gold-l);
  color: #0C0C0C;
}

.btn-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--w);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.18);
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--eo), transform 0.6s var(--eo);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.34s; }


/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 0.65rem 0;
  border-bottom-color: var(--w08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--w50);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--w);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-chevron {
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--w08);
  border-radius: var(--rl);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  color: var(--w50);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.04);
}

.nav-cta .btn {
  padding: 0.55rem 1.3rem;
  font-size: 0.78rem;
}

.nav-links .nav-cta a.btn-gold,
.nav-links .nav-cta a.btn-gold:hover {
  color: #0C0C0C;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--w);
  transition: all 0.3s var(--ease);
}

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

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

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

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    background: var(--bg2);
    padding: 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--w08);
    transition: right 0.4s var(--eo);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--w70);
  }

  /* Mobile dropdown: inline expand */
  .dropdown-menu {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s var(--ease);
  }
  .nav-dropdown.open .dropdown-menu {
    max-height: 300px;
  }
  .dropdown-menu li a {
    padding: 0.4rem 0;
    font-size: 0.9rem;
  }
}


/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-poolside.webp') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.72) 0%,
    rgba(12, 12, 12, 0.5) 45%,
    rgba(12, 12, 12, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 7rem;
  max-width: 700px;
}

.hero .label {
  margin-bottom: 1.2rem;
}

.hero .heading-xl {
  margin-bottom: 1.3rem;
}

.hero .heading-xl em {
  font-style: italic;
  color: var(--gold-l);
}

.hero .body-lg {
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  border-top: 1px solid var(--w08);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(16px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 1.2rem 0;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--w30);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
  font-weight: 500;
}


/* ==========================================
   SERVICES
   ========================================== */
.services {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/gallery-patio-after.webp') center/cover no-repeat;
  filter: blur(5px) brightness(0.3);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.services > .container { position: relative; z-index: 1; }

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header .label {
  margin-bottom: 0.75rem;
}

.services-header .body-lg {
  margin: 1rem auto 0;
}

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

/* Flip card wrapper */
.card-flip {
  perspective: 1200px;
  height: 320px;
}

.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
}

.card-flip:hover .service-card,
.card-flip.flipped .service-card {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--rl);
  overflow: hidden;
}

/* Front face */
.card-front {
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--w08);
  z-index: 2;
  transform: rotateY(0deg);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.service-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,12,12,0.92) 30%, rgba(12,12,12,0.55) 70%, rgba(12,12,12,0.3) 100%);
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.8rem;
}

.card-front h3 {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-front p {
  color: var(--w50);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Back face */
.card-back {
  transform: rotateY(180deg);
  background: #141414;
  border: 1px solid var(--gold-dim);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.card-back h3 {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gold-dim);
}

.card-back ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.card-back ul li {
  color: var(--w70);
  font-size: 0.88rem;
  padding: 0.45rem 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-back ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.78rem;
  align-self: flex-start;
}

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

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


/* ==========================================
   ABOUT
   ========================================== */
.about {
  background: var(--bg2);
  border-top: 1px solid var(--w08);
  border-bottom: 1px solid var(--w08);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/gallery-steps-after.webp') center/cover no-repeat;
  filter: blur(5px) brightness(0.25);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.about > .container { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rl);
  filter: brightness(0.88);
}

.about-img-float {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
  border: 3px solid var(--bg2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.about-content .label {
  margin-bottom: 0.75rem;
}

.about-content .heading-lg {
  margin-bottom: 1rem;
}

.about-content .body-lg {
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.8rem 0 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--w08);
  border-radius: var(--r);
}

.value-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.value-item span {
  font-size: 0.85rem;
  font-weight: 500;
}

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

  .about-img-float {
    width: 40%;
    bottom: -0.8rem;
    right: -0.5rem;
  }
}


/* ==========================================
   PORTFOLIO
   ========================================== */
.portfolio {
  background: var(--bg);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-header .body-lg {
  margin: 1rem auto 0;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.project:nth-child(even) {
  direction: rtl;
}

.project:nth-child(even) > * {
  direction: ltr;
}

.project-img-wrap {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
}

.project-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: brightness(0.88);
}

.project-img-wrap:hover img {
  transform: scale(1.03);
}

.project-info .label {
  margin-bottom: 0.6rem;
}

.project-info h3 {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.project-info p {
  color: var(--w50);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.25rem 0.65rem;
  border-radius: var(--r);
  background: var(--w08);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--w50);
}

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

  .project:nth-child(even) {
    direction: ltr;
  }
}


/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  background: var(--bg2);
  border-top: 1px solid var(--w08);
  border-bottom: 1px solid var(--w08);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/gallery-firepit-after.webp') center/cover no-repeat;
  filter: blur(5px) brightness(0.25);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.testimonials > .container { position: relative; z-index: 1; }

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
  border-radius: var(--rl);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s var(--eo);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 0.667rem);
  padding: 2rem 1.6rem;
  background: var(--bg3);
  border: 1px solid var(--w08);
  border-radius: var(--rl);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.testimonial-card:hover {
  border-color: var(--w15);
  transform: translateY(-3px);
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--w15);
  background: var(--bg3);
  color: var(--w70);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--w15);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--w70);
  line-height: 1.65;
  margin-bottom: 1.3rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-role {
  font-size: 0.72rem;
  color: var(--w30);
}

@media (max-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 600px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
  .carousel-btn {
    display: none;
  }
  .carousel-track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .carousel-track-container::-webkit-scrollbar {
    display: none;
  }
  .carousel-track {
    transition: none;
  }
  .testimonial-card {
    scroll-snap-align: start;
  }
}


/* ==========================================
   PROCESS
   ========================================== */
.process {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/gallery-walkway-after.webp') center/cover no-repeat;
  filter: blur(5px) brightness(0.3);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.process > .container { position: relative; z-index: 1; }

.process-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.step {
  padding: 2.2rem 1.8rem;
  background: var(--bg2);
  border: 1px solid var(--w08);
  border-radius: var(--rl);
  text-align: center;
}

.step-number {
  font-family: var(--fd);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--w50);
  font-size: 0.88rem;
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.6;
}

.process-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.process-cta p {
  color: var(--w50);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Sticky mobile CTA bar */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gold-dim);
  transform: translateY(100%);
  transition: transform 0.4s var(--eo);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
  /* pad footer so sticky CTA doesn't overlap */
  .footer {
    padding-bottom: 5rem;
  }
}


/* ==========================================
   FAQ
   ========================================== */
.faq {
  background: var(--bg2);
  border-top: 1px solid var(--w08);
  border-bottom: 1px solid var(--w08);
  position: relative;
  overflow: hidden;
}
.faq::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/gallery-retaining-after.jpg') center/cover no-repeat;
  filter: blur(5px) brightness(0.25);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.faq > .container { position: relative; z-index: 1; }

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-left .label {
  margin-bottom: 0.75rem;
}

.faq-left .heading-lg {
  margin-bottom: 0.8rem;
}

.faq-left .body-lg {
  margin-bottom: 1.5rem;
}

.faq-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rl);
  filter: brightness(0.8);
  margin-top: 0.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--w08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  background: none;
  border: none;
  font-family: var(--fb);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--w90);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--w30);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1rem;
}

.faq-answer p {
  color: var(--w50);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-image {
    display: none;
  }
}


/* ==========================================
   CTA
   ========================================== */
.cta {
  background: var(--bg);
}

.cta-inner {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url('../images/portfolio-mountain-aerial.webp') center/cover no-repeat;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.82);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.cta .label {
  margin-bottom: 0.8rem;
}

.cta .heading-lg {
  margin-bottom: 0.8rem;
}

.cta .body-lg {
  margin: 0 auto 2rem;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}


/* ==========================================
   CONTACT
   ========================================== */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-left .label {
  margin-bottom: 0.75rem;
}

.contact-left .heading-lg {
  margin-bottom: 0.8rem;
}

.contact-left .body-lg {
  margin-bottom: 1.8rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--gold);
  fill: none;
}

.contact-info-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-info-text span {
  font-size: 0.86rem;
  color: var(--w50);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--w08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--w50);
  transition: fill 0.3s;
}

.social-link:hover svg {
  fill: var(--bg);
}

/* Contact Form */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--w08);
  border-radius: var(--rl);
  padding: clamp(1.8rem, 3.5vw, 2.5rem);
}

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

.form-group {
  margin-bottom: 0.9rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r);
  border: 1px solid var(--w08);
  background: var(--bg3);
  font-family: var(--fb);
  font-size: 0.9rem;
  color: var(--w);
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

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

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

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

.form-group select {
  color: var(--w50);
}

.form-group select option {
  background: var(--bg2);
  color: var(--w);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

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

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


/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--w08);
  padding: 3.5rem 0 1.8rem;
  color: var(--w30);
}

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

.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 30ch;
  margin-top: 0.8rem;
}

.footer h4 {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--w30);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

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

.footer ul a {
  font-size: 0.86rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--w08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p {
  font-size: 0.78rem;
}

.footer-bottom a {
  color: var(--gold);
}

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}


/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.preloader-logo span {
  color: var(--gold);
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--w08);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: preload 1.2s var(--eo) forwards;
}

@keyframes preload {
  to { width: 100%; }
}


/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease);
  box-shadow: 0 4px 20px rgba(201, 162, 77, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 162, 77, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--bg);
}


/* ==========================================
   FOCUS & ACCESSIBILITY
   ========================================== */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.nav-links a:focus-visible {
  color: var(--gold);
}

/* Active nav link */
.nav-links a.active {
  color: var(--gold);
}


/* ==========================================
   FORM VALIDATION & STATES
   ========================================== */
.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  display: none;
  font-size: 0.72rem;
  color: #e74c3c;
  margin-top: 0.25rem;
}

.form-group input.error ~ .form-error,
.form-group textarea.error ~ .form-error {
  display: block;
}

.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit .btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit.loading .btn-text,
.form-submit.loading .btn-arrow {
  display: none;
}

.form-submit.loading .btn-loader {
  display: inline-flex;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 0.5s var(--eo);
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #27ae60;
}

.form-success h3 {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--w);
}

.form-success p {
  color: var(--w50);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Error state */
.form-error-msg {
  padding: 1rem;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--r);
  margin-top: 0.8rem;
  animation: fadeInUp 0.4s var(--eo);
}

.form-error-msg p {
  font-size: 0.85rem;
  color: #e74c3c;
}

.form-error-msg a {
  color: var(--gold);
  text-decoration: underline;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================
   IMAGE LOADING & MICRO-INTERACTIONS
   ========================================== */

/* Smooth image reveal for project cards */
.project-img-wrap {
  background: var(--bg3);
}

/* Enhanced testimonial card hover */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.testimonial-card:hover::before {
  transform: scaleY(1);
}

/* Step card number hover effect */
.step:hover .step-number {
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

/* Smooth scroll selection indicator */
html {
  scroll-padding-top: 80px;
}

/* Mobile touch feedback */
@media (hover: none) {
  .btn:active {
    transform: scale(0.97);
  }
}

/* --- 3D Design Section --- */
.design-3d {
  background: var(--bg2);
}
.design-3d-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.design-3d-subtitle {
  color: var(--w70);
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.design-3d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.design-3d-card {
  background: var(--bg3);
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--w08);
  transition: transform 0.4s var(--eo), border-color 0.4s var(--ease);
}
.design-3d-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
}
.design-3d-img-wrap {
  overflow: hidden;
  aspect-ratio: 3/2;
}
.design-3d-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--eo);
}
.design-3d-card:hover .design-3d-img-wrap img {
  transform: scale(1.05);
}
.design-3d-info {
  padding: 1.5rem;
}
.design-3d-info h3 {
  font-family: var(--fd);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.design-3d-info p {
  color: var(--w70);
  font-size: 0.95rem;
  line-height: 1.6;
}
.design-3d-cta {
  text-align: center;
  margin-top: 2.5rem;
}
@media (max-width: 700px) {
  .design-3d-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Before & After Gallery --- */
.gallery-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.gallery-subtitle {
  color: var(--w70);
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl);
  aspect-ratio: 4/3;
  cursor: ew-resize;
  user-select: none;
  border: 1px solid var(--w08);
}
.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
}
.ba-after img,
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before {
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}
.ba-handle-line {
  flex: 1;
  width: 3px;
  background: var(--gold);
}
.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  pointer-events: auto;
  flex-shrink: 0;
}
.ba-handle-circle svg {
  color: var(--bg);
  width: 16px;
  height: 16px;
}
.ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 4;
  pointer-events: none;
}
.ba-label-before {
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--w);
}
.ba-label-after {
  right: 12px;
  background: var(--gold);
  color: var(--bg);
}
@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .navbar, .hamburger, .back-to-top, .preloader, .hero-bg, .cta-bg {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
