/*
Theme Name: Maeve O'Connell
Theme URI: https://maeveoconnell.ie
Author: Realise4
Author URI: https://realise4.com
Description: A custom Pinterest-style WordPress theme for Maeve O'Connell TD, Fine Gael, Dublin Rathdown.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maeve-theme
Tags: masonry, pinterest, political, fine-gael, responsive, custom-colors, custom-logo
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --fg-blue:        #003F87;
  --fg-blue-dark:   #002d63;
  --fg-blue-light:  #e8f0fb;
  --fg-orange:      #E8611A;
  --fg-green:       #00A550;
  --fg-white:       #ffffff;
  --fg-light:       #f5f7fa;
  --fg-grey:        #6b7280;
  --fg-dark:        #1a1a2e;
  --fg-border:      #e2e8f0;

  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --font-size-sm:   14px;
  --font-size-lg:   18px;
  --font-size-xl:   22px;
  --font-size-h1:   2.5rem;
  --font-size-h2:   2rem;
  --font-size-h3:   1.5rem;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);

  --header-height:  72px;
  --max-width:      1400px;
  --transition:     0.25s ease;
}

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

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg-dark);
  background: var(--fg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--fg-orange); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg-blue-dark);
}

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; padding-top: calc(var(--header-height) + 46px); } /* header + category bar */

/* =========================================================
   MASONRY FILTER ANIMATION
   ========================================================= */
.masonry-item {
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.3s ease;
}

.masonry-item.is-hidden {
  display: none;
}

.masonry-item.is-filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.masonry-item.is-filtered-in {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masonry-item.animate-in {
  animation: fadeInUp 0.3s ease forwards;
}

/* =========================================================
   HEADER v1.2 — New layout with logo image + search + category bar
   ========================================================= */
:root {
  --header-height: 110px; /* taller to accommodate logo image */
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--fg-white);
  border-bottom: 3px solid var(--fg-blue);
  box-shadow: var(--shadow-md);
}

/* Top bar: logo | search | fg badge */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0;
  gap: 1.5rem;
}

/* Logo image */
.site-logo a { display: block; line-height: 0; }
.site-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search input[type="search"] {
  width: 100%;
  padding: 0.55rem 2.8rem 0.55rem 1rem;
  border: 2px solid var(--fg-border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--fg-dark);
  background: var(--fg-light);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input[type="search"]:focus {
  border-color: var(--fg-blue);
  box-shadow: 0 0 0 3px var(--fg-blue-light);
  background: var(--fg-white);
}

.header-search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fg-blue);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fg-white);
  font-size: 0.85rem;
  transition: background var(--transition);
}

.header-search button:hover { background: var(--fg-orange); }

/* Fine Gael badge */
.fg-badge img {
  height: 64px;
  width: auto;
  display: block;
}

/* Bottom bar: navigation */
.header-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.main-nav ul li a {
  display: block;
  padding: 0.4rem 1.1rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-blue);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: var(--fg-blue);
  color: var(--fg-white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--fg-blue);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--fg-blue);
}

/* =========================================================
   CATEGORY FILTER BAR
   ========================================================= */
.category-filter-bar {
  background: var(--fg-white);
  border-bottom: 1px solid var(--fg-border);
  padding: 0.5rem 1.5rem;
  position: sticky;
  top: var(--header-height);
  z-index: 999;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar { display: none; }

.category-filter-bar .filter-inner {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cat-filter-btn {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 24px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: var(--fg-orange);
  color: var(--fg-white);
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--fg-blue);
  color: var(--fg-white);
  transform: translateY(-1px);
}

.cat-filter-btn.all-btn {
  background: var(--fg-blue);
}

.cat-filter-btn.all-btn:hover,
.cat-filter-btn.all-btn.active {
  background: var(--fg-orange);
}

/* =========================================================
   MASONRY GRID (Homepage)
   ========================================================= */
.masonry-section {
  padding: 2rem 0 3rem;
}

.masonry-grid {
  columns: 5 220px;
  column-gap: 1rem;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fg-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.masonry-item a { display: block; color: inherit; }

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.masonry-item .item-caption {
  padding: 0.75rem 1rem;
}

.masonry-item .item-caption .item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-blue-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.masonry-item .item-caption .item-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-white);
  background: var(--fg-orange);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.25rem;
}

.masonry-item .item-caption .item-excerpt {
  font-size: var(--font-size-sm);
  color: var(--fg-grey);
  line-height: 1.4;
}

/* No image fallback */
.masonry-item.no-image {
  background: var(--fg-blue);
  color: var(--fg-white);
}

.masonry-item.no-image .item-caption .item-title { color: var(--fg-white); }
.masonry-item.no-image .item-caption .item-excerpt { color: rgba(255,255,255,0.75); }

/* Pagination */
.pagination-wrap {
  text-align: center;
  padding: 2rem 0;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.pagination-wrap .page-numbers li a,
.pagination-wrap .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: 2px solid var(--fg-border);
  color: var(--fg-blue);
  transition: all var(--transition);
}

.pagination-wrap .page-numbers li a:hover,
.pagination-wrap .page-numbers li span.current {
  background: var(--fg-blue);
  color: var(--fg-white);
  border-color: var(--fg-blue);
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-wrap {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.post-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.post-hero img { width: 100%; height: auto; }

.post-header { margin-bottom: 2rem; }

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-categories a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-white);
  background: var(--fg-blue);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
}

.post-title {
  font-size: var(--font-size-h1);
  color: var(--fg-blue-dark);
  margin-bottom: 1rem;
}

.post-meta {
  font-size: var(--font-size-sm);
  color: var(--fg-grey);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-content {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--fg-dark);
}

.post-content h2 { font-size: var(--font-size-h2); margin: 2rem 0 1rem; color: var(--fg-blue); }
.post-content h3 { font-size: var(--font-size-h3); margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-content blockquote {
  border-left: 4px solid var(--fg-orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--fg-blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: var(--font-size-xl);
}

/* Return to map button */
.return-to-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--fg-blue);
  color: var(--fg-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}

.return-to-map:hover {
  background: var(--fg-orange);
  color: var(--fg-white);
  transform: translateX(-4px);
}

.return-to-map::before { content: '←'; font-size: 1.1em; }

/* Post tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fg-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags .tags-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--fg-grey);
}

.post-tags a {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--fg-blue);
  border-radius: 20px;
  color: var(--fg-blue);
  font-weight: 600;
  transition: all var(--transition);
}

.post-tags a:hover {
  background: var(--fg-blue);
  color: var(--fg-white);
}

/* =========================================================
   MAP PAGE (Working On)
   ========================================================= */
.map-page-wrap { padding: 2rem 0; }

.map-page-header {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.map-page-header h1 {
  font-size: var(--font-size-h1);
  color: var(--fg-blue-dark);
  margin-bottom: 0.5rem;
}

.map-page-header p {
  font-size: var(--font-size-lg);
  color: var(--fg-grey);
}

#constituency-map {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

#constituency-map > div {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Map tooltip */
.map-tooltip {
  background: var(--fg-white);
  border: 2px solid var(--fg-blue);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
  cursor: pointer;
}

.map-tooltip .tooltip-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-blue-dark);
  line-height: 1.3;
}

.map-tooltip .tooltip-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-orange);
  margin-bottom: 0.25rem;
}

.map-tooltip .tooltip-close {
  position: absolute;
  top: 0.35rem; right: 0.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--fg-grey);
}

/* Map posts list below map */
.map-posts-list {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.map-post-card {
  background: var(--fg-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--fg-blue);
  transition: all var(--transition);
}

.map-post-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--fg-orange);
  transform: translateX(4px);
}

.map-post-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.map-post-card p {
  font-size: var(--font-size-sm);
  color: var(--fg-grey);
  margin-bottom: 0.75rem;
}

.map-post-card a.read-more {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--fg-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-wrap {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.about-photo img { width: 100%; height: auto; }

.about-content h1 {
  font-size: var(--font-size-h1);
  color: var(--fg-blue-dark);
  margin-bottom: 0.5rem;
}

.about-content .subtitle {
  font-size: var(--font-size-xl);
  color: var(--fg-orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-content .about-body {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--fg-dark);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.contact-wrap h1 {
  font-size: var(--font-size-h1);
  color: var(--fg-blue-dark);
  margin-bottom: 0.5rem;
}

.contact-wrap .page-intro {
  font-size: var(--font-size-lg);
  color: var(--fg-grey);
  margin-bottom: 2.5rem;
}

/* Form tabs */
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--fg-border);
}

.form-tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--fg-grey);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.form-tab-btn.active {
  color: var(--fg-blue);
  border-bottom-color: var(--fg-blue);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

/* Forms */
.maeve-form .form-group {
  margin-bottom: 1.25rem;
}

.maeve-form label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-blue-dark);
  margin-bottom: 0.4rem;
}

.maeve-form input,
.maeve-form textarea,
.maeve-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--fg-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--fg-dark);
  background: var(--fg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.maeve-form input:focus,
.maeve-form textarea:focus {
  border-color: var(--fg-blue);
  box-shadow: 0 0 0 3px var(--fg-blue-light);
}

.maeve-form textarea { min-height: 150px; resize: vertical; }

.maeve-form .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--fg-blue);
  color: var(--fg-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
}

.maeve-form .submit-btn:hover {
  background: var(--fg-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Honeypot */
.hp-field { display: none !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--fg-blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-white);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li { margin-bottom: 0.5rem; }

.footer-nav ul li a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-nav ul li a:hover { color: var(--fg-orange); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.social-links a:hover { color: var(--fg-orange); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   PAGE HERO BANNER
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--fg-blue-dark) 0%, var(--fg-blue) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 0;
}

.page-hero h1 {
  font-size: var(--font-size-h1);
  color: var(--fg-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.8);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .masonry-grid { columns: 3 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 260px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 90px; }

  .header-top { padding: 0.4rem 1rem 0; gap: 0.75rem; }
  .site-logo img { height: 52px; }
  .fg-badge img { height: 44px; }
  .header-search { max-width: 100%; }
  .header-bottom { padding: 0 1rem 0.4rem; }

  .main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--fg-white); border-bottom: 2px solid var(--fg-blue); padding: 1rem; box-shadow: var(--shadow-md); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .menu-toggle { display: block; }

  .masonry-grid { columns: 2 160px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 280px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  #constituency-map { height: 400px; padding: 0 1rem; }
  .post-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 1; padding: 0 1rem; }
  .container { padding: 0 1rem; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
