:root {
  --cream: #f3e5c4;
  --cream-deep: #ead3a2;
  --mustard: #c9942e;
  --brick: #a94f3f;
  --brick-dark: #783628;
  --teal: #2f7771;
  --teal-dark: #1f4f4c;
  --ink: #2d2018;
  --muted: #735f4c;
  --paper: rgba(255, 248, 226, 0.9);
  --shadow: 0 18px 45px rgba(54, 32, 20, 0.22);
  --border: 2px solid rgba(120, 54, 40, 0.25);
  --radius: 22px;
  --hero-padding: 9rem 1.25rem 5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 148, 46, 0.22), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(47, 119, 113, 0.2), transparent 34rem),
    linear-gradient(135deg, #f3e5c4 0%, #ead3a2 100%);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background:
    radial-gradient(circle, transparent 50%, rgba(41, 27, 19, 0.18) 100%),
    repeating-linear-gradient(0deg, rgba(80, 55, 32, 0.035), rgba(80, 55, 32, 0.035) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(243, 229, 196, 0.86);
  border-bottom: var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Lobster", cursive;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--brick-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.primary-nav a,
.footer-nav a,
.hero-links a {
  border: var(--border);
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.78);
  color: var(--brick-dark);
  padding: 0.6rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.hero-links a:hover,
.hero-links a:focus-visible {
  transform: translateY(-2px);
  background: var(--teal);
  color: var(--cream);
  outline: none;
}

.menu-toggle {
  display: none;
  border: var(--border);
  background: var(--mustard);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
}

.section-panel {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--hero-padding);
  background:
    linear-gradient(rgba(45, 32, 24, 0.52), rgba(45, 32, 24, 0.45)),
    url("images/image_11.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(243, 229, 196, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(169, 79, 63, 0.18), rgba(47, 119, 113, 0.16));
  animation: softPan 14s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-overlay {
  width: min(980px, 100%);
  text-align: center;
  background: rgba(243, 229, 196, 0.88);
  border: 3px double rgba(120, 54, 40, 0.48);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  box-shadow: var(--shadow);
}

.eyebrow,
.badge-label,
.mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  border: 1px solid rgba(120, 54, 40, 0.36);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brick-dark);
  font-family: "Abril Fatface", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(2.5rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  max-width: 980px;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

h4 {
  margin: 0 0 0.6rem;
  color: var(--teal-dark);
  font-family: "Abril Fatface", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.hero p,
.section-copy p,
.step-card p,
.slide-copy p,
.gallery-copy p,
.brief-card p,
.map-copy p,
.faq-answer p,
.site-footer p,
.testimonial-slide blockquote {
  font-size: 1rem;
}

.hero p {
  max-width: 850px;
  margin: 1rem auto 0;
}

.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.section-copy {
  width: min(1120px, 100%);
  margin: 0 auto 2rem;
}

.section-copy p {
  max-width: 980px;
}

.process,
.gallery {
  background:
    linear-gradient(rgba(243, 229, 196, 0.72), rgba(234, 211, 162, 0.82)),
    repeating-linear-gradient(45deg, rgba(169, 79, 63, 0.035), rgba(169, 79, 63, 0.035) 2px, transparent 2px, transparent 10px);
}

.proof,
.cta,
.faq {
  background:
    radial-gradient(circle at top right, rgba(47, 119, 113, 0.17), transparent 32rem),
    radial-gradient(circle at bottom left, rgba(169, 79, 63, 0.16), transparent 30rem);
}

.step-grid,
.gallery-grid {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.step-card,
.gallery-card,
.brief-card,
.map-card,
.carousel-block,
.faq-tabs {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-card {
  padding: 1.25rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 119, 113, 0.14);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.step-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.step-card li + li {
  margin-top: 0.45rem;
}

.carousel-block {
  width: min(1180px, 100%);
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.carousel-block h3 {
  margin-bottom: 1rem;
  text-align: center;
}

.carousel-shell {
  position: relative;
}

.carousel-window {
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
}

.carousel-track {
  display: flex;
  transition: transform 450ms ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
}

.case-slide {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: rgba(255, 248, 226, 0.78);
  border: 1px solid rgba(120, 54, 40, 0.18);
}

.case-slide img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: sepia(0.22) saturate(0.86) contrast(0.94);
}

.slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  border: 2px solid rgba(120, 54, 40, 0.38);
  background: var(--brick);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(45, 32, 24, 0.25);
  transition: background 180ms ease, transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--teal);
  transform: translateY(-50%) scale(1.04);
  outline: none;
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.testimonial-slide {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 8vw, 7rem);
  background: rgba(255, 248, 226, 0.8);
}

.testimonial-slide img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream-deep);
  filter: sepia(0.18) saturate(0.82);
}

.testimonial-slide blockquote {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.quote-name {
  margin: 0;
  color: var(--brick-dark);
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--brick-dark);
  background: var(--cream);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--teal);
}

.filter-bar {
  width: min(1180px, 100%);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-button,
.tab-button,
.faq-question {
  border: var(--border);
  background: rgba(255, 248, 226, 0.86);
  color: var(--brick-dark);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active,
.tab-button:hover,
.tab-button:focus-visible,
.tab-button.active {
  background: var(--teal);
  color: var(--cream);
  transform: translateY(-2px);
  outline: none;
}

.gallery-card {
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-card.hide {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.25) saturate(0.82) contrast(0.94);
}

.gallery-copy {
  padding: 1.15rem;
}

.cta-layout {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.brief-card,
.map-card {
  padding: 1.25rem;
}

.brief-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.brief-list p {
  margin: 0;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(201, 148, 46, 0.16);
  border: 1px solid rgba(120, 54, 40, 0.18);
}

.map-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.map-card img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  filter: sepia(0.28) saturate(0.78) contrast(0.92);
}

.faq-tabs {
  width: min(980px, 100%);
  margin: 2rem auto 0;
  padding: 1rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.faq-item {
  border-top: 1px solid rgba(120, 54, 40, 0.22);
  padding: 0.8rem 0;
}

.faq-item:first-child {
  border-top: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  border-radius: 16px;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: var(--mustard);
  color: var(--ink);
  outline: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: max-height 260ms ease, opacity 260ms ease, padding 260ms ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
  opacity: 1;
  padding: 0.75rem 0.6rem 0;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 4rem);
  background: var(--brick-dark);
  color: var(--cream);
  text-align: center;
}

.site-footer p {
  max-width: 920px;
  margin: 0 auto 1.2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-nav a {
  background: rgba(243, 229, 196, 0.12);
  color: var(--cream);
  border-color: rgba(243, 229, 196, 0.32);
}

@keyframes softPan {
  0% {
    opacity: 1;.72;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    width: min(320px, calc(100vw - 2rem));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: var(--border);
    border-radius: 20px;
    background: rgba(243, 229, 196, 0.96);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    text-align: center;
  }

  .step-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .case-slide,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .case-slide img {
    min-height: 260px;
  }

  .carousel-control {
    top: auto;
    bottom: 0.65rem;
    transform: none;
  }

  .carousel-control:hover,
  .carousel-control:focus-visible {
    transform: scale(1.04);
  }

  .carousel-control.prev {
    left: 0.65rem;
  }

  .carousel-control.next {
    right: 0.65rem;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-padding: 7.5rem 0.85rem 3rem;
  }

  .site-header {
    padding: 0.75rem 0.85rem;
  }

  .brand {
    font-size: 1.45rem;
  }

  .section-panel {
    padding: 3.25rem 0.85rem;
  }

  .hero-overlay {
    border-radius: 24px;
  }

  .hero-links {
    flex-direction: column;
  }

  .hero-links a {
    width: 100%;
    text-align: center;
  }

  .testimonial-slide {
    padding: 2rem 1rem 4.5rem;
  }

  .tab-buttons,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .tab-button,
  .filter-button {
    width: 100%;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Missing animation classes from JS */
.scroll-progress {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-progress.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
