/* Arabian Hills Developers: red photo footer (ah-footer). Loaded after main.css.
   Layers, back to front: CSS gradient (fallback) > skyline photo > scrim >
   content panel (.ah-footer__main) > socials + legal row (.ah-footer__lower). */
:root {
  /* Navy tokens stay global: other sections use them */
  --navy-950:#122238; --navy-900:#16283F; --navy-800:#1E3451; --navy-700:#243D5B;
  --navy-600:#2A4361; --slate:#516D8D; --steel:#80A0C5; --cream:#F6F3F2;
  --taupe:#7C6F67; --bronze:#C6AB95; --ink:#0D0D0D; --white:#FFFFFF; --brand-red:#ED0A0A;
  /* Footer red palette */
  --red-950:#4A0E10; --red-900:#5E1214; --red-800:#7E1C1C; --red-700:#9C2A26;
  --rose-200:#E8B7AE; --rose-100:#F3D9D6; --cream-soft:#F6EDEB;
}

.ah-footer {
  --focus: var(--rose-200);
  position: relative; overflow: hidden; isolation: isolate;
  /* Visible while the photo loads, or for good if it is missing */
  background: linear-gradient(180deg, #F6E7E4 0%, #EFC7C2 16%, #D9908B 34%, #B85450 55%, #8A2424 78%, #5E1214 100%);
  color: var(--cream-soft);
  font-family: "Montserrat", sans-serif; font-weight: 400;
}
.ah-footer :where(ul) { list-style: none; margin: 0; padding: 0; }
.ah-footer :where(p) { margin: 0; }
.ah-footer :focus-visible { outline: 2px solid var(--rose-200); outline-offset: 3px; }

/* Photo + scrim */
.ah-footer__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: bottom center;
}
.ah-footer__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(94,18,20,.34) 0%, rgba(126,28,28,.58) 55%, rgba(74,14,16,.88) 100%);
}

.ah-footer__wrap {
  position: relative; z-index: 1; max-width: 80rem; margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) 16px 24px;
}
/* Content panel: deep enough that cream text and rose labels clear 4.5:1
   even where the photo behind it is at its lightest (the hazy sky). */
.ah-footer__main {
  position: relative; border-radius: 14px; padding: 28px 20px 22px;
  background: linear-gradient(180deg, rgba(94,18,20,.74) 0%, rgba(74,14,16,.80) 100%);
}
.ah-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

/* Brand block */
.ah-footer__badge { display: inline-block; vertical-align: top; max-width: 100%; border-radius: 4px; }
/* logo.png carries transparent padding (46px top, 68px bottom of 408). The img
   box is sized so the visible artwork is 46px tall (58px from 768px), and the
   negative margins remove the empty padding. Rendered well below its intrinsic
   612x408, so it is never upscaled. No tile or badge behind it.
   Shown in its brand colours (owner decision), with only the warm drop shadow. */
.ah-footer__logo {
  display: block; width: auto; max-width: 100%; height: 64px; margin: -7px 0 -11px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(60,10,10,.35));
}
.ah-footer__tagline { margin-top: 18px; max-width: 34ch; font-size: 14px; line-height: 1.6; color: rgba(246,237,235,.88); }
.ah-footer__group { margin-top: 10px; max-width: 34ch; font-size: 12.5px; line-height: 1.6; color: var(--rose-200); }

/* The only footer button */
.ah-footer__cta {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 18px;
  border: 1px solid rgba(243,217,214,.55); color: var(--cream-soft); background: rgba(246,237,235,.08);
  border-radius: 999px; padding: 10px 20px; font: 500 14px/1.2 "Montserrat", system-ui, sans-serif; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ah-footer__cta-arrow { display: inline-block; transition: transform .2s ease; }
.ah-footer__cta:hover { background: rgba(246,237,235,.18); border-color: var(--rose-200); transform: translateY(-1px); }
.ah-footer__cta:hover .ah-footer__cta-arrow { transform: translateX(2px); }

/* Column labels and links */
.ah-footer__eyebrow {
  font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 12px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .12em; color: var(--rose-200);
  margin: 0 0 14px; max-width: none;
}
.ah-footer__list li { line-height: 1.7; padding: 4px 0; }
.ah-footer__link {
  display: inline-flex; align-items: center;
  font-size: 14px; line-height: 1.7; color: rgba(246,237,235,.92); text-decoration: none;
  text-underline-offset: 3px; transition: color 200ms ease;
}
.ah-footer__link:hover { color: var(--white); text-decoration: underline; }

/* Contact rows */
.ah-footer__contact li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.ah-footer__contact li > span { display: flex; flex-direction: column; min-width: 0; }
.ah-footer__ico { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--rose-200); }
.ah-footer__meta { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-200); line-height: 1.5; }
.ah-footer__addr { font-size: 14px; line-height: 1.6; color: rgba(246,237,235,.92); }
.ah-footer__email { overflow-wrap: anywhere; }

/* Lower band: socials left, legal right, over the deepest red */
.ah-footer__lower {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(232,183,174,.22);
}
.ah-footer__social { display: flex; gap: 8px; }
/* 44px hit area, 42px visible circle */
.ah-footer__social-link {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream-soft);
  transition: color .2s ease, transform .2s ease;
}
.ah-footer__social-link::before {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  background: rgba(60,10,10,.42); border: 1px solid rgba(232,183,174,.45);
  transition: background-color .2s ease, border-color .2s ease;
}
.ah-footer__social-link svg { position: relative; width: 18px; height: 18px; }
.ah-footer__social-link:hover, .ah-footer__social-link:focus-visible { color: #fff; transform: translateY(-2px); }
.ah-footer__social-link:hover::before, .ah-footer__social-link:focus-visible::before { background: rgba(126,28,28,.55); border-color: var(--rose-200); }

.ah-footer__legal {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: 12px; line-height: 1.6;
}
.ah-footer__cities { display: inline-flex; align-items: center; gap: 6px; color: var(--rose-200); }
.ah-footer__pin { width: 13px; height: 13px; flex: none; }
.ah-footer__copy { color: rgba(246,237,235,.85); }

/* Touch widths: every link is a 44px target */
@media (max-width: 1023px), (pointer: coarse) {
  .ah-footer__list li, .ah-footer__contact li { padding: 0; }
  .ah-footer__link { min-height: 44px; }
}

/* 700+: brand row across, then two columns; lower row side by side */
@media (min-width: 700px) {
  .ah-footer__wrap { padding-inline: 24px; }
  .ah-footer__main { border-radius: 18px; padding: 40px 28px 28px; }
  .ah-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .ah-footer__brand { grid-column: 1 / -1; }
  .ah-footer__lower { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .ah-footer__legal { align-self: auto; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; text-align: left; }
}
@media (min-width: 768px) {
  .ah-footer__logo { height: 80px; margin: -9px 0 -13px; }
}

/* 1024+: four columns, brand slightly wider, faint rose hairlines between columns */
@media (min-width: 1024px) {
  .ah-footer__wrap { padding-inline: 32px; }
  .ah-footer__inner { grid-template-columns: 1.35fr 1fr 1.1fr 1.35fr; gap: clamp(24px, 3vw, 48px); }
  .ah-footer__brand { grid-column: auto; }
  .ah-footer__col + .ah-footer__col { border-left: 1px solid rgba(232,183,174,.18); padding-left: clamp(20px, 2vw, 32px); }
}

/* Keep the legal row clear of the fixed WhatsApp / back-to-top buttons
   (their positions are unchanged) when scrolled to the very bottom. */
/* Phones: the two buttons stack up to ~147px from the bottom, so the legal row ends above them. */
@media (max-width: 699px) { .ah-footer__wrap { padding-bottom: 160px; } }
@media (min-width: 700px) and (max-width: 1359px) { .ah-footer__lower { padding-right: 84px; } }

/* Once-only reveal: hidden state only applied by JS */
.ah-footer .ah-reveal { opacity: 0; transform: translateY(12px); transition: opacity 360ms ease-out, transform 360ms ease-out; transition-delay: var(--ah-delay, 0ms); }
.ah-footer .ah-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ah-footer .ah-reveal { opacity: 1; transform: none; transition: none; }
  .ah-footer__social-link, .ah-footer__social-link::before, .ah-footer__link, .ah-footer__cta, .ah-footer__cta-arrow { transition: none; }
  .ah-footer__social-link:hover, .ah-footer__social-link:focus-visible, .ah-footer__cta:hover, .ah-footer__cta:hover .ah-footer__cta-arrow { transform: none; }
}
