:root {
  --rotary-blue: #17458f;
  --rotary-blue-dark: #0f2f63;
  --rotary-gold: #f7a81b;
  --rotary-gold-soft: #ffd166;
  --text: #1a1a1a;
  --muted: #5c6778;
  --bg: #f6f8fc;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(23, 69, 143, 0.12);
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 69, 143, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23, 69, 143, 0.25);
}

.brand-text strong {
  display: block;
  color: var(--rotary-blue);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav > a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--rotary-blue-dark);
  transition: 0.2s ease;
}

.nav > a:hover,
.nav > a.active {
  background: var(--rotary-blue);
  color: var(--white);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(23, 69, 143, 0.15);
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-social a:hover,
.nav-social a:focus-visible {
  transform: translateY(-1px);
  opacity: 0.88;
}

.nav-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-social a.facebook {
  background: #1877f2;
}

.nav-social a.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.nav-social a.x {
  background: #111;
}

.nav-social a.linkedin {
  background: #0a66c2;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--rotary-blue);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 168, 27, 0.28), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-dark) 100%);
  color: white;
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(247, 168, 27, 0.2);
  color: var(--rotary-gold-soft);
  border: 1px solid rgba(247, 168, 27, 0.45);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-gold {
  background: var(--rotary-gold);
  color: #1a1200;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(247, 168, 27, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.btn-blue:hover {
  background: var(--rotary-blue-dark);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-card img {
  width: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-card h3 {
  margin-bottom: 0.35rem;
}

.hero-card p {
  margin: 0 auto;
  opacity: 0.85;
  font-size: 0.95rem;
}

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

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  color: var(--rotary-blue);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
}

.gold-line {
  width: 64px;
  height: 4px;
  background: var(--rotary-gold);
  border-radius: 999px;
  margin: 0.85rem auto 0;
}

/* Members */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.member-card:hover {
  transform: translateY(-6px);
}

.member-photo {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(23, 69, 143, 0.9), rgba(15, 47, 99, 0.95)),
    radial-gradient(circle at 30% 30%, rgba(247, 168, 27, 0.35), transparent 50%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.4rem;
  font-weight: 800;
}

.member-body {
  padding: 1.15rem 1rem 1.35rem;
}

.member-body h3 {
  color: var(--rotary-blue-dark);
  font-size: 1.05rem;
}

.member-body .role {
  color: var(--rotary-gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem;
}

.member-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow);
  background: var(--rotary-blue);
  color: white;
  display: grid;
  place-items: end start;
  padding: 1.1rem;
}

.gallery-item:nth-child(1) {
  background: linear-gradient(160deg, #17458f, #2a6fd1);
}
.gallery-item:nth-child(2) {
  background: linear-gradient(160deg, #0f2f63, #17458f);
}
.gallery-item:nth-child(3) {
  background: linear-gradient(160deg, #c98500, #f7a81b);
  color: #1a1200;
}
.gallery-item:nth-child(4) {
  background: linear-gradient(160deg, #1d5bb8, #17458f);
}
.gallery-item:nth-child(5) {
  background: linear-gradient(160deg, #0b2148, #1d4f9c);
}
.gallery-item:nth-child(6) {
  background: linear-gradient(160deg, #d99912, #f2c14e);
  color: #1a1200;
}

.gallery-item strong {
  display: block;
  font-size: 1.05rem;
}

.gallery-item span {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* CTA */
.cta-band {
  background: linear-gradient(90deg, var(--rotary-gold), #ffc857);
  padding: 2.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #1a1200;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.cta-inner p {
  color: #4a3800;
  margin-top: 0.25rem;
}

/* Sponsor */
.sponsor {
  background: #0d0d0d;
  color: white;
  padding: 2.75rem 0;
}

.sponsor-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.sponsor-label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  font-weight: 700;
}

.sponsor img {
  height: 52px;
  width: auto;
  background: #000;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
  color: white;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.content-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 820px;
  margin: -2rem auto 3rem;
  position: relative;
}

.content-card h2 {
  color: var(--rotary-blue);
  margin: 1.5rem 0 0.6rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.content-card ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  background: var(--rotary-blue-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 52px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: white;
  margin-bottom: 0.35rem;
}

.footer-grid h4 {
  color: var(--rotary-gold);
  margin-bottom: 0.85rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.footer-grid a:hover {
  color: var(--rotary-gold);
}

.footer-grid a.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  color: #8ab4ff;
}

.footer-grid a.facebook-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
}

.footer-contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  opacity: 1;
}

.footer-contact-actions a:hover {
  color: var(--white);
  opacity: 0.88;
}

.footer-contact-actions a.call {
  background: #2f6fed;
}

.footer-contact-actions a.whatsapp {
  background: #25d366;
}

.footer-contact-actions a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-overlay {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 47, 99, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-overlay a:hover,
.contact-overlay a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.92;
}

.contact-overlay a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-overlay a.call {
  background: var(--rotary-blue);
}

.contact-overlay a.whatsapp {
  background: #25d366;
}

@media (max-width: 900px) {
  .hero-grid,
  .members-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #e8eef8;
  }

  .nav.open {
    display: flex;
  }

  .nav-social {
    margin-left: 0;
    padding: 0.65rem 0.9rem 0.25rem;
    border-left: 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 620px) {
  .hero-grid,
  .members-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}
