/* ==========================================================================
   Self-hosted Tajawal (avoids the fonts.googleapis.com render-blocking
   round trip — same-origin, preloadable, long-cacheable via .htaccess)
   ========================================================================== */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/tajawal-800-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/tajawal-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ==========================================================================
   The Icon Gardens — design tokens
   ========================================================================== */
:root {
  --color-navy: #0b1e36;
  --color-navy-dark: #071527;
  --color-navy-soft: #142c4d;
  --color-offwhite: #f7f2e9;
  --color-offwhite-alt: #fbf8f2;
  --color-gold: #b99552;
  --color-gold-light: #d8bd87;
  --color-white: #ffffff;
  --color-text: #1b2430;
  --color-text-muted: #5b6472;
  --color-text-on-dark: #f4f0e6;
  --color-text-on-dark-muted: #b9c2d1;
  --color-success: #2f7d5d;
  --color-success-bg: #e7f3ec;
  --color-error: #b3413a;
  --color-error-bg: #fbeceb;
  --color-border: #e4dcc9;

  --font-arabic: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 10px 30px -12px rgba(11, 30, 54, 0.25);
  --shadow-elevated: 0 20px 50px -18px rgba(11, 30, 54, 0.45);

  --container-max: 1180px;
  --header-height: 76px;
  --transition-base: 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-arabic);
  color: var(--color-text);
  background: var(--color-offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -60px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-3);
}

[dir-override="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ==========================================================================
   Section heading pattern
   ========================================================================== */
.section {
  padding-block: var(--space-12);
}

.section--tight {
  padding-block: var(--space-10);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

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

.section-heading {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: var(--space-8);
}

.eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-block-end: var(--space-3);
}

.section-heading h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
}

.section-heading p {
  margin-block-start: var(--space-3);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section--dark .section-heading p {
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base), color var(--transition-base);
  min-height: 44px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--color-gold-light);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
  background: #25d366;
  color: #06280f;
}

.btn-whatsapp:hover {
  background: #34e376;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(7, 21, 39, 0.75), transparent);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: var(--color-navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-logo img {
  height: 44px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 240, 230, 0.4);
  color: var(--color-text-on-dark);
}

.header-icon-link svg {
  width: 20px;
  height: 20px;
}

.header-icon-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

@media (max-width: 400px) {
  .header-actions .btn-primary {
    padding-inline: 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .site-logo img {
    height: 34px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block-start: calc(var(--header-height) + var(--space-8));
  padding-block-end: var(--space-10);
  background: var(--color-navy-dark) url("../images/hero-the-icon-gardens.webp") center /
    cover no-repeat;
  color: var(--color-text-on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 39, 0.88) 0%,
    rgba(7, 21, 39, 0.78) 45%,
    rgba(7, 21, 39, 0.92) 100%
  );
}

.hero .container {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  color: var(--color-gold-light);
  font-weight: 700;
  margin-block-end: var(--space-3);
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-block-end: var(--space-4);
}

.hero-title [dir-override="ltr"] {
  color: var(--color-gold-light);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-on-dark-muted);
  max-width: 46ch;
  margin-block-end: var(--space-6);
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-end: var(--space-6);
}

.hero-offer-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(244, 240, 230, 0.08);
  border: 1px solid rgba(217, 189, 135, 0.35);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-offer-chip svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
}

.hero-reassurance {
  color: var(--color-text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 48ch;
}

/* Hero form card */
.hero-form-card {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
}

.hero-form-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-block-end: var(--space-4);
  text-align: center;
}

/* ==========================================================================
   Lead form
   ========================================================================== */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: start;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-offwhite-alt);
  color: var(--color-text);
  transition: border-color var(--transition-base);
}

.form-field input::placeholder {
  color: #8b8577;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-gold);
  background: var(--color-white);
}

.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-field-radio-group {
  display: flex;
  gap: var(--space-4);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.92rem;
}

.radio-option input {
  width: 18px;
  height: 18px;
}

.form-privacy-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

.section--dark .form-privacy-note {
  color: var(--color-text-on-dark-muted);
}

.form-message {
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  text-align: center;
}

.form-message.is-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.form-message.is-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.lead-form.is-submitted .form-field,
.lead-form.is-submitted button[type="submit"] {
  opacity: 0.55;
}

button.is-loading {
  position: relative;
  color: transparent !important;
}

button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  color: var(--color-navy-dark);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--color-navy-soft);
  color: var(--color-text-on-dark);
  padding-block: var(--space-6);
}

.trust-bar .container {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: var(--space-1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
  min-width: 200px;
}

.trust-item svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 1.1rem;
}

.trust-item span {
  color: var(--color-text-on-dark-muted);
  font-size: 0.88rem;
}

@media (min-width: 1024px) {
  .trust-bar .container {
    justify-content: space-between;
    overflow-x: visible;
  }
}

/* ==========================================================================
   Intro benefits
   ========================================================================== */
.benefits-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.benefit-card svg {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  margin-inline: auto;
  margin-block-end: var(--space-3);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-block-end: var(--space-2);
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-8);
}

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenities-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.amenity-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}

.amenity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.amenity-card:hover img {
  transform: scale(1.06);
}

.amenity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 30, 54, 0) 40%, rgba(11, 30, 54, 0.85) 100%);
}

.amenity-card-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-4);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-weight: 700;
}

.amenity-card-label svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.amenity-card--icon-only {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  text-align: center;
}

.amenity-card--icon-only svg {
  width: 34px;
  height: 34px;
  color: var(--color-gold);
}

.amenity-card--icon-only span {
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==========================================================================
   Payment plan
   ========================================================================== */
.payment-plan-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .payment-plan-layout {
    grid-template-columns: 1fr 0.85fr;
    align-items: start;
  }
}

.payment-stats {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-block-end: var(--space-6);
}

.payment-stat {
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid rgba(217, 189, 135, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.payment-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-block-end: var(--space-1);
}

.payment-stat span {
  color: var(--color-text-on-dark-muted);
  font-size: 0.9rem;
}

.payment-form-card {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
}

.payment-form-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-block-end: var(--space-4);
  text-align: center;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: 0;
  padding: var(--space-5);
  text-align: start;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
}

.faq-question .faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta .section-heading h2 {
  color: var(--color-white);
}

.final-cta-form-card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-text-on-dark-muted);
  padding-block: var(--space-8);
  text-align: center;
  font-size: 0.88rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 240, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Sticky mobile bar
   ========================================================================== */
.sticky-mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  background: var(--color-white);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  gap: var(--space-3);
  transition: transform var(--transition-base);
}

.sticky-mobile-bar.is-hidden {
  transform: translateY(110%);
}

@media (max-width: 767px) {
  .sticky-mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 76px;
  }
}

.sticky-mobile-bar .btn {
  flex: 1;
}

/* Desktop floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  inset-inline-end: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #06280f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .floating-whatsapp {
    display: none;
  }
}

/* ==========================================================================
   Dialogs / modals
   ========================================================================== */
dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}

dialog::backdrop {
  background: rgba(7, 21, 39, 0.72);
}

.dialog-content {
  padding: var(--space-6);
  position: relative;
}

.dialog-close {
  position: absolute;
  top: var(--space-3);
  inset-inline-end: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.dialog-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-block-end: var(--space-2);
  padding-inline-end: var(--space-6);
}

.dialog-content > p {
  color: var(--color-text-muted);
  margin-block-end: var(--space-5);
  font-size: 0.95rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-gold {
  color: var(--color-gold);
}

.mt-0 {
  margin-block-start: 0 !important;
}
