/* ============================================================
   ASL Real Estate Collective — Global Stylesheet
   Colors: #7297bd | #e3ebf2 | #345e7d | #ffffff | #000000
   Font: Newsreader (serif display + body)
   WCAG 2.1 AA compliant
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,300;1,6..72,400;1,6..72,600;1,6..72,700&display=swap');

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --brand-mid:    #7297bd;
  --brand-light:  #e3ebf2;
  --brand-dark:   #345e7d;
  --white:        #ffffff;
  --black:        #000000;
  --text-primary: #0d1b26;
  --text-muted:   #4a6578;
  --border:       rgba(114,151,189,0.25);
  --section-pad:  clamp(4rem, 8vw, 7rem);
  --radius:       12px;
  --radius-lg:    20px;
  --font-main:    'Newsreader', Georgia, 'Times New Roman', serif;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-main); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.display {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1, h2 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1.3;
}
p { line-height: 1.75; color: var(--text-muted); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { width: min(1160px, 92vw); margin-inline: auto; }
section { padding-block: var(--section-pad); }
main { outline: none; }

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--brand-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── FOCUS STYLES ─────────────────────────────────────────── */
*:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

/* ── SECTION LABEL ────────────────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.8rem,3vw,2.6rem); color: var(--text-primary); margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin-inline: auto; font-size: 1.05rem; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline-offset: 4px; }
.btn-primary {
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(52,94,125,0.35);
}
.btn-primary:hover { background: #2a4d68; box-shadow: 0 8px 28px rgba(52,94,125,0.45); }
.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}
.btn-outline:hover { background: var(--brand-dark); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-enroll {
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-enroll:hover { background: var(--brand-light); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(52,94,125,0.1); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-dark);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand-dark); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--brand-light); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(13,27,38,0.6);
  backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--white);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(13,27,38,0.2);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: var(--brand-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-weight: 700;
}
.mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.mobile-nav a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.mobile-nav .mobile-nav-cta {
  margin-top: 1rem;
  background: var(--brand-dark);
  color: var(--white);
  text-align: center;
  border-radius: 100px;
  padding: 0.9rem 1rem;
}
.mobile-nav .mobile-nav-cta:hover { background: #2a4d68; }

/* ── PAGE HERO (shared) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--brand-dark) 0%, #1e3d54 55%, #0d1b26 100%);
  padding-top: 8rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(114,151,189,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(114,151,189,0.2);
  border: 1px solid rgba(114,151,189,0.35);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.page-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7fccaa;
  flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1.2rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(227,235,242,0.8);
  max-width: 560px;
  margin-inline: auto;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: rgba(227,235,242,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(227,235,242,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: rgba(227,235,242,0.6);
}
.social-icon:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(227,235,242,0.3);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2rem;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── SCREEN READER ONLY ───────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
