/*
Theme Name: Lions District 308 B3
Theme URI: https://example.com/
Author: Avril Web
Author URI: https://example.com/
Description: A lightweight custom theme for Lions International District 308 B3, based on the supplied District Governor mockup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lions-district-308b3
*/

:root {
  --lion-navy: #003272;
  --lion-navy-dark: #00245a;
  --lion-blue: #064898;
  --lion-gold: #f7c600;
  --lion-ink: #071c41;
  --lion-muted: #5c6778;
  --lion-border: #dde5ef;
  --lion-soft: #eef5ff;
  --lion-white: #ffffff;
  --shadow-soft: 0 14px 35px rgba(8, 36, 79, 0.12);
  --site-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--lion-ink);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--lion-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--lion-navy-dark);
}

.site-shell {
  overflow: hidden;
}

.wrap {
  width: min(var(--site-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lion-navy-dark);
  color: var(--lion-white);
  box-shadow: 0 8px 28px rgba(0, 21, 58, 0.18);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--lion-white);
  min-width: 260px;
}

.site-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-title {
  margin: 0;
  color: var(--lion-white);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.site-title span {
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--lion-white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  border-radius: 10px;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.primary-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 86px;
  color: var(--lion-white);
  font-size: 15px;
  font-weight: 700;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 4px;
  content: "";
  background: var(--lion-gold);
  border-radius: 10px;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--lion-gold);
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu a:hover::after,
.primary-menu a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  color: var(--lion-white);
  background:
    linear-gradient(90deg, rgba(0, 42, 96, 0.94), rgba(0, 48, 105, 0.72), rgba(0, 40, 88, 0.32)),
    url("assets/images/district-hero.jpg") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 280px;
  content: "";
  background: url("assets/images/lions-emblem.png") 26px 26px / 150px 150px no-repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  padding: 44px 0;
}

.hero h1 {
  margin: 0;
  color: var(--lion-white);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.breadcrumbs {
  margin-top: 12px;
  color: var(--lion-white);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--lion-gold);
}

.main-content {
  padding: 0 0 58px;
}

.governor-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: -42px;
  padding: 26px 34px 28px;
  background: var(--lion-white);
  border: 1px solid var(--lion-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.governor-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e7e9ee;
}

.governor-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.17 / 1;
  object-fit: cover;
}

.service-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--lion-white);
  background: var(--lion-blue);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 32, 79, 0.2);
}

.service-badge img {
  width: 28px;
  height: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #caa400;
  font-size: 14px;
  font-weight: 800;
}

.governor-details h2,
.section-heading {
  margin: 0;
  color: var(--lion-navy);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.gold-rule {
  width: 48px;
  height: 4px;
  margin: 14px 0 18px;
  background: var(--lion-gold);
  border-radius: 99px;
}

.subtitle {
  margin: 0 0 20px;
  color: #1a2640;
  font-size: 18px;
  font-weight: 700;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: #172340;
  font-size: 15px;
  font-weight: 700;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.icon-dot {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--lion-navy);
  font-size: 16px;
}

.intro-copy h3 {
  margin: 0 0 8px;
  color: var(--lion-navy);
  font-size: 17px;
}

.intro-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
}

.message-section {
  position: relative;
  margin-top: 24px;
  padding: 32px 38px;
  overflow: hidden;
  background: var(--lion-soft);
  border-radius: 8px;
}

.message-section::after {
  position: absolute;
  right: 24px;
  bottom: -44px;
  width: 300px;
  height: 300px;
  content: "";
  background: url("assets/images/lions-emblem.png") center / contain no-repeat;
  opacity: 0.06;
}

.message-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.quote-mark {
  display: block;
  margin: 10px 0;
  color: var(--lion-gold);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.message-section p {
  margin: 0 0 14px;
  font-size: 15px;
}

.signature {
  margin-top: 18px;
  color: var(--lion-navy);
}

.signature-name {
  display: block;
  margin-bottom: 6px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 30px;
  line-height: 1.1;
}

.focus-section {
  padding: 8px 0 16px;
  text-align: center;
}

.focus-section .section-heading {
  font-size: clamp(25px, 3vw, 32px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 28px;
}

.focus-item {
  min-height: 162px;
  padding: 0 26px;
  border-left: 1px solid var(--lion-border);
}

.focus-item:first-child {
  border-left: 0;
}

.focus-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--lion-navy);
  border: 2px solid var(--lion-gold);
  border-radius: 50%;
  font-size: 25px;
}

.focus-item h3 {
  margin: 0 0 7px;
  color: var(--lion-navy);
  font-size: 14px;
}

.focus-item p {
  margin: 0;
  color: #2d3850;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  color: var(--lion-white);
  background: var(--lion-navy-dark);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 42px;
  padding: 34px 0 24px;
}

.footer-brand {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.footer-brand img {
  width: 58px;
  height: 58px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--lion-white);
  font-size: 18px;
  line-height: 1.25;
}

.footer-copy,
.footer-widget p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.footer-widget h2 {
  margin: 0 0 14px;
  color: var(--lion-white);
  font-size: 17px;
}

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

.footer-widget li {
  margin: 0 0 7px;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.footer-widget a:hover,
.footer-widget a:focus {
  color: var(--lion-gold);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  color: var(--lion-navy);
  background: var(--lion-white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.site-info {
  padding: 14px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  text-align: center;
}

.content-area {
  padding: 54px 0;
}

.entry-header,
.entry-content,
.posts-list,
.not-found {
  width: min(900px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.entry-title {
  margin: 0 0 20px;
  color: var(--lion-navy);
  font-size: clamp(32px, 4vw, 46px);
}

.entry-content {
  color: #22304a;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--lion-border);
}

.post-card h2 {
  margin: 0 0 8px;
  color: var(--lion-navy);
}

.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;
}

@media (max-width: 920px) {
  .wrap {
    width: min(100% - 34px, var(--site-width));
  }

  .header-inner {
    min-height: 76px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-logo {
    width: 48px;
    height: 48px;
  }

  .site-title {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    justify-content: flex-end;
  }

  .primary-menu {
    position: absolute;
    top: 76px;
    right: 17px;
    left: 17px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    background: var(--lion-navy);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 30px rgba(0, 23, 63, 0.25);
  }

  .main-navigation.is-open .primary-menu {
    display: flex;
  }

  .primary-menu a {
    min-height: auto;
    padding: 13px 18px;
  }

  .primary-menu a::after {
    display: none;
  }

  .hero {
    min-height: 160px;
  }

  .governor-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .contact-list {
    display: grid;
    gap: 10px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }

  .focus-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px 14px;
    min-height: 0;
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--lion-border);
  }

  .focus-item:first-child {
    border-top: 0;
  }

  .focus-icon {
    grid-row: span 2;
    margin: 0;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-title {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-content {
    padding: 34px 0 38px;
  }

  .main-content {
    padding-bottom: 36px;
  }

  .governor-card {
    margin-top: 18px;
    box-shadow: none;
  }

  .governor-details h2 {
    font-size: 29px;
  }

  .subtitle {
    font-size: 15px;
  }

  .message-section {
    margin-right: -17px;
    margin-left: -17px;
    padding: 26px 17px;
    border-radius: 0;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
