/* ============================================================
   ARIZONA TRADITIONS HOA — Shared Stylesheet
   Version 1.0 · April 2026
   Desert Warm color palette · Source Serif 4 + Red Hat Text
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Red+Hat+Text:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --cream:        #FAF7F2;
  --sand:         #EDE3D0;
  --charcoal:     #2C1A0E;
  --terracotta:   #B85C38;
  --gold:         #C9963A;
  --muted:        #6B5344;
  --white:        #ffffff;

  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body:    'Red Hat Text', Arial, sans-serif;

  --max-width:    1200px;
  --pad:          48px;
  --header-h:     78px;
}

/* ── 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: 17px;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.72;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

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

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 15px; font-weight: 600; letter-spacing: 0.05em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.75;
}

/* Terracotta accent bar */
.accent-bar {
  width: 52px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 14px 0 32px;
}
.accent-bar.center { margin-left: auto; margin-right: auto; }

/* ── Background helpers ── */
.bg-cream     { background-color: var(--cream); }
.bg-sand      { background-color: var(--sand); }
.bg-white     { background-color: var(--white); }
.bg-charcoal  { background-color: var(--charcoal); }
.bg-terracotta{ background-color: var(--terracotta); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-terracotta        { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-terracotta:hover  { background: #9e4e2f; border-color: #9e4e2f; }

.btn-outline-terra         { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn-outline-terra:hover   { background: var(--terracotta); color: #fff; }

.btn-white             { background: #fff; color: var(--terracotta); border-color: #fff; }
.btn-white:hover       { background: var(--cream); border-color: var(--cream); }

.btn-outline-white         { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-outline-white:hover   { border-color: #fff; }

.btn-gold              { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover        { background: #a87d24; border-color: #a87d24; }


/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--charcoal);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* Homepage: starts transparent over hero */
.site-header.is-transparent {
  background: var(--charcoal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}
.site-header.is-scrolled {
  background: var(--charcoal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img  { height: 44px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.primary-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.80);
  padding: 6px 10px;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.primary-nav a:hover  { color: var(--gold); }
.primary-nav a.active { color: var(--gold); }
.primary-nav a.nav-btn {
  background: var(--terracotta);
  color: #fff;
  padding: 7px 16px;
  margin-left: 10px;
}
.primary-nav a.nav-btn:hover { background: #9e4e2f; color: #fff; }


/* ═══════════════════════════════════════════
   HERO (Homepage full-bleed)
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 72vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44,26,14,0.10) 0%,
    rgba(44,26,14,0.32) 55%,
    rgba(44,26,14,0.42) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 40px;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(16px, 2vw, 20px);
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
  margin-bottom: 38px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════════
   PAGE HERO BANNER (Inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 36px;
  margin-top: var(--header-h);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44,26,14,0.22) 0%,
    rgba(44,26,14,0.68) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.page-hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 6px;
}
.page-hero-content .eyebrow {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}


/* ═══════════════════════════════════════════
   STAT STRIP
   ═══════════════════════════════════════════ */
.stat-strip { background: var(--terracotta); padding: 22px 0; }
.stat-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}
.stat { text-align: center; min-width: 100px; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   PAGE SECTIONS
   ═══════════════════════════════════════════ */
.section       { padding: 72px 0; }
.section-sm    { padding: 52px 0; }
.section-lg    { padding: 96px 0; }

/* Section heading block */
.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p  { color: var(--muted); font-size: 17px; max-width: 680px; margin-top: 12px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }


/* ═══════════════════════════════════════════
   GRID LAYOUTS
   ═══════════════════════════════════════════ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col-center { align-items: center; }

/* Highlight cards (homepage) */
.highlight-card { text-align: center; display: flex; flex-direction: column; }
.highlight-card h3 {
  color: var(--terracotta);
  font-size: 22px;
  margin-bottom: 14px;
}
.highlight-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
  margin-bottom: 26px;
  flex: 1;
}


/* ═══════════════════════════════════════════
   AMENITY CARDS
   ═══════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.amenity-card {
  background: var(--cream);
  border: 1px solid #DDD0C4;
  border-radius: 8px;
  padding: 28px 22px 24px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.amenity-card:hover {
  box-shadow: 0 6px 24px rgba(44,26,14,0.10);
  transform: translateY(-2px);
}
.amenity-card.on-white { background: #fff; }
.amenity-icon {
  font-size: 30px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.amenity-card h4 {
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 7px;
}
.amenity-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   ACTIVITY ITEMS
   ═══════════════════════════════════════════ */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.activity-item {
  background: #fff;
  border: 1px solid #DDD0C4;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 7px 7px 0;
  padding: 16px 20px;
}
.activity-item h4 {
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 5px;
}
.activity-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   PHOTO STRIP
   ═══════════════════════════════════════════ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 230px;
  overflow: hidden;
}
.photo-cell {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  overflow: hidden;
}
.photo-strip:hover .photo-cell { transform: scale(1.03); }


/* ═══════════════════════════════════════════
   INFO TABLE
   ═══════════════════════════════════════════ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
.info-table th {
  background: var(--charcoal);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.info-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #E2D5C8;
  vertical-align: top;
  line-height: 1.55;
}
.info-table tr:nth-child(even) td { background: var(--sand); }
.info-table tr:last-child td { border-bottom: none; }


/* ═══════════════════════════════════════════
   SIGN-IN STRIP
   ═══════════════════════════════════════════ */
.signin-strip { padding: 60px 0; }
.signin-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.signin-strip h2 { color: #fff; font-size: clamp(22px, 3vw, 34px); margin-bottom: 10px; }
.signin-strip p  { color: rgba(255,255,255,0.88); margin-bottom: 0; max-width: 560px; }


/* ═══════════════════════════════════════════
   CONTACT BAR
   ═══════════════════════════════════════════ */
.contact-bar { padding: 50px 0; }
.contact-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.contact-bar h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-bar p { color: rgba(250,247,242,0.80); margin-bottom: 0; line-height: 1.72; }


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer { padding: 60px 0 0; background: var(--charcoal); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--pad) 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 52px;
  border-bottom: 1px solid rgba(250,247,242,0.10);
}
.footer-logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 14px;
  color: rgba(250,247,242,0.68);
  line-height: 1.72;
  margin-bottom: 14px;
}
.footer-link {
  font-size: 14px;
  color: rgba(250,247,242,0.78);
  transition: color 0.18s;
  display: inline-block;
}
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(250,247,242,0.36);
  margin-bottom: 0;
}
.footer-admin-link {
  font-size: 12px;
  color: rgba(250,247,242,0.25);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-admin-link:hover { color: rgba(250,247,242,0.65); }


/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 2px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.filter-btn.active, .filter-btn:hover { background: var(--terracotta); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(44,26,14,0.78) 100%);
  opacity: 0;
  transition: opacity 0.28s;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { font-size: 13px; color: #fff; font-weight: 500; }


/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,10,4,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(44,26,14,0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 12px 18px;
  border-radius: 3px;
  transition: background 0.18s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--terracotta); }
.lightbox-close { top: 20px; right: 20px; font-size: 18px; padding: 10px 16px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --pad: 28px; }
  .three-col         { grid-template-columns: 1fr; gap: 32px; }
  .two-col           { grid-template-columns: 1fr; gap: 36px; }
  .card-grid         { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4       { grid-template-columns: repeat(2, 1fr); }
  .activity-grid     { grid-template-columns: 1fr; }
  .photo-strip       { grid-template-columns: repeat(2, 1fr); height: 280px; }
  .footer-inner      { grid-template-columns: 1fr; gap: 32px; }
  .signin-strip-inner{ flex-direction: column; text-align: center; }
  .contact-bar-inner { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip-inner  { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .stat-divider      { display: none; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .card-grid   { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 180px; }
  .page-hero   { height: 180px; }
  .primary-nav { display: none; }
}

/* Hide inner-page hero eyebrow */
.eyebrow { display: none; }

/* ── Member nav dropdowns ──────────────────────────────────────────── */
.primary-nav .has-dropdown { position: relative; }
.primary-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--charcoal);
  min-width: 240px;
  border-top: 2px solid var(--terracotta);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
  z-index: 200;
  padding: 6px 0;
}
.primary-nav .has-dropdown:hover .dropdown { display: block; }
.primary-nav .dropdown li { display: block; }
.primary-nav .dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(250,247,242,0.85);
  white-space: nowrap;
  border-radius: 0;
  letter-spacing: 0;
  padding-right: 24px;
}
.primary-nav .dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Member page body — offset for fixed header */
.member-page-body { margin-top: var(--header-h); }
