/* ══════════════════════════════════════════════════════════════
   HYDE REAL ESTATE SERVICES — Design System v2
   "Blueprint"
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg-dark: #003366;
  --bg-dark-2: #002B55;
  --bg-warm: #E8EEF4;
  --bg-warm-2: #C8D8E8;
  --accent: #5599CC;
  --accent-hover: #336699;
  --accent-light: rgba(85, 153, 204, 0.12);
  --text: #003366;
  --text-secondary: #336699;
  --text-muted: #5599CC;
  --stone: #C8D8E8;
  --white: #ffffff;
  --border: rgba(0, 51, 102, 0.08);
  --border-light: rgba(153, 204, 238, 0.12);

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1280px;
  --container-pad: clamp(24px, 4vw, 60px);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg-warm);
  overflow-x: hidden;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Typography ── */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title--light {
  color: var(--white);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-dark) !important;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(85, 153, 204, 0.3);
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--bg-dark) !important;
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--text) !important;
  border: 1.5px solid var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--white) !important;
}

.btn--large {
  padding: 20px 52px;
  font-size: 14px;
}

/* ── Skip to Content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(0, 43, 85, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(85, 153, 204, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 80px;
}

.nav__logo img {
  width: 220px;
  height: auto;
  transition: opacity 0.3s;
}

.nav__logo:hover img {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.3px;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--white);
}

.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 10px 26px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--bg-dark) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 85, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  z-index: 999;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav__overlay a {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--white);
  transition: color 0.3s;
}

.nav__overlay a:hover {
  color: var(--accent);
}

.nav__overlay .nav__cta {
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-dark);
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(85, 153, 204, 0.08);
  border-radius: 50%;
}

.page-hero__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION (shared)
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg-warm-2);
  padding: clamp(100px, 12vw, 180px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(85, 153, 204, 0.08);
  border-radius: 50%;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}

.cta-section__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 44px;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.5);
}

.footer__social a:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.footer__social a:hover svg {
  fill: var(--bg-dark);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE (Asset Classes — reusable)
   ══════════════════════════════════════════════════════════════ */
.marquee-section {
  background: var(--bg-dark);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.marquee-section .section-label,
.marquee-section .section-title {
  text-align: center;
}

.marquee-section .section-title {
  color: var(--white);
  margin-bottom: 50px;
}

.marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marquee__track {
  display: flex;
  overflow: hidden;
  position: relative;
}

.marquee__content {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 16px;
}

.marquee__track--left .marquee__content {
  animation: marqueeLeft 35s linear infinite;
}

.marquee__track--right .marquee__content {
  animation: marqueeRight 35s linear infinite;
}

.marquee:hover .marquee__content {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee__pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: all 0.3s;
}

.marquee__pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   GSAP REVEAL UTILITY
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__content {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__inner {
    height: 68px;
  }

  .page-hero {
    min-height: 40vh;
    padding: 100px 24px 60px;
  }

  .page-hero__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .marquee__pill {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOCUS STYLES
   ══════════════════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
