:root {
  --bg: #faf9f7;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e4df;
  --soft: #f3f1ed;
  --primary: #1a1a1a;
  --accent: #c9a962;
  --accent-dark: #a88b4a;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --nav-height: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

html, body { height: 100%; }

body.site {
  font-family: "Assistant", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Bootstrap overrides */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #333;
  --bs-btn-hover-border-color: #333;
  --bs-btn-active-bg: #333;
  --bs-btn-active-border-color: #333;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.is-active {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -999px;
  right: 12px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus { top: 12px; }

/* Navbar */
.navbar {
  min-height: var(--nav-height);
  transition: box-shadow 0.25s, background 0.25s;
}

.navbar.is-scrolled {
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--ink) !important;
}

.navbar-brand__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.navbar-brand__tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--soft);
}

.section__title {
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.card-soft {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
  height: 100%;
}

.mini__title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  background: url("../img/hero-opt.jpg") center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.82) 0%,
    rgba(26, 26, 26, 0.45) 55%,
    rgba(26, 26, 26, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  padding: 80px 12px;
  max-width: 720px;
}

.hero__kicker {
  margin: 0 0 14px 0;
  opacity: 0.92;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero .lead {
  opacity: 0.92;
  font-size: 1.15rem;
  max-width: 540px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat-value {
  font-weight: 800;
  font-size: 1.1rem;
  display: block;
}

.hero__stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 169, 98, 0.15);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card__title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 20px 18px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.process-step__title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.process-step__text {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.map { height: 460px; }

/* Gallery */
.gallery-category {
  margin-bottom: 8px;
}

.gallery-category__title {
  font-weight: 800;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  background: #f0f0f0;
  transition: filter 300ms ease, opacity 300ms ease, transform 0.3s;
}

.gallery-img.lazy { filter: blur(6px); opacity: 0.9; }
.gallery-img.loaded { filter: none; opacity: 1; }

.carousel .gallery-img { height: 420px; }

.carousel .gallery-img:hover {
  transform: scale(1.01);
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.6);
  opacity: 1;
  margin: 0 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 992px) {
  .carousel .gallery-img { height: 320px; }
}

@media (max-width: 576px) {
  .section { padding: 56px 0; }
  .hero { min-height: 70vh; }
  .gallery-img { height: 160px; }
  .carousel .gallery-img { height: 220px; }
  .map { height: 380px; }
  .hero__stats { gap: 16px; }
}

/* Contact */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
}

.footer__tagline {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* Floating buttons */
.fab-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9998;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, filter 0.2s;
}

.fab-whatsapp:hover {
  color: #fff;
  transform: scale(1.04);
  filter: brightness(0.95);
}

.fab-whatsapp__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  display: inline-block;
}

.fab-a11y {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.18);
}

/* Accessibility menu */
.a11y-menu {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.20);
  z-index: 10000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.a11y-menu__header {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-menu__body { padding: 12px; }

.a11y-toggle {
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.a11y-toggle.is-on {
  border-color: rgba(201, 169, 98, 0.5);
  background: rgba(201, 169, 98, 0.1);
}

body.a11y-font-level-1 { font-size: 110%; }
body.a11y-font-level-2 { font-size: 120%; }
body.a11y-font-level-3 { font-size: 130%; }
body.a11y-font-level-4 { font-size: 140%; }
body.a11y-font-level-5 { font-size: 150%; }
body.a11y-font-level-6 { font-size: 160%; }
body.a11y-font-level-7 { font-size: 170%; }
body.a11y-font-level-8 { font-size: 180%; }
body.a11y-font-level-9 { font-size: 190%; }

.a11y-font-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.a11y-font-btn {
  padding: 8px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.a11y-font-btn:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 98, 0.08);
}

.a11y-font-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--accent);
}

body.a11y-contrast {
  background: #000;
  color: #fff;
}

body.a11y-contrast .navbar,
body.a11y-contrast .footer,
body.a11y-contrast .card,
body.a11y-contrast .card-soft,
body.a11y-contrast .mini,
body.a11y-contrast .service-card,
body.a11y-contrast .process-step,
body.a11y-contrast .map-wrap {
  background: #000 !important;
  color: #fff !important;
  border-color: #2b2b2b !important;
}

body.a11y-contrast a { color: #93c5fd; }

body.a11y-underline a { text-decoration: underline !important; }
body.a11y-spacing { letter-spacing: 0.4px; line-height: 1.7; }
body.a11y-grayscale { filter: grayscale(1); }

body.a11y-reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* FAQ */
.faq {
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: var(--radius);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
  --bs-accordion-active-bg: var(--soft);
  --bs-accordion-active-color: var(--ink);
}

.faq .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
}

.faq .accordion-body {
  color: var(--muted);
  line-height: 1.8;
}

/* Planning article */
.planning-copy p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.planning-copy a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.planning-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.planning-photos figure {
  margin: 0;
}

.planning-photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .planning-photos {
    grid-template-columns: 1fr;
  }
}
