/* ============================================================================
   AUBURY & CO — SECTIONS
   Page section and layout patterns
   ============================================================================ */

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

.container-fluid {
  max-width: 100%;
  padding: 0;
}

/* SECTION */
.section {
  padding: var(--space-20) var(--space-8);
}

.section-sm {
  padding: var(--space-12) var(--space-8);
}

.section-lg {
  padding: var(--space-32) var(--space-8);
}

.section-xl {
  padding: var(--space-32) var(--space-8);
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-12) var(--space-6);
  }

  .section-sm {
    padding: var(--space-8) var(--space-6);
  }

  .section-lg,
  .section-xl {
    padding: var(--space-16) var(--space-6);
  }
}

/* SECTION BACKGROUND PATTERNS */
.section-white {
  background: var(--warm-white);
  color: var(--charcoal);
}

.section-cream {
  background: var(--cream);
  color: var(--charcoal);
}

.section-linen {
  background: var(--linen);
  color: var(--charcoal);
}

.section-dark {
  background: var(--forest-deep);
  color: var(--light-text);
}

.section-accent {
  background: linear-gradient(135deg, var(--sage) 0%, #95b496 100%);
  color: var(--ink);
}

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

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--light-text);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="rgba(0,0,0,0.3)" width="1200" height="800"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg {
  /* Overscan the hero image so GSAP yPercent parallax (up to -15% desktop, -8% mobile)
     never exposes bare frame at the top or bottom of the hero.
     Generous -50% cushion guarantees coverage through the full scroll range. */
  position: absolute;
  top: -50%;
  left: 0;
  right: 0;
  bottom: -50%;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  animation: fadeInUp 1.2s ease-out;
}

.hero-brand {
  font-family: var(--serif);
  font-size: var(--text-6xl);
  font-size: clamp(var(--text-5xl), 10vw, var(--text-6xl));
  font-weight: var(--weight-400);
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.hero-brand-and {
  display: block;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-style: italic;
  font-weight: var(--weight-300);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.hero-tagline {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-400);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
  opacity: 0.95;
  line-height: var(--leading-normal);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll-icon {
  font-size: var(--text-3xl);
  color: var(--light-text);
}

/* ============================================================================
   CONTENT SECTIONS
   ============================================================================ */

.section-content {
  max-width: 700px;
  margin: 0 auto;
}

.section-content p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--charcoal);
}

.section-content-dark p,
.section-dark .section-content p {
  color: var(--light-text);
}

/* SPLIT LAYOUT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.split-content h2 {
  margin-bottom: var(--space-6);
}

.split-content p {
  margin-bottom: var(--space-4);
}

.split-content .btn {
  margin-top: var(--space-6);
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

/* ============================================================================
   FULL-BLEED IMAGE DIVIDER
   ============================================================================ */

.image-divider {
  position: relative;
  width: 100%;
  height: 60vh;
  margin: var(--space-12) 0;
  overflow: hidden;
  background: var(--linen);
}

@media (max-width: 768px) {
  .image-divider {
    height: 40vh;
  }
  .image-divider-text {
    font-size: var(--text-3xl);
    letter-spacing: var(--tracking-wider);
  }
}

.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.image-divider-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
  overflow: hidden;
}

.image-divider-text {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 10rem);
  color: rgba(247, 245, 240, 0.12);
  font-weight: var(--weight-400);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* ============================================================================
   PARALLAX IMAGE (SCROLL TRIGGERED)
   ============================================================================ */

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* ============================================================================
   THREE-COLUMN IMAGE STRIP
   ============================================================================ */

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: var(--space-12) 0;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .image-strip {
    grid-template-columns: 1fr;
  }
  .image-strip-item {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.image-strip-item {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.image-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* ============================================================================
   SERVICES/FEATURES GRID
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-10);
  margin: var(--space-12) 0;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.service-title {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-400);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.service-description {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

/* ============================================================================
   PROJECT GRID
   ============================================================================ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 45, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
  padding: var(--space-8);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-name {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-400);
  color: var(--light-text);
  text-align: center;
  letter-spacing: var(--tracking-widest);
}

.project-view {
  color: var(--sage);
  font-weight: var(--weight-600);
  text-decoration: none;
  border-bottom: 2px solid var(--sage);
  padding-bottom: 4px;
  transition: all var(--transition-base);
}

.project-view:hover {
  color: var(--light-text);
  border-color: var(--light-text);
}

/* ============================================================================
   ABOUT PREVIEW SECTION
   ============================================================================ */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin: var(--space-12) 0;
}

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

.about-preview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-preview-content h2 {
  margin-bottom: var(--space-6);
}

.about-preview-content p {
  margin-bottom: var(--space-4);
}

.about-preview-content .btn {
  margin-top: var(--space-6);
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */

.testimonials-section {
  max-width: 800px;
  margin: var(--space-12) auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.testimonial-card {
  background: var(--warm-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--sage);
}

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

.testimonial-text {
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.testimonial-author {
  font-weight: var(--weight-600);
  margin-bottom: var(--space-1);
}

.testimonial-title {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--light-text);
  padding: var(--space-20) var(--space-8);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-16) 0;
}

.cta-section h2 {
  color: var(--light-text);
  margin-bottom: var(--space-6);
}

.cta-section-content {
  max-width: 600px;
  margin: 0 auto var(--space-10);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.cta-section-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.cta-contact-item {
  font-size: var(--text-lg);
}

.cta-contact-item a {
  color: var(--sage);
  text-decoration: none;
  font-weight: var(--weight-600);
  transition: color var(--transition-base);
}

.cta-contact-item a:hover {
  color: var(--light-text);
  text-decoration: none;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .split {
    gap: var(--space-6);
  }

  .split-content h2 {
    margin-bottom: var(--space-4);
  }

  .services-grid {
    gap: var(--space-6);
  }

  .project-grid {
    gap: var(--space-6);
  }

  .image-strip {
    gap: 0;
  }

  .image-strip-item {
    height: 250px;
  }
}
