:root {
  --azerta-ink: #0f333b;
  --azerta-deep: #0a242a;
  --azerta-gold: #d5a05b;
  --azerta-sand: #f3efe9;
  --azerta-ivory: #fbfaf7;
  --azerta-graphite: #1f2a2e;
  --azerta-blue: #2341b5;
  --azerta-mist: #e6ebee;
  --azerta-text: #142f36;
  --azerta-muted: #5b6b72;
  --shadow-sm: 0 6px 16px rgba(6, 20, 23, 0.08);
  --shadow-md: 0 16px 40px rgba(6, 20, 23, 0.15);
  --shadow-lg: 0 28px 80px rgba(6, 20, 23, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1200px;
  --vh: 1vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--azerta-text);
  background: radial-gradient(circle at 15% 10%, rgba(213, 160, 91, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--azerta-ivory) 35%, var(--azerta-sand) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--azerta-ink);
}

.section-header p {
  color: var(--azerta-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 51, 59, 0.08);
  color: var(--azerta-ink);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 51, 59, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  height: 52px;
  width: auto;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azerta-graphite);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--azerta-ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--azerta-ink);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--azerta-gold);
  color: #1b1b1b;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: rgba(15, 51, 59, 0.24);
  color: var(--azerta-ink);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(15, 51, 59, 0.08);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--azerta-ink);
  border-radius: 999px;
}

/* Hero */
.hero {
  min-height: calc(var(--vh, 1vh) * 90);
  display: grid;
  align-items: center;
  padding: 90px 0 80px;
  background: radial-gradient(circle at 20% 20%, rgba(35, 65, 181, 0.3), transparent 45%),
    linear-gradient(120deg, #0f333b 0%, #143d48 50%, #1d2d78 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 19, 0.3) 0%, rgba(7, 16, 19, 0.7) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.service-cta {
  margin-top: 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.hero-video-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-video-card video {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--azerta-gold);
}

/* Quick actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.action-card h3 {
  font-size: 1.1rem;
  color: var(--azerta-ink);
}

.action-card p {
  color: var(--azerta-muted);
  font-size: 0.95rem;
}

/* Video banners */
.video-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.video-strip::-webkit-scrollbar {
  height: 8px;
}

.video-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 51, 59, 0.2);
  border-radius: 999px;
}

.video-card {
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.video-card video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

.video-card h4 {
  font-size: 1.02rem;
  color: var(--azerta-ink);
}

.video-card p {
  font-size: 0.9rem;
  color: var(--azerta-muted);
}

.video-card .btn {
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* How + services */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}

.info-card h3 {
  font-size: 1.2rem;
  color: var(--azerta-ink);
}

.info-card p {
  color: var(--azerta-muted);
}

.info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 51, 59, 0.08);
  color: var(--azerta-ink);
  font-size: 1.3rem;
}

/* Property cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
}

.property-media {
  min-height: 180px;
  background: linear-gradient(140deg, rgba(35, 65, 181, 0.25), rgba(213, 160, 91, 0.2));
  display: grid;
  place-items: center;
  color: var(--azerta-ink);
  font-weight: 700;
}

.property-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.property-body h3 {
  font-size: 1.1rem;
}

.property-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--azerta-muted);
}

/* Forms */
form {
  display: grid;
  gap: 14px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 51, 59, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
}

label {
  font-weight: 600;
  color: var(--azerta-ink);
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.legal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.legal-card h2 {
  font-size: 1.15rem;
  color: var(--azerta-ink);
}

.microcopy {
  font-size: 0.85rem;
  color: var(--azerta-muted);
}

.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contract-note {
  background: rgba(213, 160, 91, 0.12);
  border: 1px solid rgba(213, 160, 91, 0.4);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--azerta-graphite);
  font-size: 0.92rem;
}

.signature-pad {
  border: 2px dashed rgba(15, 51, 59, 0.3);
  border-radius: var(--radius-md);
  height: 220px;
  width: 100%;
  background: #ffffff;
  display: block;
  touch-action: none;
}

.signature-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contract-preview {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 51, 59, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow: auto;
}

.contract-preview h3 {
  font-family: "Fraunces", serif;
  color: var(--azerta-ink);
}

.contract-preview p,
.contract-preview li {
  color: var(--azerta-muted);
  font-size: 0.95rem;
}

.contract-preview ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--azerta-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 60px 0;
  background: var(--azerta-deep);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

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

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

/* Page hero */
.page-main {
  padding-top: 20px;
}

.page-hero {
  padding: 120px 0 70px;
  background: linear-gradient(120deg, rgba(15, 51, 59, 0.08), rgba(213, 160, 91, 0.12));
}

.page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  color: var(--azerta-ink);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .actions-grid,
  .grid-3,
  .property-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contract-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-menu {
    display: none;
  }

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

  .nav-menu.active {
    display: block;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 51, 59, 0.08);
    padding: 20px 24px;
  }

  .nav-menu.active ul {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .header .container {
    padding: 14px 18px;
  }

  .actions-grid,
  .grid-3,
  .property-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
}
