/* ==========================================================================
   A R Real Estate Solutions — core styles
   Tokens, base, layout, header, hero, sections, footer.
   Components live in components.css, breakpoints in responsive.css.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #061428;
  --navy-900: #0a1d3a;
  --navy-800: #0f2a52;
  --navy-700: #16386d;
  --royal: #1f4e9c;
  --gold: #c9a24a;
  --gold-500: #b98f33;
  --gold-700: #7d5f15;          /* gold for text on light backgrounds (AA contrast) */
  --gold-100: #f6eed8;
  --green-900: #0a2e19;
  --green-800: #0c3b1f;
  --green-700: #0f5132;
  --green-100: #e6f0e9;
  --ivory: #faf7f0;
  --sand: #f2ede1;
  --white: #ffffff;
  --ink: #0f1a2e;
  --muted: #55607a;
  --line: #e7e1d3;
  --danger: #a4271d;
  --danger-bg: #fdecea;

  /* Type */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", sans-serif;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 29, 58, .06), 0 2px 8px rgba(10, 29, 58, .05);
  --shadow: 0 6px 24px rgba(10, 29, 58, .09);
  --shadow-lg: 0 18px 50px rgba(10, 29, 58, .16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
ul { padding-left: 1.2em; }
address { font-style: normal; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--gold); color: var(--navy-950); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Icons (SVG sprite) */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.22em;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--ivory { background: var(--ivory); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy-900); color: #dbe3f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section--navy .section-head p { color: #b9c5dc; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--left .eyebrow::after { display: none; }

.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 20px; border-radius: 3px; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar { background: var(--navy-950); color: #c8d3e8; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #e9eefa; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .icon { color: var(--gold); margin-right: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;   /* opaque so the logo's white background blends in */
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(10, 29, 58, .10); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .55; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-left: clamp(20px, 3vw, 48px); }
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 14px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: 10px 12px;
  color: var(--navy-900); font-weight: 500; font-size: .96rem; text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--gold-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; margin-right: -8px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 12px; color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: clamp(560px, 82vh, 760px);
  display: flex; align-items: center;
  padding-block: clamp(72px, 10vw, 128px) clamp(120px, 13vw, 170px);
  background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: brightness(1.12) saturate(1.1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 20, 40, .9) 0%, rgba(6, 20, 40, .62) 46%, rgba(6, 20, 40, .08) 100%),
    linear-gradient(0deg, rgba(6, 20, 40, .5) 0%, rgba(6, 20, 40, 0) 35%);
}
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(1.95rem, 5.2vw, 3.7rem); margin-bottom: .45em; }
.hero h1 .accent { color: var(--gold); }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(.74rem, 1.6vw, .86rem); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero .kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }
.hero p.lede { font-size: clamp(1rem, 1.9vw, 1.2rem); color: #d7e0f0; max-width: 60ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-loc { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #e4ebf7; }
.hero-loc .icon { color: var(--gold); }

/* Trust bar overlapping hero */
.trustbar { position: relative; z-index: 5; margin-top: -76px; }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700);
}
.trust-item strong { display: block; color: var(--navy-900); font-size: .98rem; line-height: 1.3; }
.trust-item span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Inner-page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; background: var(--navy-900);
  padding-block: clamp(48px, 7vw, 88px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 20, 40, .95) 0%, rgba(6, 20, 40, .8) 55%, rgba(6, 20, 40, .55) 100%);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #cfd9ec; max-width: 62ch; font-size: 1.08rem; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font-size: .85rem; color: #aebbd3; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold); }
.breadcrumb a { color: #dbe4f5; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Split / about blocks
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; z-index: -1; left: -16px; bottom: -16px; width: 62%; height: 62%;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
}
.split-media { isolation: isolate; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green-700); margin-top: .18em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #b9c5dc; font-size: .95rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--gold); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
.footer-tag { color: #dbe3f1; max-width: 34ch; margin-bottom: 18px; font-family: var(--font-head); font-size: 1.08rem; line-height: 1.45; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d3dcee; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: .22em; }
.footer-contact address { line-height: 1.55; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .25s, color .25s, border-color .25s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .86rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-note { color: #8fa0bf; font-size: .8rem; margin: 0; padding-bottom: 22px; max-width: 90ch; }

/* --------------------------------------------------------------------------
   Floating action buttons
   -------------------------------------------------------------------------- */
.fab-group {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 22px rgba(6, 20, 40, .35);
  border: 2px solid rgba(255, 255, 255, .9);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.fab .icon { width: 26px; height: 26px; }
.fab-wa { background: var(--green-700); }
.fab-call { background: var(--navy-800); }
.fab-call .icon { color: var(--gold); }
body.menu-open .fab-group, body.dialog-open .fab-group, body.is-typing .fab-group { display: none; }
