/* ==========================================================================
   Leave and License Agreement — static site
   Palette sampled from the logo file (cropped-leave-and-license-agreement-1.png):
     #004AAD deep blue (primary)  ·  #00C2CB cyan (accent)  ·  #FFC800 gold (icons)
   ========================================================================== */

:root {
  --container: 1380px;

  --blue: #004AAD;
  --blue-dark: #00327a;
  --blue-soft: #e8f0fb;
  --cyan: #00C2CB;
  --cyan-dark: #00a3ab;
  --gold: #FFC800;

  --ink: #10203a;
  --body: #4a5568;
  --muted: #6b7a90;
  --line: #e3e8f0;
  --surface: #ffffff;
  --lavender: #eeeefb;

  --header-h: 84px;
  --header-h-mobile: 66px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(16, 32, 58, .07);
  --shadow-lg: 0 18px 46px rgba(16, 32, 58, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan-dark); }

h1, h2, h3, h4 {
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.5rem); text-transform: uppercase; }
h3 { font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tint { background: var(--lavender); }
.section-title { margin-bottom: 44px; color: var(--blue); }
.section-title--center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(0, 74, 173, .28); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 12px 28px rgba(0, 74, 173, .34); }
.btn--accent { background: var(--cyan); color: #fff; box-shadow: 0 8px 22px rgba(0, 194, 203, .3); }
.btn--accent:hover { background: var(--cyan-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--blue); border-color: #fff; }
.btn--ghost:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
/* Opaque and identical in both scroll states, by design: a translucent bar
   would shift colour as content passes behind it. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(16, 32, 58, .09); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 230px; height: auto; border-radius: 0; } /* no radius on header logo */

/* ---------- Desktop nav ---------- */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav-link[aria-current="page"] { color: var(--cyan-dark); }

.has-dropdown > .nav-link .fa-chevron-down { font-size: .65em; transition: transform .25s var(--ease); }

/* Resting state is CLOSED. One rule governs visibility at every breakpoint. */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 10px);
  min-width: 320px; padding: 10px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--body); line-height: 1.35;
}
.dropdown a:hover { background: var(--blue-soft); color: var(--blue); }

.has-dropdown.is-open > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.has-dropdown.is-open > .nav-link .fa-chevron-down { transform: rotate(180deg); }

.header-cta { display: inline-flex; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--blue); font-size: 1.2rem; cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 22, 42, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(88vw, 360px);
  background: #fff;
  /* Content starts below the fixed header bar — the top ~66px is hidden behind it. */
  padding: 20px 22px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  box-shadow: -18px 0 46px rgba(16, 32, 58, .16);
}
.drawer.is-open { transform: translateX(0); }

.drawer-close {
  position: absolute; top: 24px; right: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.05rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.drawer-close:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.drawer-list { list-style: none; margin: 42px 0 0; padding: 0; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list a, .drawer-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 15px 4px; font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer;
}
.drawer-list a:hover, .drawer-sub-toggle:hover { color: var(--blue); }
.drawer-sub {
  list-style: none; margin: 0; padding: 0 0 10px;
  display: none; /* resting state: closed */
}
.drawer-sub.is-open { display: block; }
.drawer-sub li { border: 0; }
.drawer-sub a { padding: 10px 4px 10px 16px; font-size: .9rem; font-weight: 500; color: var(--body); }
.drawer-cta { margin-top: 26px; display: grid; gap: 12px; }
.drawer-cta .btn { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #10203a url("../img/Real-Estate.jpg") center/cover no-repeat;
  color: #fff;
  border-bottom-right-radius: 90px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 30, 74, .88) 0%, rgba(0, 40, 96, .74) 45%, rgba(0, 40, 96, .34) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
  padding: 96px 0 110px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-sub { font-size: 1.08rem; color: rgba(255, 255, 255, .93); margin-bottom: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0 0 32px; padding: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 600; }
.hero-points i { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Enquiry form ---------- */
.form-card {
  background: var(--lavender);
  border-radius: 20px; padding: 30px;
  box-shadow: var(--shadow-lg);
}
.form-card h2 {
  font-size: 1.3rem; text-transform: none; color: var(--ink); margin-bottom: 18px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #d92d20; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid #c9cde0; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 194, 203, .18);
}
.form-note { margin: 12px 0 0; font-size: .85rem; font-weight: 600; min-height: 1.2em; }
.form-note.is-error { color: #d92d20; }
.form-note.is-ok { color: #067647; }
/* Anti-spam honeypot — visually hidden, still reachable by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page head (inner pages without a hero image) ---------- */
.page-head { padding: 72px 0 8px; }
.page-head h1 { color: var(--blue); text-transform: uppercase; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--lavender); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num { font-size: 2.3rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cyan); color: #fff; padding: 62px 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.cta-band p { max-width: 700px; margin: 0 auto 26px; color: rgba(255, 255, 255, .95); }

/* ---------- Services ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card figure { margin: 0; padding: 14px 14px 0; }
.service-card img { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card-body { padding: 22px 26px 30px; text-align: center; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { font-size: .92rem; margin: 0; }

/* ---------- Why choose us ---------- */
.why { background: var(--cyan); }
.why h2 { color: #fff; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.why-card i { font-size: 2rem; color: var(--gold); margin-bottom: 14px; display: block; }
.why-card h3 { font-size: 1.05rem; margin-bottom: .45em; }
.why-card p { font-size: .87rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-lead { max-width: 1000px; margin-bottom: 40px; }
.contact-card {
  background: var(--lavender); border-radius: var(--radius); padding: 40px 26px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card > i { font-size: 2rem; color: var(--gold); margin-bottom: 16px; display: block; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--body); margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--blue); }
.contact-hours { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a33; color: #b9c6da; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 46px; padding-bottom: 46px; }
.footer-brand img { width: 230px; border-radius: 10px; background: #fff; padding: 10px; }
.footer-brand p { margin: 18px 0 0; font-size: .9rem; }
.site-footer h4 {
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c6da; font-size: .9rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-areas { columns: 2; column-gap: 30px; }
.footer-areas li { break-inside: avoid; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 12px; font-size: .9rem; }
.footer-contact i { color: var(--cyan); margin-top: 5px; flex: 0 0 16px; }
.footer-contact a { color: #b9c6da; }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 26px;
  text-align: center; font-size: .87rem;
}
.footer-bottom .fa-heart { color: #ff4d6d; }
.footer-bottom a { color: var(--cyan); }

/* ---------- Floating actions ---------- */
.float-call, .float-wa {
  position: fixed; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.float-call:hover, .float-wa:hover { transform: scale(1.09); color: #fff; }
.float-call { left: 24px; background: var(--blue); }
.float-wa { right: 24px; background: #25D366; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover, .why-card:hover, .step:hover, .contact-card:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-cta { display: none; }
}

@media (max-width: 1024px) {
  .section { padding: 66px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 72px 0 84px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: var(--header-h-mobile); }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { width: 180px; }
  .steps, .cards-3 { grid-template-columns: 1fr; }
  .hero { border-bottom-right-radius: 54px; }
}

@media (max-width: 620px) {
  .container { padding-inline: 18px; }
  .section { padding: 52px 0; }
  .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-areas { columns: 1; }
  .hero-actions .btn, .form-card { width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .float-call, .float-wa { width: 50px; height: 50px; font-size: 1.3rem; bottom: 18px; }
  .float-call { left: 18px; }
  .float-wa { right: 18px; }
}
