:root {
  --bg: #ffffff;
  --bg-soft: #faf7fc;
  --ink: #2f1d45;
  --muted: #69557d;
  --line: #e6dced;
  --brand: #5f2f86;
  --brand-strong: #402060;
  --brand-soft: #a070a0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaff 58%, #faf7fc 100%);
  scroll-behavior: smooth;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a:hover {
  color: var(--brand-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 5.3rem 0 4.3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 10% -10%, rgba(95, 47, 134, 0.14), transparent 70%),
    radial-gradient(700px 380px at 90% 10%, rgba(160, 112, 160, 0.14), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.08;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.65rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.78rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 20px rgba(64, 32, 96, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.trust-row {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.33rem 0.62rem;
}

.hero-photo-card {
  border-radius: 20px;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(64, 32, 96, 0.15);
}

.hero-photo-card img {
  object-position: center top;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.83rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  gap: 3rem 2rem;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
}

.about-image-col {
  display: flex;
  justify-content: center;
}

.about-stats {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.mascot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 9px 20px rgba(64, 32, 96, 0.08);
  max-width: 300px;
  width: 100%;
}

.mascot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 1rem 1.1rem;
  box-shadow: 0 9px 20px rgba(2, 46, 76, 0.07);
}

.stat-box strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.2rem;
  margin-bottom: 0.24rem;
}

.stat-box span {
  color: var(--muted);
  font-weight: 500;
}

.service-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(64, 32, 96, 0.08);
}

.service-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.service-card p {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.gallery-grid {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(64, 32, 96, 0.1);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-column: span 5;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  grid-column: span 3;
}

.gallery-item img {
  aspect-ratio: 3 / 4;
  object-position: center;
}

.cta-section {
  padding-top: 2rem;
}

.cta-box {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: var(--white);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 16px 35px rgba(64, 32, 96, 0.3);
}

.cta-box h2,
.cta-box p {
  color: var(--white);
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--brand-strong);
  box-shadow: none;
}

.contact-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr 1fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.contact-list a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 700;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: 0 12px 28px rgba(64, 32, 96, 0.09);
}

.contact-form label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfeff;
  font: inherit;
  padding: 0.66rem 0.74rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(95, 47, 134, 0.25);
  border-color: var(--brand);
}

.contact-form button {
  width: fit-content;
  margin-top: 0.5rem;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f6fbff;
  padding: 1.2rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
}

.footer-wrap a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.process-section {
  padding-top: 2.4rem;
}

.process-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(64, 32, 96, 0.07);
}

.process-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-weight: 700;
}

.process-card h3 {
  margin: 0.8rem 0 0.35rem;
}

.process-card p {
  margin: 0;
}

.why-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.why-list {
  display: grid;
  gap: 0.8rem;
}

.why-item {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  padding: 0.88rem 0.95rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(64, 32, 96, 0.06);
}

.teaser-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.teaser-grid .gallery-item {
  grid-column: span 1 !important;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    min-height: 340px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: auto;
  }

  .main-nav {
    position: absolute;
    right: 4%;
    top: 74px;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 28px rgba(64, 32, 96, 0.15);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #eee;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}

.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.ba-slider-button::before,
.ba-slider-button::after {
  content: '';
  border: solid transparent;
  border-width: 6px;
  position: absolute;
}
.ba-slider-button::before {
  border-right-color: var(--brand);
  left: 6px;
}
.ba-slider-button::after {
  border-left-color: var(--brand);
  right: 6px;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 4;
  pointer-events: none;
}
.ba-label-before {
  left: 16px;
}
.ba-label-after {
  right: 16px;
}
