/* ============================================
   Brisbane City Landscapes — Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-neutral-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

ul {
  list-style: none;
}

/* ---------- Custom Properties ---------- */
:root {
  --color-primary:       #2D5A27;
  --color-primary-light: #4A7C42;
  --color-primary-dark:  #1A3A18;
  --color-accent:        #C8A45A;
  --color-accent-hover:  #B8933A;
  --color-neutral-50:    #FAFAF7;
  --color-neutral-100:   #F0EDE6;
  --color-neutral-200:   #E0DDD6;
  --color-neutral-700:   #3D3D3D;
  --color-neutral-900:   #1A1A1A;
  --color-white:         #FFFFFF;
  --color-error:         #D32F2F;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --container-max:    1200px;
  --section-padding:  5rem 1.5rem;
  --border-radius:    8px;
  --shadow-card:      0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover:0 8px 30px rgba(0, 0, 0, 0.12);
  --transition:       0.3s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p + p { margin-top: 1rem; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__title {
  margin-bottom: 1rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section__title--left::after {
  margin-left: 0;
}

.section__title--light {
  color: var(--color-white);
}

.section__subtitle {
  color: var(--color-neutral-700);
  font-size: 1.1rem;
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.required {
  color: var(--color-error);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-900);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-neutral-900);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 164, 90, 0.4);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-neutral-900);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Image Reveal on Scroll ---------- */
[data-reveal] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  clip-path: inset(0 0 0 0);
}

[data-reveal="left"] {
  clip-path: inset(0 100% 0 0);
}

[data-reveal="left"].revealed {
  clip-path: inset(0 0 0 0);
}

/* ---------- Split Text Reveal ---------- */
.split-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-white);
  transition: color var(--transition);
}

.scrolled .header__logo {
  color: var(--color-primary-dark);
}

.header__logo-icon svg,
.header__logo-icon img {
  display: block;
}

.header__logo-img {
  border-radius: 4px;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.scrolled .header__logo-img {
  filter: none;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.2;
}

.header__logo-text strong {
  display: block;
  font-size: 1.25rem;
}

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.header__hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.scrolled .header__hamburger-line {
  background: var(--color-neutral-900);
}

/* Hamburger active state */
.nav-open .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-open .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.header__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-primary-dark);
  padding: 5rem 2rem 2rem;
  transition: right var(--transition);
  z-index: 1000;
}

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

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header__nav-link {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__cta {
  margin-top: 1rem;
  justify-content: center;
}

/* Nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-dark);
  overflow: hidden;
}

/* --- Ken Burns Slideshow --- */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/*
 * Slideshow uses JS-driven inline transforms + CSS transitions.
 * Never use CSS keyframe animations on slides — removing a class
 * snaps the transform back to base, causing a visible jump.
 * Opacity and transform are both transitioned via CSS.
 * JS sets transform inline so it's never yanked away.
 */
.hero__slide {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2s ease, transform 7s ease-in-out;
  will-change: opacity, transform;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide--outgoing {
  opacity: 0;
}

/* Reset state — applied after outgoing fade completes, while invisible */
.hero__slide--reset {
  transition: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(26, 58, 24, 0.72) 0%,
    rgba(45, 90, 39, 0.45) 40%,
    rgba(26, 58, 24, 0.60) 100%
  );
}


.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  max-width: 800px;
}

.hero__logo {
  display: block;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* --- Shimmer Text --- */
.hero__title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.shimmer-text {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(200, 164, 90, 0.9) 50%,
    rgba(255, 255, 255, 1) 65%,
    rgba(255, 255, 255, 1) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

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

/* --- Button Fill Sweep --- */
.btn-sweep {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left 0.4s ease;
}

.btn-accent.btn-sweep::before {
  background: var(--color-accent-hover);
}

.btn-outline.btn-sweep::before {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sweep:hover::before {
  left: 0;
}

/* --- CTA Pulse Glow --- */
.btn-pulse {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 90, 0.5); }
  50%      { box-shadow: 0 0 20px 6px rgba(200, 164, 90, 0.25); }
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.hero__badge svg {
  color: var(--color-accent);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.services::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -30px;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Ccircle cx='50' cy='50' r='45' stroke='%232D5A27' stroke-width='0.5' opacity='0.06'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='%234A7C42' stroke-width='0.5' opacity='0.05'/%3E%3Ccircle cx='50' cy='50' r='15' stroke='%232D5A27' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.services__card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  text-align: center;
  border-top: 3px solid transparent;
}

.services__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--color-primary);
}

.services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-neutral-50);
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  transition: all var(--transition);
}

.services__card:hover .services__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.services__card-title {
  margin-bottom: 0.75rem;
}

.services__card-text {
  color: var(--color-neutral-700);
  font-size: 0.95rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  overflow: hidden;
  background: var(--color-neutral-50);
}

.about .parallax-bg {
  background-image: url('../assets/images/portfolio/project-5.jpg');
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  min-height: 350px;
  box-shadow: var(--shadow-card);
}

.about__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-neutral-100);
  border-radius: var(--border-radius);
  min-height: 350px;
  color: var(--color-neutral-700);
  font-family: var(--font-heading);
  font-weight: 600;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__value svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.about__value strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  font-size: 1.05rem;
}

.about__value span {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
}

.about__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-neutral-50);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.about__trust-badge svg {
  color: var(--color-primary);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--color-neutral-50);
  position: relative;
  overflow: hidden;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 30px;
  right: -20px;
  width: 180px;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cpath d='M80 10 Q90 40 75 65 Q60 85 35 90 Q20 92 15 80 Q10 65 25 50 Q45 30 80 10Z' fill='%232D5A27' opacity='0.04'/%3E%3Cpath d='M70 20 Q78 45 65 60 Q50 78 30 82 Q18 84 15 72 Q12 60 25 48 Q42 32 70 20Z' fill='%234A7C42' opacity='0.03'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

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

.gallery__item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-neutral-200);
  color: var(--color-neutral-700);
  min-height: 200px;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 24, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.gallery__overlay small {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.cta-banner .parallax-bg {
  background-image: url('../assets/images/portfolio/project-1.jpg');
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 58, 24, 0.78);
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.cta-banner__text h3 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-banner__text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

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

.cta-banner__leaf {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  pointer-events: none;
}

.cta-banner__leaf--left {
  left: 2%;
}

.cta-banner__leaf--right {
  right: 2%;
}

@media (min-width: 1024px) {
  .cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cta-banner__leaf {
    width: 200px;
    height: 200px;
  }
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  background: var(--color-neutral-50);
}

.reviews__wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Arrow buttons */
.reviews__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-neutral-200);
  background: var(--color-white);
  color: var(--color-neutral-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reviews__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
  transform: scale(1.08);
}

.reviews__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.reviews__arrow:disabled:hover {
  background: var(--color-white);
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Track container — hides overflow */
.reviews__track-container {
  overflow: hidden;
  flex: 1;
  border-radius: var(--border-radius);
}

/* Track — slides horizontally */
.reviews__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Review card */
.reviews__card {
  flex: 0 0 100%;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-neutral-200);
  border-left: 4px solid var(--color-primary);
  transition: all var(--transition);
}

.reviews__card:hover {
  box-shadow: var(--shadow-card-hover);
}

.reviews__card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.reviews__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.reviews__name {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  font-size: 1.05rem;
}

.reviews__location {
  font-size: 0.85rem;
  color: var(--color-neutral-700);
}

.reviews__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.reviews__card-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-neutral-900);
}

.reviews__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-neutral-700);
  font-style: italic;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

.reviews__service {
  display: inline-block;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: linear-gradient(180deg, var(--color-white) 0%, #f4f9f3 60%, #eaf3e8 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -40px;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cpath d='M170 180 C150 120 100 80 50 60 C30 52 15 55 10 70 C5 85 15 100 30 110 C50 122 80 125 110 140 C135 152 155 168 170 180Z' fill='%232D5A27' opacity='0.04'/%3E%3Cpath d='M180 160 C165 110 130 75 85 55 C65 47 50 52 45 65 C40 78 48 92 65 100 C85 110 115 118 140 135 C158 147 172 158 180 160Z' fill='%234A7C42' opacity='0.03'/%3E%3Cpath d='M160 195 Q120 160 80 150 Q50 143 35 155 Q25 165 35 178 Q50 192 90 190 Q130 188 160 195Z' fill='%232D5A27' opacity='0.035'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact__form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-neutral-900);
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-neutral-900);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.contact__form-group input.error,
.contact__form-group textarea.error {
  border-color: var(--color-error);
}

.contact__form-group .error-message {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.contact__submit {
  justify-self: start;
}

.contact__form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #E8F5E9;
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-weight: 600;
  grid-column: 1 / -1;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.contact__info-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
}

.contact__info-item a {
  color: var(--color-primary);
}

.contact__info-item a:hover {
  color: var(--color-accent);
}

.contact__info-item small {
  display: block;
  color: var(--color-neutral-700);
  font-size: 0.85rem;
}

.contact__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-neutral-100);
  border-radius: var(--border-radius);
  min-height: 200px;
  color: var(--color-neutral-700);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer__brand svg {
  color: var(--color-accent);
}

.footer__logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links li + li {
  margin-top: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.footer__credit a {
  color: var(--color-accent);
}

.footer__credit a:hover {
  color: var(--color-white);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox__title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev {
  left: -60px;
}

.lightbox__nav--next {
  right: -60px;
}

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

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader__logo {
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.preloader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.preloader__text {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   ACTIVE NAV LINK
   ============================================ */
.header__nav-link--active {
  color: var(--color-accent) !important;
}

.scrolled .header__nav-link--active {
  color: var(--color-primary) !important;
}

/* ============================================
   STAGGERED CARD ENTRANCE
   ============================================ */
.services__card[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

.services__card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   3D TILT ON SERVICE CARDS
   ============================================ */
.services__card {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* ============================================
   FOOTER REVEAL
   ============================================ */
.footer--reveal {
  position: sticky;
  bottom: 0;
  z-index: -1;
}

.contact {
  position: relative;
  z-index: 1;
}

/* ============================================
   BLUR-UP LAZY LOADING
   ============================================ */
.blur-up {
  filter: blur(15px);
  transition: filter 0.8s ease;
}

.blur-up.loaded {
  filter: blur(0);
}

/* ============================================
   GALLERY FILTERS
   ============================================ */
.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery__filter {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-neutral-200);
  border-radius: 50px;
  background: var(--color-white);
  color: var(--color-neutral-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery__filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gallery__filter--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery__item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery__item--hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

/* ============================================
   TYPED SUBTITLE
   ============================================ */
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats {
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
}

/*
 * Parallax background element.
 * Sized 120% wide x 300% tall and centered, so JS translateY
 * can shift it up/down without ever exposing edges.
 * The parent section MUST have overflow:hidden and position:relative.
 */
.parallax-bg {
  position: absolute;
  top: -100%;
  left: -10%;
  width: 120%;
  height: 300%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.stats .parallax-bg {
  background-image: url('../assets/images/portfolio/project-4.jpg');
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 58, 24, 0.8);
}

.stats__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-white);
}

.stats__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stats__item svg {
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stats__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stats__plus {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stats__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   HOW IT WORKS / PROCESS
   ============================================ */
.process {
  background: var(--color-white);
}

.process__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.process__step {
  text-align: center;
  max-width: 260px;
  position: relative;
}

.process__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process__step:hover .process__number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

.process__step-title {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.process__step-text {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
  line-height: 1.6;
}

.process__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  margin: 0.5rem auto;
  border-radius: 1px;
}


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9997;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

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

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

/* ============================================
   DEMO PROTECTION
   ============================================ */

/* Fixed bottom banner */
.demo-watermark {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 58, 24, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  text-align: center;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  user-select: none;
  -webkit-user-select: none;
}

.demo-watermark__divider {
  opacity: 0.4;
  font-weight: 400;
}

/* Repeating diagonal watermark across the page */
.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 180px,
      rgba(45, 90, 39, 0.03) 180px,
      rgba(45, 90, 39, 0.03) 181px
    );
  background-size: 100% 100%;
  overflow: hidden;
}

.demo-overlay::before {
  content: 'DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design    DEMO — BH Web Design';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vmax;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(45, 90, 39, 0.045);
  white-space: nowrap;
  line-height: 8;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Expired state */
.demo-expired {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  text-align: center;
  padding: 2rem;
}

.demo-expired h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.demo-expired p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 400px;
}

/* ============================================
   RESPONSIVE — Mobile (<768px)
   ============================================ */
@media (max-width: 767px) {
  /* Reduce section padding on mobile */
  :root {
    --section-padding: 3rem 1.25rem;
  }


  /* Larger hamburger touch target */
  .header__hamburger {
    padding: 0.75rem;
  }

  /* Nav menu constrained to viewport */
  .header__nav {
    width: min(280px, 85vw);
  }

  /* Nav links bigger touch targets */
  .header__nav-link {
    padding: 1rem 0;
    font-size: 1rem;
  }

  /* Gallery: reset tall items, single column on very small screens */
  .gallery__item--tall {
    grid-row: unset;
  }

  /* Gallery filter tabs smaller */
  .gallery__filter {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Lightbox: move nav buttons on-screen */
  .lightbox__nav--prev {
    left: 5px;
  }

  .lightbox__nav--next {
    right: 5px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
  }

  .lightbox__content {
    max-width: 95vw;
    padding: 0.5rem;
  }

  .lightbox__img {
    max-width: 95vw;
    max-height: 85vh;
  }

  /* Process steps full width */
  .process__step {
    max-width: 100%;
  }

  /* About photo smaller min height */
  .about__photo,
  .about__image-placeholder {
    min-height: 280px;
  }

  /* Contact form inputs larger touch targets */
  .contact__form-group input,
  .contact__form-group select,
  .contact__form-group textarea {
    padding: 1rem 1.25rem;
  }

  /* Back to top adjusted for watermark */
  .back-to-top {
    bottom: 4rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  /* Demo watermark smaller on mobile */
  .demo-watermark {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  /* CTA banner text responsive */
  .cta-banner__text p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  }

  /* Review arrows slightly larger */
  .reviews__arrow {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

  .contact__form-group--full {
    grid-column: 1 / -1;
  }

  .contact__submit {
    grid-column: 1 / -1;
  }

  /* Reviews — 2 cards visible */
  .reviews__card {
    flex: 0 0 calc(50% - 0.75rem);
  }

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

  .stats__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .process__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .process__connector {
    width: 60px;
    height: 2px;
    margin: 28px 0 0;
    flex-shrink: 0;
  }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }

}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  /* Header desktop nav */
  .header__hamburger {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .header__nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-bottom: none;
  }

  .scrolled .header__nav-link {
    color: var(--color-neutral-700);
  }

  .scrolled .header__nav-link:hover {
    color: var(--color-primary);
  }

  .header__cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }

  /* Services 3 columns */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery 4 columns */
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Reviews — 3 cards visible */
  .reviews__card {
    flex: 0 0 calc(33.333% - 1rem);
  }

  /* Footer 4 columns */
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
