:root {
  --primary: #111111;
  --secondary: #ffffff;
  --accent: #d6b36a;
  --bg: #f7f7f7;
  --text: #222222;
  --muted: #6c6c6c;
  --border: rgba(17, 17, 17, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
  --container: 1200px;
  --ease: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--secondary);
  padding: 0.7rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
}

.center {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head h2,
h1 {
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-weight: 800;
  margin: 0;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.8rem, 4.9vw, 5.1rem);
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
}

.section-head p,
.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-weight: 600;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #000;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--secondary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--primary);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(8px);
}

.site-header:not(.scrolled) .logo,
.site-header:not(.scrolled) .site-nav a {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-header:not(.scrolled) .mobile-nav-toggle span {
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  font-weight: 500;
  color: #373737;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
}

.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  position: relative;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.45)),
    url("../assets/renders/villa_render.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.8rem;
  align-items: center;
  max-width: 760px;
}

.hero .eyebrow {
  color: #e6c985;
}

.hero h1,
.hero .lead,
.hero .hero-trust li {
  color: #ffffff;
}

.hero h1,
.hero .lead {
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero-copy .lead {
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  gap: 1.2rem;
  margin: 1.5rem 0 0;
}

.hero-trust li {
  font-weight: 500;
  color: #3d3d3d;
  position: relative;
  padding-left: 1.2rem;
}

.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  transform: translateY(var(--parallax-y, 0));
}

.before-after {
  background: radial-gradient(circle at 20% 20%, rgba(214, 179, 106, 0.2), transparent 48%), var(--secondary);
}

.comparison-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}

.comparison-card {
  border-radius: var(--radius-sm);
  background: #fcfcfc;
  border: 1px solid var(--border);
  padding: 0.9rem;
}

.comparison-card::before {
  content: attr(data-label);
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-slider {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  --pos: 50%;
  touch-action: none;
}

.comparison-slider .after,
.comparison-slider .before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-slider .before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--secondary);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25);
}

.slider-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}

.services-grid,
.why-grid,
.testimonial-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.services {
  background: linear-gradient(160deg, #121212 0%, #1b1b1b 100%);
  color: #f2f2f2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services .eyebrow {
  color: #d6b36a;
}

.services .section-head h2 {
  color: #ffffff;
}

.why-grid {
  margin-top: 2rem;
}

.service-card,
.feature-card,
.testimonial-card,
.pricing-card,
.timeline-step,
.accordion-item {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.services .service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 320px;
  padding: 2rem 1.6rem;
  backdrop-filter: blur(3px);
}

.services .service-card h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.services .service-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.75;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.pricing-card:hover,
.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(214, 179, 106, 0.4);
}

.service-card h3,
.feature-card h3,
.pricing-card h3,
.timeline-step h3,
.testimonial-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.masonry-grid {
  columns: 4 260px;
  column-gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  break-inside: avoid;
  cursor: zoom-in;
}

.project-card img {
  width: 100%;
  display: block;
  transform: none;
  transition: transform var(--ease);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  color: var(--secondary);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  display: none;
}

.project-card:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  --lightbox-width: min(76vw, 980px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  max-width: var(--lightbox-width);
  max-height: 74vh;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: calc(50% - (var(--lightbox-width) / 2) - 18px);
}

.lightbox-next {
  left: calc(50% + (var(--lightbox-width) / 2) + 18px);
}

@media (max-width: 900px) {
  .lightbox-nav {
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    left: auto;
    right: 1rem;
  }
}

.video-showcase {
  background: #111;
  color: #f0f0f0;
}

.video-showcase h2,
.video-showcase .eyebrow {
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
  align-items: stretch;
}

.video-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-card img,
.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform var(--ease), filter var(--ease);
}

.video-card:hover img,
.video-card:hover video {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.play-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #111;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.video-card.playing .play-btn {
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 179, 106, 0.5); }
  70% { box-shadow: 0 0 0 22px rgba(214, 179, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 179, 106, 0); }
}

.timeline {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  overflow: visible;
  isolation: isolate;
}

.timeline-step .icon {
  font-weight: 700;
  color: var(--accent);
}

.timeline-step {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.timeline-step:nth-child(1) { z-index: 8; }
.timeline-step:nth-child(2) { z-index: 7; }
.timeline-step:nth-child(3) { z-index: 6; }
.timeline-step:nth-child(4) { z-index: 5; }

.timeline-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -2.05rem;
  transform: translate(50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #1b1b1b;
  color: #f6f6f6;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 60;
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.timeline-step:hover {
  transform: translateY(-3px) scale(1.01);
  z-index: inherit;
}

.testimonial-card blockquote {
  margin: 1rem 0;
  font-size: 1.05rem;
}

.testimonial-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.pricing-card {
  position: relative;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.pricing-card li {
  margin-bottom: 0.55rem;
  padding-left: 1rem;
  position: relative;
}

.pricing-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(214, 179, 106, 0.3);
}

.badge {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 0.72rem;
  background: var(--accent);
  color: #33260e;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.form-shell {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.4rem;
  align-items: start;
}

.lead-form {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 500;
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.18);
}

.lead-form button[type="submit"] {
  margin-top: 0.9rem;
}

.upload-area {
  margin: 1rem 0;
  border: 1.5px dashed rgba(17, 17, 17, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(214, 179, 106, 0.08);
}

.upload-area input {
  display: none;
}

.accordion {
  max-width: 880px;
  margin: 2rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.faq-cta {
  margin-top: 2.2rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease), opacity var(--ease), margin var(--ease);
  opacity: 0;
  margin-top: 0;
}

.accordion-item.open .accordion-panel {
  opacity: 1;
  margin-top: 0.8rem;
}

.final-cta {
  background: linear-gradient(140deg, #1b1b1b 0%, #2a2a2a 60%, #111 100%);
  color: #f4f4f4;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.site-footer {
  background: #101010;
  color: #d7d7d7;
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.footer-grid h3 {
  color: #fff;
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  padding: 1.3rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-up,
.fade-in {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in {
  transform: translate3d(0, 0, 0);
}

.revealed {
  opacity: 1;
  transform: none;
}

.whatsapp-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 1080px) {
  .services-grid,
  .why-grid,
  .testimonial-grid,
  .pricing-grid,
  .timeline,
  .video-grid,
  .form-shell,
  .comparison-grid,
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding: 8.2rem 0 4rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.4rem 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .site-nav.open {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .services-grid,
  .why-grid,
  .testimonial-grid,
  .pricing-grid,
  .timeline,
  .video-grid,
  .form-shell,
  .comparison-grid,
  .hero-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .timeline-step:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -0.9rem;
    right: 50%;
    transform: translate(50%, 50%);
  }

  .masonry-grid {
    columns: 1;
  }

  .project-card.fade-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}
