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

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== Section Label Style ===== */
.section-label {
  position: relative;
  padding-left: 2rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 2px;
  background: #B8652A;
}

/* ===== Navbar ===== */
nav {
  background: transparent;
}
nav.scrolled {
  background: rgba(26, 22, 20, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
nav.scrolled .nav-logo {
  color: #F5F0EB;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #B8652A;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #D4913A;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-nav-link:hover {
  color: #B8652A;
  padding-left: 0.5rem;
}

/* ===== Hero ===== */
.hero-bg {
  transition: transform 8s ease;
}
#hero_1:hover .hero-bg {
  transform: scale(1.03);
}

/* ===== About Letter ===== */
.about-letter {
  position: relative;
}
.about-letter::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  font-size: 8rem;
  font-family: 'Bitter', serif;
  color: rgba(184, 101, 42, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* ===== Stat Card ===== */
.stat-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(44, 36, 32, 0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.stat-value {
  font-family: 'Bitter', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #B8652A;
  line-height: 1;
}
.stat-label {
  color: #8C7E74;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== Stat Icon ===== */
.stat-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(184, 101, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(44, 36, 32, 0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.testimonial-stars svg {
  fill: #B8652A;
  color: #B8652A;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: #F5F0EB;
  border-radius: 0.75rem;
  border: 1px solid rgba(44, 36, 32, 0.06);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(184, 101, 42, 0.2);
}
.faq-item.faq-open {
  border-color: rgba(184, 101, 42, 0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.faq-toggle:hover span {
  color: #B8652A;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== Service Zigzag ===== */
.service-zigzag {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.service-zigzag:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(184, 101, 42, 0.3);
}
.service-zigzag--reverse {
  grid-template-columns: 1fr 280px;
}
.service-zigzag--reverse .service-zigzag__image {
  order: 2;
}
.service-zigzag--reverse .service-zigzag__content {
  order: 1;
}
.service-zigzag__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}
.service-zigzag__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-zigzag:hover .service-zigzag__image img {
  transform: scale(1.06);
}
.service-zigzag__content {
  position: relative;
}
.service-number {
  font-family: 'Bitter', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(184, 101, 42, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.service-zigzag:hover .service-number {
  color: rgba(184, 101, 42, 0.4);
}
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(184, 101, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon i, .service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #D4913A;
}

/* ===== Feature Card ===== */
.feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(44, 36, 32, 0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(184, 101, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.feature-icon i, .feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #B8652A;
}

/* ===== Gallery ===== */
.gallery-card {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.gallery-card:nth-child(1),
.gallery-card:nth-child(4) {
  aspect-ratio: 4/3;
}
.gallery-card:nth-child(2),
.gallery-card:nth-child(3) {
  aspect-ratio: 3/4;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,20,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D4913A;
  margin-bottom: 0.25rem;
}
.gallery-caption {
  color: #fff;
  font-family: 'Bitter', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== Contact Form ===== */
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3B3330;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(44, 36, 32, 0.12);
  border-radius: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #3B3330;
  background: #F5F0EB;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #B8652A;
  box-shadow: 0 0 0 3px rgba(184, 101, 42, 0.1);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: #B8652A;
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: #D4913A;
  transform: translateY(-1px);
}
.form-submit:active {
  transform: translateY(0);
}

/* ===== Scroll to top ===== */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Footer link ===== */
.footer-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
  color: #B8652A;
  padding-left: 4px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Overflow containment for GSAP slide animations ===== */
#about_1,
#services_1,
#features_1,
#gallery_1,
#testimonials_1,
#faq_1,
#contact_1,
#cta_1 {
  overflow-x: hidden;
}

/* ===== Responsive — Tablet & below (768px) ===== */
@media (max-width: 768px) {
  .service-zigzag,
  .service-zigzag--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .service-zigzag--reverse .service-zigzag__image {
    order: 0;
  }
  .service-zigzag--reverse .service-zigzag__content {
    order: 0;
  }
  .service-zigzag__image {
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }
  .service-number {
    font-size: 2.5rem;
  }
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) {
    aspect-ratio: 4/3;
  }
  .about-letter {
    padding: 1.5rem;
  }
  .about-letter::before {
    font-size: 5rem;
    right: 1rem;
  }
}

/* ===== Responsive — Small phones (480px) ===== */
@media (max-width: 480px) {
  .stat-value {
    font-size: 2.25rem;
  }
  .stat-card {
    padding: 1.25rem;
  }
  .service-zigzag {
    padding: 1rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  .gallery-caption {
    font-size: 0.95rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
}

/* ===== Responsive — Very small screens (< 350px) ===== */
@media (max-width: 350px) {
  /* Tighten all container padding */
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl,
  .max-w-3xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Nav */
  nav .h-20 {
    height: 3.5rem;
  }
  .nav-logo {
    font-size: 1.25rem !important;
  }

  /* Hero */
  #hero_1 h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  #hero_1 p {
    font-size: 0.95rem !important;
  }
  #hero_1 .flex {
    flex-direction: column;
  }
  #hero_1 .flex a {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  /* About */
  .about-letter {
    padding: 1rem;
  }
  .about-letter::before {
    display: none;
  }

  /* Stats */
  .stat-value {
    font-size: 2rem;
  }
  .stat-card {
    padding: 1rem;
  }

  /* Services */
  .service-number {
    font-size: 2rem;
  }
  .service-zigzag {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  /* Feature cards */
  .feature-card {
    padding: 1.25rem;
  }

  /* CTA */
  #cta_1 h2 {
    font-size: 1.5rem !important;
  }

  /* Contact */
  #contact_1 .bg-secondary {
    padding: 1.25rem;
  }
  #contact_1 .bg-white {
    padding: 1.25rem;
  }
  #contact_1 a[data-field="email"] {
    word-break: break-all;
  }

  /* Floating buttons closer to edge */
  #scroll-top {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .fixed.bottom-6.left-6 {
    bottom: 0.75rem;
    left: 0.75rem;
    width: 3rem;
    height: 3rem;
  }

  /* Section padding reduction */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}