/*
Theme Name: Express Care of Tampa Bay
Theme URI: https://expresscareoftampabay.com/
Author: Express Care of Tampa Bay
Author URI: https://expresscareoftampabay.com/
Description: Custom WordPress theme for Express Care of Tampa Bay urgent care clinics. Pixel-for-pixel port of the original static site with editable menus, pages, services, locations and promotions.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expresscare
Tags: healthcare, medical, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready
*/


/* CSS Variables */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --primary-dark: #16293f;
  --accent: #0891b2;
  --accent-light: #22d3ee;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-phone {
  background-color: var(--success);
  color: var(--white);
}

.btn-phone:hover {
  background-color: #059669;
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top a {
  color: var(--white);
}

.header-top a:hover {
  color: var(--accent-light);
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-600);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current_page_item > a::after,
.nav-links .current_page_ancestor > a::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current_page_item > a,
.nav-links .current_page_ancestor > a {
  color: var(--accent);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 200px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.service-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Location Cards */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.location-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.location-map {
  height: 200px;
  background-color: var(--gray-200);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  padding: 1.5rem;
}

.location-info h3 {
  margin-bottom: 1rem;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.location-detail svg {
  flex-shrink: 0;
  color: var(--accent);
}

.location-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta .btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta .btn-secondary:hover {
  background-color: transparent;
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.form-control.error {
  border-color: var(--error);
}

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

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  background-color: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info-card h3 {
  margin-bottom: 1rem;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--white);
}

/* Services Page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  background-color: var(--gray-100);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Responsive */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* Virtual Visit Section Responsive */
@media (max-width: 968px) {
  .section-alt > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .header-top {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .mobile-toggle {
    display: flex;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Promotions Page */
.promotions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.promotions-flyer {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.promotions-details h2 {
  margin-bottom: 1.5rem;
}

.promo-card {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
}

.promo-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.promo-card ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.promo-card li {
  margin-bottom: 0.25rem;
  color: var(--gray-600);
}

.promo-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.promo-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.promo-cta p {
  color: var(--white);
  margin-bottom: 1rem;
}

.promo-phones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 968px) {
  .promotions-content {
    grid-template-columns: 1fr;
  }
}

/* Promo Popup Modal */
.promo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.promo-modal {
  position: relative;
  max-width: 500px;
  max-height: 90vh;
  margin: 1rem;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.promo-modal-overlay.active .promo-modal {
  transform: scale(1);
}

.promo-modal img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.promo-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.2s ease;
  z-index: 1;
}

.promo-modal-close:hover {
  background-color: var(--gray-100);
}

.promo-modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--gray-700);
}

.promo-modal-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

.promo-modal-link:hover {
  color: var(--accent-light);
}

@media (max-width: 480px) {
  .promo-modal {
    max-width: 95%;
  }

  .promo-modal-close {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   WordPress additions
   Everything above this line is the original static-site stylesheet, verbatim.
   ========================================================================== */

/* --- Dropdown submenus (WordPress menus can be nested; the static site had no
       submenus, so these rules only kick in when an editor adds a child item) --- */
.nav-links li {
  position: relative;
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .sub-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
}

.nav-links .sub-menu a::after {
  display: none;
}

.nav-links .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

@media (max-width: 768px) {
  .nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
}

/* --- Accessibility helpers required by WordPress --- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  clip: auto !important;
  clip-path: none;
  color: var(--primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Keep the sticky admin bar from covering the sticky header */
.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* --- Editor content: styles for anything typed into the WordPress editor --- */
.entry-content > * {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  margin: 0 0 1.25rem 1.5rem;
  padding-left: 0.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray-600);
  font-style: italic;
}

.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--gray-200);
  padding: 0.75rem;
  text-align: left;
}

.entry-content th {
  background-color: var(--gray-50);
  color: var(--primary);
}

.entry-content img {
  border-radius: var(--radius);
}

.entry-content pre {
  background-color: var(--gray-50);
  border-radius: var(--radius);
  overflow-x: auto;
  padding: 1rem;
}

.entry-content figure {
  margin-bottom: 1.5rem;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Core alignment classes */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
  width: 90vw;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

@media (max-width: 968px) {
  .alignwide,
  .alignfull {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* --- Narrow content column for editor-driven pages, posts and archives --- */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

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

.entry-meta {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.entry-meta a {
  color: var(--gray-600);
}

.post-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--primary);
  padding: 0.5rem 0.9rem;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* --- Search form --- */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}

.search-form .form-control {
  margin: 0;
}

/* --- Footer widgets --- */
.footer-col .widget {
  margin-bottom: 1.5rem;
}

.footer-col .widget ul {
  list-style: none;
}

.footer-col .widget li {
  margin-bottom: 0.5rem;
}

/* --- Contact form feedback (server-backed submissions) --- */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Fade-in animation used by the IntersectionObserver in main.js ---
       Scoped to .js (set in <head> before paint) so that with scripting off the
       cards are simply visible rather than stuck at opacity 0. --- */
.js .js-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .js-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .js-animate,
  .js .js-animate.animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero without an image: use the full width rather than leaving a gap --- */
.hero.hero-no-image .container {
  grid-template-columns: 1fr;
}

.hero.hero-no-image .hero-content {
  max-width: 760px;
}

/* --- "Wide / Sectioned Page" template: content supplies its own sections --- */
.entry-content-wide > * {
  margin-bottom: 0;
}

.entry-content-wide > p,
.entry-content-wide > h1,
.entry-content-wide > h2,
.entry-content-wide > h3,
.entry-content-wide > ul,
.entry-content-wide > ol,
.entry-content-wide > blockquote,
.entry-content-wide > figure {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.entry-content-wide > p:first-child {
  padding-top: 3rem;
}

/* --- WordPress custom logo: match the original .logo-img sizing --- */
.logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.logo .custom-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
