/* ================================================================
   City of McLainberg — Official Municipal Website
   Stylesheet v1.0
   ================================================================ */

/* ----------------------------------------------------------------
   1. Custom Properties
   ---------------------------------------------------------------- */
:root {
  --navy:        #0D1B3E;
  --blue:        #1B3A7A;
  --blue-mid:    #2A5299;
  --blue-light:  #3B6DC5;
  --gold:        #C8982A;
  --gold-light:  #E5B84B;
  --gold-dark:   #8B6914;
  --gold-pale:   #FBF3DC;
  --white:       #FFFFFF;
  --off-white:   #F4F6FA;
  --gray-50:     #F0F2F7;
  --gray-100:    #E4E8F0;
  --gray-200:    #CDD2E0;
  --gray-400:    #9499B0;
  --gray-600:    #636680;
  --gray-800:    #2A2D40;
  --text:        #1A1C2A;
  --text-light:  #545668;
  --link:        #1B3A7A;
  --link-hover:  #C8982A;
  --border:      #DDE0EB;
  --bg:          #F4F6FA;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow:      0 3px 12px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  all 0.24s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Open Sans', -apple-system, system-ui, sans-serif;
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--link-hover); }
ul { list-style: none; }

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.0rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------
   4. Layout Utilities
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 36px;
  margin-top: 8px;
}
.section-subtitle.center { text-align: center; }

/* ----------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ----------------------------------------------------------------
   6. Header & Top Bar
   ---------------------------------------------------------------- */
#site-header { position: sticky; top: 0; z-index: 1000; }

.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}
.city-identity { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.city-seal {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200, 152, 42, 0.5));
}
.city-name-block { display: flex; flex-direction: column; line-height: 1.15; }
.city-name-block .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold-light);
  font-weight: 600;
}
.city-name-block .name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.city-name-block .est { font-size: 0.65rem; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; }

.utility-links { display: flex; align-items: center; }
.utility-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,0.12);
  line-height: 64px;
  white-space: nowrap;
  transition: var(--transition);
}
.utility-links a:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.utility-links a:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }

/* ----------------------------------------------------------------
   7. Main Navigation
   ---------------------------------------------------------------- */
.main-nav { background: var(--blue); box-shadow: var(--shadow); }
.main-nav .container { display: flex; align-items: stretch; position: relative; }

.nav-list { display: flex; align-items: stretch; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 16px;
  height: 50px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--gold);
}
.has-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.7; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--blue); background: var(--off-white); padding-left: 26px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 14px;
  cursor: pointer;
  margin-left: auto;
}

/* ----------------------------------------------------------------
   8. Hero Section (Homepage)
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(145deg, #0A1628 0%, #1B3A7A 55%, #2A5299 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 100px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid rgba(229, 184, 75, 0.45);
  border-radius: 40px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 34px;
  font-weight: 300;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-seal {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-seal img {
  width: 230px;
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.45)) drop-shadow(0 0 18px rgba(200,152,42,0.35));
  animation: sealFloat 7s ease-in-out infinite;
}
@keyframes sealFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.hero-seal-caption { font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 64px; }

/* ----------------------------------------------------------------
   9. Quick Links Bar
   ---------------------------------------------------------------- */
.quick-links { background: var(--gold); }
.quick-links .container { display: flex; flex-wrap: wrap; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  border-right: 1px solid rgba(13,27,62,0.18);
  transition: var(--transition);
  white-space: nowrap;
}
.quick-link:hover { background: var(--gold-dark); color: var(--white); }
.quick-link .ql-icon { font-size: 1.05rem; }

/* ----------------------------------------------------------------
   10. Cards
   ---------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.card-date { font-size: 0.78rem; color: var(--gray-400); }
.card-footer {
  padding: 13px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Service Tiles */
.service-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.service-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold);
  color: var(--text);
}
.service-tile .tile-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.service-tile .tile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-tile .tile-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; }

/* ----------------------------------------------------------------
   11. Stats Row
   ---------------------------------------------------------------- */
.stats-row { background: var(--blue); padding: 40px 0; color: var(--white); }
.stats-row .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.3px; }

/* ----------------------------------------------------------------
   12. Interior Page Header
   ---------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 44px 0 38px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 24px
  );
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 4px; }
.page-header .page-subtitle { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 0; }
.page-header-bar { height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); }

/* ----------------------------------------------------------------
   13. Breadcrumb
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { opacity: 0.45; }

.breadcrumb-light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb-light a { color: var(--blue); }
.breadcrumb-light a:hover { color: var(--gold-dark); }
.breadcrumb-light span { color: var(--gray-400); }

/* ----------------------------------------------------------------
   14. Content Layout
   ---------------------------------------------------------------- */
main { min-height: 60vh; }
.content-with-sidebar {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: 120px; }
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-box-title {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 18px;
  letter-spacing: 0.3px;
}
.sidebar-nav a {
  display: block;
  padding: 9px 18px;
  font-size: 0.87rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--blue);
  background: var(--off-white);
  padding-left: 24px;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-contact { padding: 14px 18px; font-size: 0.84rem; line-height: 1.7; }
.sidebar-contact strong { color: var(--navy); display: block; font-size: 0.85rem; margin-bottom: 6px; }

/* ----------------------------------------------------------------
   15. Tables
   ---------------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 24px; }
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}
.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table tr:hover td { background: var(--gold-pale); }
.data-table td a { color: var(--blue); font-weight: 500; }
.data-table td a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ----------------------------------------------------------------
   16. Info Box
   ---------------------------------------------------------------- */
.info-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.info-box.gold { border-left-color: var(--gold); }
.info-box.success { border-left-color: #27AE60; background: #F0FBF4; }
.info-box.warning { border-left-color: #E67E22; background: #FEF9F0; }
.info-box h4 { font-size: 0.95rem; margin-bottom: 6px; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.info-box p { font-size: 0.87rem; color: var(--text-light); margin: 0; }

/* ----------------------------------------------------------------
   17. Prose Content
   ---------------------------------------------------------------- */
.prose h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: var(--font-body);
  font-weight: 700;
}
.prose p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose li { font-size: 0.95rem; line-height: 1.8; margin-bottom: 5px; list-style: disc; }
.prose ol li { list-style: decimal; }

/* ----------------------------------------------------------------
   18. Municipal Code Specific
   ---------------------------------------------------------------- */
.code-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.code-title-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  border-left: 4px solid var(--blue);
  color: var(--text);
}
.code-title-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateX(4px);
  color: var(--text);
}
.code-title-card .number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 5px;
}
.code-title-card .title-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.code-title-card .chapter-count { font-size: 0.8rem; color: var(--text-light); }

.ordinance { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.ordinance-chapter {
  border-bottom: 2px solid var(--gold);
  padding: 18px 26px;
  background: var(--off-white);
}
.ordinance-chapter h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: 3px; }
.ordinance-chapter .chapter-subtitle { font-size: 0.84rem; color: var(--text-light); }
.ordinance-section { padding: 22px 26px; border-bottom: 1px solid var(--gray-100); }
.ordinance-section:last-child { border-bottom: none; }
.ordinance-section h3 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; font-family: var(--font-body); }
.ordinance-section p { font-size: 0.9rem; line-height: 1.8; color: var(--text); margin-bottom: 8px; }
.ordinance-section ol, .ordinance-section ul { padding-left: 22px; margin-top: 8px; }
.ordinance-section li { font-size: 0.9rem; line-height: 1.75; margin-bottom: 4px; list-style: decimal; }
.section-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
  font-family: var(--font-body);
}

/* ----------------------------------------------------------------
   19. Police Department Specific
   ---------------------------------------------------------------- */
.pd-hero {
  background: linear-gradient(135deg, #06101F 0%, #142347 60%, #0D1B3E 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
}
.pd-hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; }
.pd-badge { width: 140px; height: auto; filter: drop-shadow(0 4px 18px rgba(200,152,42,0.6)); flex-shrink: 0; }
.pd-hero-text h1 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.pd-hero-text p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.7; margin: 0; }

.emergency-bar { background: #B22222; color: var(--white); text-align: center; padding: 12px; font-size: 0.88rem; font-weight: 600; }
.emergency-bar a { color: var(--gold-light); font-weight: 700; }

.pd-mission { background: var(--navy); color: var(--white); padding: 44px 0; text-align: center; }
.pd-mission h2 { color: var(--gold-light); font-size: 1.6rem; margin-bottom: 16px; }
.pd-mission .mission-text { max-width: 720px; margin: 0 auto 36px; font-size: 1rem; color: rgba(255,255,255,0.78); line-height: 1.75; }
.pd-values { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.pd-value { text-align: center; }
.pd-value .value-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.pd-value .value-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--gold-light); font-weight: 700; display: block; }
.pd-value .value-desc { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

.pd-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.pd-tile:hover { box-shadow: var(--shadow-lg); border-top-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.pd-tile .pd-tile-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.pd-tile .pd-tile-title { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.pd-tile .pd-tile-desc { font-size: 0.83rem; color: var(--text-light); line-height: 1.55; }

.pd-contact-bar { background: var(--blue); color: var(--white); padding: 22px 0; }
.pd-contact-bar .container { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.pd-contact-item { display: flex; flex-direction: column; gap: 2px; }
.pd-contact-item .ci-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.55); }
.pd-contact-item .ci-value { font-size: 0.95rem; font-weight: 600; }
.pd-contact-item a.ci-value { color: var(--gold-light); }
.pd-contact-item a.ci-value:hover { color: var(--white); }

/* ----------------------------------------------------------------
   20. Events
   ---------------------------------------------------------------- */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  margin-bottom: 14px;
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow); }
.event-date {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 18px 20px;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .month { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.event-date .day { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.event-date .year { font-size: 0.7rem; opacity: 0.55; }
.event-body { padding: 18px 22px; }
.event-body h3 { font-size: 1rem; margin-bottom: 5px; }
.event-body .event-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 6px; }
.event-body p { font-size: 0.86rem; color: var(--text-light); margin: 0; }

/* ----------------------------------------------------------------
   21. Footer
   ---------------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-seal { width: 60px; margin-bottom: 14px; }
.footer-city-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--white); margin-bottom: 2px; }
.footer-est { font-size: 0.7rem; letter-spacing: 1.5px; color: var(--gold-light); margin-bottom: 14px; text-transform: uppercase; }
.footer-address { font-size: 0.84rem; line-height: 1.85; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ----------------------------------------------------------------
   22. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .utility-links { display: none; }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    z-index: 200;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a {
    height: auto;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-bottom-color: rgba(255,255,255,0.08) !important;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    background: rgba(0,0,0,0.2);
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { padding-left: 32px; color: rgba(255,255,255,0.7); background: transparent; border-bottom-color: rgba(255,255,255,0.06); }
  .dropdown li a:hover { padding-left: 38px; color: var(--gold-light); background: rgba(255,255,255,0.05); }
  .hero .container { flex-direction: column; text-align: center; padding-top: 40px; padding-bottom: 72px; }
  .hero-seal { order: -1; }
  .hero-seal img { width: 160px; }
  .hero-ctas { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .pd-service-grid { grid-template-columns: 1fr; }
  .pd-values { flex-direction: column; gap: 24px; }
  .pd-hero .container { flex-direction: column; text-align: center; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .code-index-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .quick-link { flex: 1 0 45%; }
}
