/* ============================================================
   TRIARC LIVING — Global Design System
   triarcliving.com
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --dark:        #14263A;   /* Nav / header / footer — shared all brands */
  --purple:      #8D165F;   /* Living Purple — primary brand, resident CTAs */
  --purple-mid:  #A53276;   /* Hover / tint */
  --gold:        #C8A95E;   /* Brass Gold — owner CTAs, rule lines, accent */
  --parchment:   #F8F5EE;   /* Page background */
  --charcoal:    #3B3B3B;   /* Body text */
  --slate:       #5A6B7A;   /* Secondary / UI */
  --white:       #FFFFFF;

  /* Typography */
  --font-display: 'Caladea', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(20,38,58,0.08), 0 1px 2px rgba(20,38,58,0.05);
  --shadow-md: 0 4px 16px rgba(20,38,58,0.10), 0 2px 6px rgba(20,38,58,0.06);
  --shadow-lg: 0 12px 40px rgba(20,38,58,0.14), 0 4px 12px rgba(20,38,58,0.08);

  /* Layout */
  --container: 1200px;
  --nav-height: 95px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--parchment);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--charcoal); line-height: 1.7; }

em { color: var(--purple); font-style: normal; }

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

.section {
  padding: var(--space-2xl) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--parchment);
  height: var(--nav-height);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3rem 0 3rem;
  padding-right: 6rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.nav-logo img {
  height: 44px;
  width: auto;
  aspect-ratio: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-item > a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.caret { font-size: 0.6rem; opacity: 0.6; }

/* Dropdown */
.nav-item.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.dd-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Nav CTAs */
.nav-buttons { display: flex; align-items: center; gap: 0.75rem; margin-left: 1rem; }
.nav-cta-owner {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(200,169,94,0.4);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gold);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-cta-owner:hover { border-color: var(--gold); background: rgba(200,169,94,0.08); }
.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--purple);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple-mid); }

/* Hamburger dropdown */
.nav-hamburger-wrap {
  position: relative;
  margin-left: 0.5rem;
}
.nav-hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-hamburger-btn:hover { background: rgba(0,0,0,0.07); }
.nav-hamburger-btn span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger-btn.open span:nth-child(2) { opacity: 0; }
.nav-hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-hamburger-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 999;
}
.nav-hamburger-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-hamburger-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-hamburger-menu a:hover { background: rgba(141,22,95,0.07); color: var(--purple); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-mid); }

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid rgba(90,107,122,0.35);
  color: var(--charcoal);
}
.btn-outline-dark:hover { border-color: var(--purple); color: var(--purple); }

/* On dark nav, outline button flips to white */
.site-nav .nav-links .btn-outline-dark {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.site-nav .nav-links .btn-outline-dark:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
}
.page-hero-inner { max-width: 680px; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero h1 em { color: var(--purple); }
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-weight: 300;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.3; }
.breadcrumb .cur { color: rgba(255,255,255,0.55); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Community Card ───────────────────────────────────────── */
.community-card { display: flex; flex-direction: column; }
.community-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.community-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.community-card:hover .community-card-img img { transform: scale(1.04); }
.community-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.community-card-meta {
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.community-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--dark); }
.community-card-body p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; flex: 1; }
.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--parchment);
}
.community-stat { text-align: center; }
.community-stat-val { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.community-stat-label { font-size: 0.72rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1.5px solid rgba(90,107,122,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(141,22,95,0.1);
}
textarea.form-input { min-height: 120px; resize: vertical; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 0;
  padding: 64px 0 24px;
}

/* Col 1 — Brand */
.footer-col-brand { display: flex; flex-direction: column; gap: 0; padding-right: 1.25rem; }
.footer-col { padding: 0 2.75rem; }
.footer-logo { width: 175px; height: auto; aspect-ratio: auto; margin-bottom: 14px; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-subtext {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  max-width: 200px;
  margin-bottom: 20px;
}

/* Social icons */
.footer-socials { display: flex; gap: 8px; margin-top: auto; }
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social-btn:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.4); }

/* Col headings */
.footer-col-heading {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Col 5 — Residents gold border, anchored right */
.footer-col-residents {
  border-left: 1px solid rgba(200,169,94,0.2);
  padding-left: 24px;
  margin-left: auto;
  width: 100%;
}

/* Links */
.footer-links { list-style: none; }
.footer-links li { margin: 0; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple); }

/* Divider */
.footer-divider {
  height: 0;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

/* EHO + Snappt combined row */
.footer-mid-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.footer-eho {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 680px;
}
.footer-eho-icon { height: 33px; width: auto; flex-shrink: 0; opacity: 0.8; margin-top: 1px; }
.footer-eho-text {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  margin: 0;
}
.footer-eho-strong { color: rgba(255,255,255,0.5); font-weight: 500; }

/* Snappt */
.footer-snappt-band {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-snappt-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.footer-snappt-logo { height: 36px; width: auto; opacity: 0.85; }

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  line-height: 1.6;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-legal-links a {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-sep { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ── Gold rule line ───────────────────────────────────────── */
.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── Stat band ────────────────────────────────────────────── */
.stat-band {
  background: var(--dark);
  padding: 3rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-val em { color: var(--gold); font-style: normal; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Grid utilities ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; padding-top: 48px; padding-bottom: 36px; }
  .footer-col-residents { border-left: none; padding-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(200,169,94,0.3);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    margin-left: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav-item.dropdown.dd-open .dropdown-menu {
    visibility: visible;
    max-height: 300px;
  }
  .nav-buttons {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-cta, .nav-cta-owner { width: 100%; text-align: center; padding: 0.75rem; }
  .nav-mobile-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 40px; padding-bottom: 32px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-col-residents { border-left: none; padding-left: 0; }
  .footer-mid-band { flex-wrap: wrap; gap: 1rem; }
  .footer-eho { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
