/*
Theme Name: Maritime Lodge 3025
Theme URI: https://www.maritimelodge.org.uk
Author: Maritime Lodge No. 3025
Author URI: https://www.maritimelodge.org.uk
Description: A bespoke Freemason-styled theme for Maritime Lodge No. 3025, Province of East Lancashire. Built with Masonic heritage in mind — navy, gold, and classical typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maritime-lodge
Tags: one-column, two-columns, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options
*/

/* ================================================================
   CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1a2e45;
  --navy-light:  #243d57;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-pale:   #f5e8c0;
  --cream:       #faf6ee;
  --cream-dark:  #f0e8d8;
  --white:       #ffffff;
  --dark-text:   #1a1208;
  --muted:       #5a4e38;
  --border-gold: rgba(201, 168, 76, 0.3);

  --font-heading: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Crimson Text', 'Palatino Linotype', Georgia, serif;

  --max-width: 1100px;
  --section-padding: 4rem 2rem;
  --border-radius: 0px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark-text);
  background: var(--cream);
}

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

a {
  color: var(--navy);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.5rem; }
li + li { margin-top: 0.3rem; }

p + p { margin-top: 1rem; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.entry-title { margin-bottom: 1rem; }

blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--muted);
  background: rgba(201, 168, 76, 0.06);
}

blockquote p { margin-bottom: 0; }

/* ================================================================
   LAYOUT WRAPPERS
   ================================================================ */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Two-column layout with sidebar */
.has-sidebar .content-sidebar-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

@media (max-width: 900px) {
  .has-sidebar .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-header {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-branding .site-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.site-branding .site-title a {
  color: inherit;
  text-decoration: none;
}

.header-emblem {
  width: 36px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Primary Nav */
.main-navigation {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* WordPress inserts a div wrapper between nav and ul — make it stretch too */
.main-navigation > div {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.main-navigation li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.main-navigation a {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-pale);
  text-decoration: none;
  padding: 0 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Dropdown */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border-gold);
  border-top: 2px solid var(--gold);
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}

.main-navigation li:hover > ul { display: flex; }

.main-navigation ul ul a {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-navigation {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 2px solid var(--gold);
    display: none;
  }

  .main-navigation.toggled { display: block; }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation ul ul {
    position: static;
    border: none;
    border-top: 1px solid var(--border-gold);
    background: rgba(0,0,0,0.2);
  }

  .main-navigation li:hover > ul { display: none; }
  .main-navigation li.focus > ul { display: flex; }
}

/* ================================================================
   HERO / BANNER (Front Page)
   ================================================================ */
.hero-banner {
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,168,76,0.025) 40px, rgba(201,168,76,0.025) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201,168,76,0.025) 40px, rgba(201,168,76,0.025) 41px);
  color: var(--gold-pale);
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.07), transparent);
  pointer-events: none;
}

.hero-emblem {
  width: 120px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero-lodge-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.hero-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-rule {
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.25rem auto;
}

.hero-province {
  font-size: 1rem;
  font-style: italic;
  color: rgba(245,232,192,0.6);
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245,232,192,0.75);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   FOUNDING STRIP
   ================================================================ */
.founding-strip {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gold-pale);
}

.founding-year {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.founding-year-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0.25rem 0 1rem;
}

.founding-strip p {
  max-width: 580px;
  margin: 0 auto;
  font-style: italic;
  color: rgba(245,232,192,0.75);
}

/* ================================================================
   SECTION HEADINGS (reusable)
   ================================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-underline {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 0.5rem auto 2.5rem;
}

.ornament-divider {
  text-align: center;
  margin: 0 auto;
  padding: 0.5rem 0;
}

/* ================================================================
   PILLARS GRID
   ================================================================ */
.pillars-section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.pillar-card:hover { transform: translateY(-3px); }

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.pillar-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ================================================================
   MEETINGS SECTION
   ================================================================ */
.meetings-section {
  background: var(--cream-dark);
  padding: var(--section-padding);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.meetings-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.meetings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 680px) {
  .meetings-grid { grid-template-columns: 1fr; }
}

.info-box {
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 1.75rem;
}

.info-box h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.info-box p, .info-box li {
  font-size: 0.95rem;
  color: var(--muted);
}

.info-box p + p { margin-top: 0.75rem; }

/* ================================================================
   JOIN BANNER
   ================================================================ */
.join-banner {
  background-color: var(--navy-mid);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(201,168,76,0.04) 30px, rgba(201,168,76,0.04) 31px
  );
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--gold-pale);
}

.join-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.join-banner p {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-style: italic;
  color: rgba(245,232,192,0.75);
  font-size: 1.05rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn, a.btn, button.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.25rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ================================================================
   FORMS  — global styles covering WordPress core forms,
   Contact Form 7 (.wpcf7), and any other plugin forms.
   ================================================================ */

/* Field wrapper spacing (CF7 uses .wpcf7-form-control-wrap) */
.entry-content form,
.wpcf7-form {
  max-width: 680px;
  margin: 0 auto;
}

.wpcf7-form p,
.entry-content form p {
  margin-bottom: 1.25rem;
}

/* Labels */
.entry-content form label,
.wpcf7-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Text inputs, email, tel, url, textarea, select */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
select {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-text);
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-bottom: 2px solid var(--gold);
  padding: 0.65rem 0.9rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 0 0 var(--gold);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Submit / action buttons ──────────────────────────────
   Catches: input[type="submit"], button[type="submit"],
   CF7's .wpcf7-submit, and any .submit class.
─────────────────────────────────────────────────────────── */
input[type="submit"],
button[type="submit"],
.wpcf7-submit,
.submit,
button.submit {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: none;
  padding: 0.85rem 2.25rem;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover,
.submit:hover {
  background: var(--gold-light);
  color: var(--navy);
}

input[type="submit"]:active,
button[type="submit"]:active,
.wpcf7-submit:active {
  background: var(--gold);
  transform: translateY(1px);
}

input[type="submit"]:disabled,
button[type="submit"]:disabled,
.wpcf7-submit:disabled {
  background: rgba(201,168,76,0.4);
  cursor: not-allowed;
}

/* CF7 spinner */
.wpcf7-spinner {
  border-color: var(--gold) transparent var(--gold) transparent;
}

/* CF7 validation messages */
.wpcf7-not-valid-tip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: #2ecc71;
  color: #1a6e3a;
  background: #f0fdf4;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
  border-color: #e74c3c;
  color: #922b21;
  background: #fdf0f0;
}

/* WP core search form */
.search-form {
  display: flex;
  max-width: 400px;
  margin: 1.5rem auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  border-right: none;
  border-bottom-width: 2px;
}

.search-form input[type="submit"] {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  margin-top: 0;
  border-left: 1px solid var(--navy);
}

/* ================================================================
   NEWS / POSTS
   ================================================================ */
.posts-section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.post-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.post-card:hover { transform: translateY(-3px); }

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

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

.post-meta {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.post-card .entry-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.post-card .entry-title a {
  color: var(--navy);
  text-decoration: none;
}
.post-card .entry-title a:hover { color: var(--gold); }

.post-card .entry-summary {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.post-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-gold);
}

/* Single Post */
.single-post-header {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.single-post-header h1 {
  color: var(--gold-pale);
  max-width: 700px;
  margin: 0 auto;
}

.single-post-header .post-meta {
  margin-top: 0.75rem;
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 2rem 0 1rem; }

/* Pagination */
.pagination {
  text-align: center;
  padding: 2rem;
}
.pagination a, .pagination span {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-gold);
  padding: 0.5rem 0.9rem;
  margin: 0 0.15rem;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar { font-size: 0.95rem; }

.widget {
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 1.5rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.widget ul { padding-left: 0; list-style: none; }
.widget ul li {
  border-bottom: 1px solid var(--border-gold);
  padding: 0.4rem 0;
}
.widget ul li:last-child { border-bottom: none; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  color: rgba(245,232,192,0.55);
}

.footer-widgets {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-widgets .widget-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 0 0.5rem;
  margin: 0 0 1rem;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* Footer nav menus — wp_nav_menu outputs a <ul> directly */
.footer-col nav > ul,
.footer-col > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col nav > ul li,
.footer-col > ul li {
  margin-bottom: 0.4rem;
  border: none;
  padding: 0;
}

.footer-col nav > ul li a,
.footer-col > ul li a {
  color: rgba(245,232,192,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col nav > ul li a:hover {
  color: var(--gold);
}

/* Admin hint shown when no menu is assigned */
.footer-menu-hint {
  font-size: 0.72rem;
  color: rgba(245,232,192,0.25);
  margin-top: 0.75rem;
  font-style: italic;
}

.footer-widgets ul { padding-left: 0; list-style: none; }
.footer-widgets ul li { margin-bottom: 0.4rem; }
.footer-widgets a {
  color: rgba(245,232,192,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-widgets a:hover { color: var(--gold); }
.footer-widgets p { font-size: 0.9rem; color: rgba(245,232,192,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.15);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
}

.footer-bottom .footer-brand {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.footer-bottom a { color: var(--gold-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ================================================================
   GUTENBERG BLOCK OVERRIDES
   ================================================================ */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-gold);
  margin: 2rem auto;
  max-width: 200px;
}

.wp-block-quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  background: rgba(201,168,76,0.06);
  font-style: italic;
  color: var(--muted);
}

.wp-block-button__link {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 !important;
}

.wp-block-button__link:hover {
  background: var(--gold-light) !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 2.5rem 1.25rem; }

  .hero-banner { padding: 3.5rem 1.5rem 3rem; }
  .founding-year { font-size: 3rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.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;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.2s;
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
