/* =============================================
   SSSS – Rotary District 3050 Shared Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #17458F;
  --blue-dark: #0d2d5e;
  --blue-light: #2a5ab5;
  --gold: #F7A81B;
  --gold-dark: #d4891a;
  --gold-light: #ffc84a;
  --silver: #F4F6FA;
  --silver-mid: #E8ECF4;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #5a6480;
  --border: #dde3f0;
  --shadow-sm: 0 2px 8px rgba(23, 69, 143, 0.08);
  --shadow-md: 0 4px 24px rgba(23, 69, 143, 0.13);
  --shadow-lg: 0 8px 48px rgba(23, 69, 143, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 80px;
  --topbar-h: 38px;
  --red: #e11d48;
}

.required-star {
  color: var(--red);
  margin-left: 3px;
  font-weight: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

/* ── TOP BAR ─────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .topbar .show-mobile {
    display: flex !important;
  }
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px 10px 3px 8px;
  cursor: pointer;
  position: relative;
}

.lang-switcher select {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 2px;
}

.lang-switcher select option {
  color: var(--text);
  background: white;
}

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  background: var(--white);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-text .trust-name {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  max-width: 280px;
}

.nav-brand-text .scheme-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  gap: 2px;
}

.nav-links>li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links>li>a,
.nav-links>li>button.nav-item {
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links>li>a:hover,
.nav-links>li>button.nav-item:hover {
  color: var(--blue);
}

.nav-links>li.active>a {
  color: var(--blue);
  border-bottom: 3px solid var(--gold);
}

.nav-caret {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mega dropdown */
.mega-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  min-width: 520px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.mega-drop.single-col {
  grid-template-columns: 1fr;
  min-width: 240px;
}

.nav-links>li:hover .mega-drop {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}

.mega-item:hover {
  background: var(--silver);
}

.mega-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 16px;
}

.mega-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.mega-item-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Nav CTA */
.nav-cta {
  margin-left: 16px;
  padding: 10px 24px;
  height: auto !important;
  background: var(--blue) !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 168, 27, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE SIDEBAR ──────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  background: var(--blue-dark);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sidebar-header-text .t1 {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.sidebar-header-text .t2 {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav a,
.sidebar-acc-btn {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: none;
  width: 100%;
  text-align: left;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  gap: 12px;
}

.sidebar-acc-btn {
  justify-content: space-between;
}

.sidebar-nav a i,
.sidebar-acc-btn i:first-child {
  width: 20px;
  text-align: center;
  color: var(--blue);
}

.sidebar-nav a:hover,
.sidebar-acc-btn:hover,
.sidebar-nav a.active,
.sidebar-acc-btn.active {
  background: var(--silver);
  color: var(--blue);
}

.sidebar-nav a.active,
.sidebar-acc-btn.active {
  border-left: 4px solid var(--blue);
  padding-left: 16px; /* Adjust padding for border */
}

.sidebar-acc-content {
  display: none;
  background: var(--silver);
}

.sidebar-acc-content.open {
  display: block;
}

.sidebar-acc-content a {
  padding: 10px 20px 10px 36px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.sidebar-acc-content a:hover {
  color: var(--blue);
  background: var(--silver-mid);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-footer .lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar-footer select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--silver);
  outline: none;
}

.sidebar-cta {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.sidebar-cta:hover {
  background: var(--blue-dark);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy-wrap span:first-child {
  color: var(--gold);
  font-weight: 600;
}

.dev-credit {
  font-size: 11px;
  opacity: 0.8;
}

.dev-credit a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.dev-credit a:hover {
  color: var(--gold);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .footer-legal-links {
    justify-content: center;
  }
}

/* ── SECTION COMMON ──────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(247, 168, 27, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(23, 69, 143, 0.35);
}

/* ── CARD ────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 48px 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 168, 27, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 10px;
}

.page-hero .breadcrumb a {
  color: var(--gold);
}

.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta.desktop-only {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar-left .topbar-info:not(.show-mobile) {
    display: none;
  }

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

  .section {
    padding: 56px 20px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
  }
  .footer-brand, .footer-col:last-child {
    grid-column: span 2;
  }

  /* Make header and footer content span 100% with 10px safe padding for breathing room */
  .topbar-inner,
  .nav-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  :root {
    --nav-h: 68px;
  }

  .nav-brand img {
    width: 42px;
    height: 42px;
  }

  .nav-brand-text .trust-name {
    font-size: 11px;
    max-width: 200px;
  }
  .nav-brand-text .scheme-name {
    display: none;
  }
}