:root {
  --bg: #f5efe4;
  --surface: #fffdf8;
  --surface-2: #efe4d2;
  --ink: #1f2f2a;
  --muted: #4d5f58;
  --brand: #9a6132;
  --brand-dark: #774a25;
  --line: rgba(31, 47, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 92% 12%, rgba(154, 97, 50, 0.14) 0%, rgba(154, 97, 50, 0) 30%),
    var(--bg);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

main section h2 {
  color: #7a2e1b !important;
  display: inline-block;
  background: #ffe7c9 !important;
  border: 1px solid rgba(122, 46, 27, 0.35) !important;
  border-radius: 999px;
  padding: 0.28rem 0.9rem !important;
}

main section h3 {
  color: #1d4f82;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.top-carousel {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #e7d7bf;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
}

.carousel-slide.is-active {
  display: block;
}

.slide-image {
  width: 100%;
  height: clamp(210px, 50vw, 340px) !important;
  background: #20322b;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.top-carousel .carousel-slide:nth-child(1) .slide-image img {
  object-position: center 28% !important;
}

.top-carousel .carousel-slide:nth-child(5) .slide-image img {
  object-position: center 18% !important;
}

.slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #232323;
  font-size: 1.2rem;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 0.55rem;
}

.carousel-btn.next {
  right: 0.55rem;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

@media (max-width: 640px) {
  .slide-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .slide-image img {
    object-fit: cover;
    background: #20322b;
  }

  .top-carousel .carousel-slide:nth-child(5) .slide-image img {
    object-position: center 14% !important;
  }

  .slide-caption {
    bottom: 0.6rem;
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(17, 59, 95, 0.95);
  border-bottom: 1px solid rgba(173, 212, 245, 0.34);
}

.site-header .brand,
.site-header .menu-btn,
.site-header .nav a {
  color: #ecf6ff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.menu-btn {
  min-width: 46px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 0.65rem;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 70px;
  right: 4%;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
}

.nav.open {
  display: flex;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem;
}

.hero {
  padding: 3rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.65rem 1.05rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  color: var(--ink);
  border: 1px solid var(--line);
}

.info-card {
  background: linear-gradient(155deg, #2f5a4a, #487867);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 1.2rem;
  color: #eef7f3;
  box-shadow: 0 14px 28px rgba(47, 90, 74, 0.28);
}

.info-card h2 {
  color: #ffffff;
}

.info-card strong {
  color: #d3efe3;
}

.info-card .muted {
  color: #f3d6ac;
}

.snapshot-flip {
  perspective: 1200px;
  min-height: 310px;
}

.snapshot-flip-inner {
  position: relative;
  width: 100%;
  min-height: 310px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.snapshot-flip.is-flipped .snapshot-flip-inner {
  transform: rotateY(180deg);
}

.snapshot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.snapshot-front {
  grid-template-columns: 1fr;
  text-align: center;
}

.snapshot-back {
  transform: rotateY(180deg);
}

.snapshot-photo {
  border-radius: 10px;
  min-height: 130px;
  overflow: hidden;
}

.snapshot-photo.sp1 {
  background: linear-gradient(130deg, #8d5932, #b88454);
}

.snapshot-photo img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.snapshot-copy p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.snapshot-label {
  letter-spacing: 0.04em;
}

.snapshot-name {
  font-size: 1.03rem;
  font-weight: 700;
  color: #ffffff;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2.3rem 0;
}

.section-intro {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  max-width: 760px;
}

.services-section {
  background:
    repeating-linear-gradient(
      135deg,
      #10345a 0 120px,
      #123b63 120px 240px
    );
  border-top: 1px solid rgba(142, 188, 237, 0.32);
  border-bottom: 1px solid rgba(142, 188, 237, 0.32);
}

.services-section h2 {
  color: #d9ecff;
  display: inline-block;
  background: rgba(217, 236, 255, 0.12);
  border: 1px solid rgba(142, 188, 237, 0.5);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
}

.services-section .card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 52, 90, 0.28);
  box-shadow: 0 10px 22px rgba(5, 18, 34, 0.28);
}

.services-section .card:nth-child(even) {
  background: rgba(225, 240, 255, 0.96);
  border-color: rgba(29, 79, 130, 0.34);
}

.services-section .section-intro {
  color: #d7e9fb;
}

.service-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.service-media {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
}

.snapshot-photo img,
.about-photo img,
.cert-card img,
.slide-image img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#blog {
  background: linear-gradient(180deg, #f6ede5, #efdfd2);
  border-top: 1px solid rgba(133, 95, 66, 0.24);
  border-bottom: 1px solid rgba(133, 95, 66, 0.24);
}

#faq {
  background: linear-gradient(180deg, #eceff5, #e2e7f0);
  border-top: 1px solid rgba(72, 89, 116, 0.24);
  border-bottom: 1px solid rgba(72, 89, 116, 0.24);
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1rem;
}

.video-testimonial video {
  width: min(360px, 100%);
  height: 260px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  display: block;
  background: #000;
  margin-top: 0.45rem;
}

.map-card {
  margin-top: 1rem;
  background: #f3f4f6;
  border: 1px solid rgba(84, 94, 106, 0.24);
}

.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 10px;
  display: block;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: #2d3b36;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 47, 42, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-card {
  background: #f3f4f6;
  border: 1px solid rgba(84, 94, 106, 0.24);
}

.contact-lines {
  display: grid;
  gap: 0.7rem;
}

.contact-lines p {
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(84, 94, 106, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}

.contact-lines strong {
  color: #2f3d4d;
}

#contact {
  background: linear-gradient(180deg, #d9dde3, #cfd5dd) !important;
  border-top: 1px solid rgba(84, 94, 106, 0.3) !important;
  border-bottom: 1px solid rgba(84, 94, 106, 0.3) !important;
}

#contact .card {
  background: #eef1f5 !important;
  border: 1px solid rgba(84, 94, 106, 0.28) !important;
}

#contact h2,
#contact .map-card h3 {
  color: #7a2e1b;
  display: inline-block;
  background: #ffe7c9 !important;
  border: 1px solid rgba(122, 46, 27, 0.35) !important;
  border-radius: 999px;
  padding: 0.28rem 0.9rem !important;
}

#contact .map-card h3 {
  color: #5b2e6d !important;
  background: #f3e6ff !important;
  border: 1px solid rgba(91, 46, 109, 0.34) !important;
}

#contact .contact-card h3 {
  color: #5b2e6d !important;
  display: inline-block;
  background: #f3e6ff !important;
  border: 1px solid rgba(91, 46, 109, 0.34) !important;
  border-radius: 999px;
  padding: 0.28rem 0.9rem !important;
}

#contact .cards.two > .card:nth-child(2) h3 {
  color: #5b2e6d !important;
  display: inline-block;
  background: #f3e6ff !important;
  border: 1px solid rgba(91, 46, 109, 0.34) !important;
  border-radius: 999px;
  padding: 0.28rem 0.9rem !important;
}

#contact .cards.two > .card:nth-child(1),
#contact .cards.two > .card:nth-child(2) {
  background: #f9e8de !important;
  border: 1px solid rgba(107, 47, 18, 0.24) !important;
}

#contact .map-card,
#contact .contact-card {
  background: #e7ebf0 !important;
}

#contact .contact-lines p {
  background: #f9fafb !important;
  border-color: rgba(84, 94, 106, 0.3) !important;
}

.about-layout {
  display: grid;
  gap: 1rem;
}

.about-media {
  background: linear-gradient(155deg, #fffdf8, #f6ece0);
  text-align: center;
}

.about-content {
  background: #fffdf9;
}

.about-photo {
  width: 100%;
  max-width: 220px;
  min-height: 150px;
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: linear-gradient(130deg, #8d5932, #b88454);
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.about-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-media h3,
.about-content h3 {
  margin-bottom: 0.6rem;
}

.about-more-btn {
  margin-top: 0.4rem;
  display: inline-block;
  cursor: pointer;
  list-style: none;
}

.about-more-content {
  display: block;
  margin-top: 0.9rem;
}

.about-more-content summary::-webkit-details-marker {
  display: none;
}

.about-more-body {
  display: none;
}

.about-more-content[open] .about-more-btn {
  margin-bottom: 0.8rem;
}

.about-more-content[open] .about-more-body {
  display: block;
}

.certificate-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.certificate-gallery {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.cert-card {
  background: #fff9f0;
  border: 1px solid rgba(154, 97, 50, 0.22);
  border-radius: 10px;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 1rem 2.6rem 1rem 1rem;
  position: relative;
  background: #fffaf2;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background: rgba(154, 97, 50, 0.08);
}

.faq-item[open] summary {
  background: #f3e4cf;
  border-bottom: 1px solid rgba(154, 97, 50, 0.25);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  background: #ffffff;
  color: #2d3b36;
}

.quote p {
  font-style: italic;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 860px) {
  .slide-image {
    height: 360px !important;
  }

  .menu-btn {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero {
    padding: 4.2rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 0.62fr 1.38fr;
    align-items: stretch;
  }

  .certificate-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-card iframe {
    height: 380px;
  }
}
