/*
Theme Name:  University Village of Massillon
Theme URI:   https://www.universityvillageofmassillon.com
Author:      University Village HOA
Author URI:  https://www.universityvillageofmassillon.com
Description: A clean, modern HOA community theme for University Village of Massillon. Features a hero slider, board directory, document links, events calendar, and newsletter signup.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uv-massillon
Tags:        community, hoa, neighborhood, clean, modern
*/

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --navy:    #1B2D45;
  --gold:    #C8973A;
  --cream:   #F7F3ED;
  --white:   #FFFFFF;
  --slate:   #4A5568;
  --light:   #EAE6DF;
  --accent:  #2E5077;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(27,45,69,.12);
  --max-w:   1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }

/* ─────────────────────────────────────────
   TOP BAR
───────────────────────────────────────── */
.uv-topbar {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .45rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.uv-topbar a { color: var(--gold); text-decoration: none; }
.uv-topbar a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   SITE HEADER / NAV
───────────────────────────────────────── */
#masthead {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(27,45,69,.1);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: .85rem; text-decoration: none; }

.site-branding img {
  max-height: 110px;
  width: auto;
}

img.custom-logo {
  max-height: 110px !important;
  width: auto !important;
  height: auto !important;
}

.logo-crest {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-decoration: none;
}

.site-branding-text { line-height: 1.15; }
.site-branding-text .site-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.site-branding-text .site-title:hover { color: var(--accent); }
.site-branding-text .site-description {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* Primary Navigation */
#primary-navigation { display: flex; align-items: center; }
#primary-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
#primary-navigation ul li a {
  text-decoration: none;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  letter-spacing: .03em;
  display: block;
}
#primary-navigation ul li a:hover {
  background: var(--light);
  color: var(--accent);
}

/* Active page — gold highlight */
#primary-navigation ul li.current-menu-item > a,
#primary-navigation ul li.current-menu-ancestor > a,
#primary-navigation ul li.current-page-ancestor > a {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: .4rem .7rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1;
}

/* ─────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────── */
.uv-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--navy);
}
.uv-slides {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.uv-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.uv-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.52);
}
.uv-slide-caption {
  position: relative; z-index: 2;
  padding: 2.5rem 3rem;
  max-width: 640px;
}
.uv-slide-caption h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.uv-slide-caption p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-top: .5rem;
}

.uv-hero-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 1rem; z-index: 10; pointer-events: none;
}
.uv-hero-arrows button {
  pointer-events: all;
  background: rgba(255,255,255,.18);
  border: none; cursor: pointer;
  color: #fff; font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background .2s;
  line-height: 1;
}
.uv-hero-arrows button:hover { background: rgba(255,255,255,.35); }

.uv-hero-dots {
  position: absolute; bottom: 1.25rem; right: 2rem;
  display: flex; gap: .5rem; z-index: 10;
}
.uv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}
.uv-dot.active { background: var(--gold); border-color: var(--white); }

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
}

/* ─────────────────────────────────────────
   TAGLINE BLOCK
───────────────────────────────────────── */
.uv-tagline {
  text-align: center;
  margin-bottom: 3.5rem;
}
.uv-tagline h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.uv-tagline p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 560px;
  margin: .75rem auto 0;
}
.gold-rule {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   HOMEPAGE MAIN GRID
   Col 1 & 2: 2×2 small cards
   Col 3:     Events spanning both rows
───────────────────────────────────────── */
.uv-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "dues  docs   events"
    "board newsletter events";
  gap: 1.75rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

/* Assign each card to its named area */
.uv-home-grid > .uv-card-dues        { grid-area: dues; }
.uv-home-grid > .uv-card-docs        { grid-area: docs; }
.uv-home-grid > .uv-card-board       { grid-area: board; }
.uv-home-grid > .uv-card-newsletter  { grid-area: newsletter; }
.uv-home-grid > .uv-card-events      { grid-area: events; }

/* All direct grid children: prevent blowout */
.uv-home-grid > * { min-width: 0; }

/* Events card: flex column so widget fills height */
.uv-card-events {
  display: flex;
  flex-direction: column;
}
.uv-card-body-events {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.uv-card-body-events .uv-events-widget-wrap,
.uv-card-body-events .uv-event-empty {
  flex: 1;
  margin-top: .75rem;
}

/* Newsletter card form styling */
.uv-newsletter-card-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.uv-newsletter-card-form input[type="email"] {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--light);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  color: var(--navy);
  outline: none;
  transition: border-color .2s;
}
.uv-newsletter-card-form input:focus { border-color: var(--gold); }
.uv-newsletter-card-form .uv-btn { width: 100%; text-align: center; }

/* Responsive: tablet → 2 cols, events full width on top */
@media (max-width: 960px) {
  .uv-home-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "events events"
      "dues   docs"
      "board  newsletter";
  }
}

/* Responsive: mobile → single column */
@media (max-width: 580px) {
  .uv-home-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "events"
      "dues"
      "docs"
      "board"
      "newsletter";
  }
}

/* ─────────────────────────────────────────
   CARDS (shared)
───────────────────────────────────────── */
.uv-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.uv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(27,45,69,.16);
}
.uv-card-bar { height: 11px; background: var(--gold); }
.uv-card-bar.navy   { background: var(--navy); }
.uv-card-bar.accent { background: var(--accent); }
.uv-card-body { padding: 1.75rem; }
.uv-card-icon {
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.uv-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.uv-card-body p { color: var(--slate); font-size: .93rem; }

/* ─────────────────────────────────────────
   BOARD LIST
───────────────────────────────────────── */
.uv-board-list { list-style: none; margin-top: .75rem; }
.uv-board-list li {
  display: flex; align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--light);
}
.uv-board-list li:last-child { border-bottom: none; }
.uv-board-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
}
.uv-board-name  { font-weight: 600; font-size: .93rem; color: var(--navy); display: block; }
.uv-board-role  { font-size: .8rem; color: var(--gold); display: block; }
.uv-board-email { font-size: .82rem; color: var(--slate); display: block; }
.uv-board-email a { color: var(--accent); text-decoration: none; }
.uv-board-email a:hover { color: var(--navy); text-decoration: underline; }
.uv-board-phone { font-size: .88rem; color: var(--slate); display: block; }
.uv-board-phone a { color: inherit; text-decoration: none; }
.uv-board-phone a:hover { color: var(--accent); }

/* Treasurer note — small text at bottom of board card */
.uv-board-treasurer-note {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--light);
  font-size: .78rem;
  color: var(--slate);
  line-height: 1.5;
}
.uv-board-treasurer-note a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.uv-board-treasurer-note a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   DOCUMENT LIST
───────────────────────────────────────── */
.uv-doc-list { list-style: none; margin-top: .75rem; }
.uv-doc-list li { margin-bottom: .65rem; }
.uv-doc-list a {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
  color: var(--accent);
  font-size: .93rem;
  font-weight: 500;
  padding: .55rem .9rem;
  border-radius: 8px;
  background: var(--cream);
  transition: background .2s, color .2s;
}
.uv-doc-list a:hover { background: var(--light); color: var(--navy); }

/* ─────────────────────────────────────────
   CTA BUTTON
───────────────────────────────────────── */
.uv-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .93rem;
  transition: background .2s;
  border: none; cursor: pointer;
}
.uv-btn:hover { background: #b5832d; color: var(--white); }

/* ─────────────────────────────────────────
   CONTACT NOTE
───────────────────────────────────────── */
.uv-contact-note {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  font-size: .9rem;
  color: var(--slate);
  margin-bottom: 3.5rem;
}

/* ─────────────────────────────────────────
   EVENTS WIDGET AREA
───────────────────────────────────────── */
.uv-home-events .uv-section-title { margin-bottom: 1rem; }

.uv-events-widget-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  min-height: 300px;
}

/* Make the Google Calendar / calendar plugin output look at home */
.uv-events-widget-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.uv-events-widget-wrap th,
.uv-events-widget-wrap td {
  padding: .4rem .6rem;
  text-align: center;
  font-size: .88rem;
}
.uv-events-widget-wrap th {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--light);
}
.uv-events-widget-wrap td a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.uv-events-widget-wrap td a:hover { color: var(--gold); }

.uv-events-widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: none;
}

.uv-events { margin-bottom: 3.5rem; }
.uv-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.uv-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light);
}
.uv-event-empty {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  text-align: center;
  color: var(--slate);
}
.uv-event-empty .empty-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }

/* Individual event card */
.uv-event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.uv-event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: .5rem .9rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 60px;
}
.uv-event-date .month { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.uv-event-date .day   { font-size: 1.5rem; font-weight: 700; line-height: 1; font-family: 'Playfair Display', serif; }
.uv-event-info h4 { font-size: 1rem; font-weight: 600; color: var(--navy); }
.uv-event-info p  { font-size: .88rem; color: var(--slate); }

/* ─────────────────────────────────────────
   WORDPRESS CONTENT AREA
───────────────────────────────────────── */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 1.5rem 0 .75rem;
}
.entry-content p { margin-bottom: 1rem; color: var(--slate); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--slate); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#colophon {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: .82rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-brand span { color: var(--gold); }

#footer-navigation ul {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
#footer-navigation ul li a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: .3rem .75rem;
  border-radius: 6px;
  transition: color .2s;
  font-size: .82rem;
}
#footer-navigation ul li a:hover { color: var(--gold); }

.site-info {
  width: 100%;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
}
.site-info a { color: var(--gold); text-decoration: none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 700px) {
  .uv-topbar { font-size: .74rem; }

  .menu-toggle { display: block; }
  #primary-navigation {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(27,45,69,.15);
    padding: 1rem 2rem 1.5rem;
    z-index: 300;
  }
  #primary-navigation.is-open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: .1rem; }
  #primary-navigation ul li a { padding: .6rem .75rem; font-size: .95rem; }

  .uv-hero { height: 380px; }
  .uv-slide-caption { padding: 1.5rem; }
  .uv-slide-caption h2 { font-size: 1.7rem; }

  .uv-tagline h1 { font-size: 1.65rem; }


  .footer-inner { flex-direction: column; text-align: center; }
}
