/* ═══════════════════════════════════════════════════════
   INDEX — index.css
   Updated header to match advertisements.css style
   Laguna BelAir 4 HOA
═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --green-900: #062e22;
  --green-800: #0a4d3c;
  --green-700: #0e6650;
  --green-600: #138a6a;
  --green-400: #3dbe92;
  --green-200: #a8e6ce;
  --green-100: #d4f3e7;
  --green-50:  #edfaf4;

  --warm-50:   #faf9f6;
  --warm-100:  #f2f0eb;
  --warm-200:  #e4e0d8;

  --neutral-900: #1a1a1a;
  --neutral-700: #3d3d3d;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e9eaec;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;

  --red-600:   #c0392b;
  --red-50:    #fef2f2;
  --amber-600: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 12px 40px rgba(10,77,60,.14);

  --radius:    14px;
  --radius-sm: 8px;

  --transition: .2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV (updated to match advertisements.css)
═══════════════════════════════════════════════════════ */
.top-header-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .8; }
.logo-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.header-center-wrapper {
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.navbar-two-rows {
  display: flex;
  flex-direction: column;
  min-width: 680px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

.navbar-top-row a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}

.navbar-top-row a:hover { background: var(--green-50); }

.nav-sep {
  color: var(--neutral-300);
  font-size: 11px;
}

.navbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--green-800);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition);
}

.nav-link:hover,
.dropdown:hover > .dropdown-toggle {
  background: var(--green-50);
}

.nav-link.active,
a.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 8px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-800);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile dropdown toggle via JS */
.dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}

.dropdown-menu a:hover {
  background: var(--neutral-50);
  border-left-color: var(--green-800);
  padding-left: 21px;
}

/* ========================================
   HERO SECTION - Single Background with Grey Overlay
   Updated with subtitle styling
======================================== */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('BG.png');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(6,46,34,.82) 0%, rgba(10,77,60,.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  padding-top: 80px;
}
.hero-title {
  margin-bottom: 16px;
}
.hero-line {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.hero-name {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--font-display);
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  max-width: 550px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}
.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.search-input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  font-size: 16px;
  outline: none;
  font-family: var(--font-body);
}
.search-button {
  background-color: #0a4d3c;
  color: white;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.search-button:hover {
  background-color: #0d5f4a;
}

/* ========================================
   MAIN CONTAINER
======================================== */
.main-container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ========================================
   QUICK ACTION CIRCLES - Wavy Layout
======================================== */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: -60px 0 40px;
  position: relative;
  z-index: 50;
  max-width: 100%;
  overflow: visible;
  flex-wrap: wrap;
}
.action-circle {
  text-align: center;
  max-width: 120px;
  position: relative;
  z-index: 50;
  transition: transform 0.3s;
}
.action-circle a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.action-circle:nth-child(1) { transform: translateY(0); }
.action-circle:nth-child(2) { transform: translateY(20px); }
.action-circle:nth-child(3) { transform: translateY(0); }
.action-circle:nth-child(4) { transform: translateY(20px); }
.action-circle:nth-child(5) { transform: translateY(0); }
.circle-icon {
  width: 90px;
  height: 90px;
  background-color: #0a4d3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin: 0 auto 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.circle-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.action-circle p {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ========================================
   SECTION TITLE
======================================== */
.section-title {
  color: #0a4d3c;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* ========================================
   QUICK LINKS GRID - 5 Items, No Gaps, Popup in Front
======================================== */
.links-section {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 100%;
  justify-items: center;
}
.link-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 250px;
}
.link-box a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.link-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 100;
  background-color: #f8fafc;
  border-color: #0a4d3c;
}
.link-icon {
  background-color: #f0f8f5;
  color: #0a4d3c;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
  transition: all 0.3s ease;
}
.link-box:hover .link-icon {
  transform: scale(1.1);
  background-color: #0a4d3c;
  color: white;
}
.link-box h3 {
  color: #0a4d3c;
  font-size: 1rem;
  margin-bottom: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: color 0.3s;
}
.link-box:hover h3 {
  color: #0d5f4a;
}
.link-box p {
  color: #666;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.link-box:hover p {
  color: #555;
}

/* ========================================
   CALENDAR SECTION
======================================== */
.calendar-section {
  background-color: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.calendar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
/* Events Side */
.events-side {
  padding-right: 20px;
  border-right: 2px solid #e6eff7;
}
.selected-date-display {
  margin-bottom: 30px;
}
#current-date {
  color: #0a4d3c;
  font-size: 1.5rem;
  margin-bottom: 5px;
}
.events-list h4 {
  color: #0a4d3c;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e6eff7;
}
.events-container {
  min-height: 300px;
}
.no-events {
  text-align: center;
  color: #999;
  padding: 50px 20px;
}
.no-events i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ccc;
}
.event-item {
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #0a4d3c;
}
.event-time {
  color: #0a4d3c;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.event-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 5px;
}
.event-desc {
  color: #666;
  font-size: 0.9rem;
}
/* Calendar Side */
.calendar-side {
  padding-left: 20px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-header h3 {
  color: #0a4d3c;
  font-size: 1.3rem;
}
.calendar-header button {
  background-color: #f0f8f5;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a4d3c;
  transition: background-color 0.3s;
}
.calendar-header button:hover {
  background-color: #d6e8df;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  color: #0a4d3c;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-day {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
}
.calendar-day:hover:not(.empty) {
  background-color: #f0f8f5;
}
.calendar-day.empty {
  background-color: transparent;
  cursor: default;
}
.calendar-day.today {
  background-color: #0a4d3c;
  color: white;
  font-weight: bold;
}
.calendar-day.has-event {
  position: relative;
  font-weight: 600;
}
.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #ff6b6b;
  border-radius: 50%;
}
.calendar-day.selected {
  background-color: #4a90e2;
  color: white;
}
.calendar-day.selected.has-event::after {
  background-color: white;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--green-800);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: .88rem;
  line-height: 1.6;
}

.footer-links li i {
  margin-right: 7px;
  color: rgba(255,255,255,.7);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #b8e6d5;
  padding-left: 4px;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo-link {
  display: block;
  transition: opacity .25s;
}

.footer-logo-link:hover {
  opacity: .8;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1060px) {
  .top-header-container {
    flex-direction: column;
    padding: 14px 16px;
  }
  .header-center-wrapper {
    width: 100%;
  }
  .navbar-two-rows {
    min-width: auto;
    width: 100%;
  }
  .navbar-top-row {
    justify-content: center;
  }
  .navbar-bottom-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-logo-section {
    grid-column: 1/-1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-header-container {
    width: 95%;
    padding: 12px 15px;
  }
  .header-center-wrapper {
    padding: 8px 12px;
  }
  .navbar-top-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  .navbar-bottom-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .nav-sep {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section h3 {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-logo-section {
    justify-content: center;
  }
  .hero-line {
    font-size: 1rem;
  }
  .hero-name {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .quick-actions {
    gap: 20px;
    margin-top: -40px;
  }
  .action-circle {
    max-width: 100px;
  }
  .circle-icon {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }
  .action-circle p {
    font-size: 12px;
  }
  .calendar-container {
    grid-template-columns: 1fr;
  }
  .events-side {
    border-right: none;
    padding-right: 0;
    border-bottom: 2px solid #e6eff7;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  .calendar-side {
    padding-left: 0;
  }
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .link-box {
    padding: 20px 10px;
  }
  .link-box h3 {
    font-size: 0.85rem;
  }
  .link-box p {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .logo-image {
    width: 100px;
  }
  .navbar-top-row a {
    padding: 3px 6px;
    font-size: 11px;
  }
  .navbar-bottom-row .nav-link,
  .navbar-bottom-row .dropdown-toggle {
    font-size: 11px;
    padding: 5px 7px;
  }
  .hero-section {
    height: 500px;
  }
  .hero-name {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.8rem;
  }
  .quick-actions {
    margin-top: -40px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .circle-icon {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }
  .calendar-section {
    padding: 20px 15px;
  }
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .link-box h3 {
    font-size: 0.9rem;
  }
  .link-box p {
    font-size: 0.8rem;
  }
}