/* Rotary Club Odessa Sea Energy — institutional, mobile-first */

:root {
  --rotary-royal-blue: #17458f;
  --rotary-azure: #0067c8;
  --rotary-sky-blue: #00a2e0;
  --rotary-gold: #f7a81b;
  --charcoal: #58595b;
  --ink: #1a1a1a;
  --ink-muted: #58595b;
  --paper: #ffffff;
  --cloud: #f7f7f7;
  --smoke: #d1d3d4;
  --border: #d1d3d4;
  --header-h: 4rem;
  --max: 68rem;
  --radius: 0;
  --font: "Open Sans", system-ui, sans-serif;
  --font-condensed: "Open Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rotary-azure);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--rotary-royal-blue); }

.eyebrow {
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rotary-azure);
  margin: 0 0 0.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--rotary-gold);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-size: clamp(0.95rem, 2.5vw, 1.0625rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--rotary-royal-blue);
}

.brand-tag {
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--rotary-royal-blue);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: inherit;
  transition: transform 0.2s;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1rem;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid var(--cloud);
}

.site-nav a:hover {
  color: var(--rotary-azure);
}

.site-nav a[aria-current="page"] {
  color: var(--rotary-royal-blue);
  box-shadow: inset 0 -2px 0 var(--rotary-gold);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.lang-switch-current {
  color: var(--rotary-royal-blue);
}

.lang-switch-sep {
  color: var(--smoke);
  font-weight: 400;
}

.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--rotary-azure);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    border: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 2rem;
  }

  .site-nav a {
    padding: 0.5rem 0;
    border: none;
  }

  .lang-switch {
    margin-top: 0;
    padding: 0;
    border-top: none;
    margin-left: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: center;
  background: var(--rotary-royal-blue);
  color: var(--paper);
  border-bottom: 3px solid var(--rotary-gold);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 18ch;
  padding-top: 1rem;
  border-top: 3px solid var(--rotary-gold);
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  max-width: 42ch;
  margin: 0 0 2rem;
  opacity: 0.92;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--rotary-azure);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--rotary-royal-blue);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section--mist { background: var(--cloud); }

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

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--rotary-royal-blue);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* Values grid */
.values-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-item {
  border-top: 2px solid var(--rotary-azure);
  padding-top: 1.25rem;
}

.value-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--rotary-royal-blue);
}

.value-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Focus areas */
.focus-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
}

.focus-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.focus-item img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.focus-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.focus-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Four-way test */
.four-way {
  border-left: 4px solid var(--rotary-gold);
  padding: 1.5rem 0 1.5rem 1.5rem;
  background: var(--paper);
}

.four-way h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--rotary-royal-blue);
}

.four-way .subtitle {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.9375rem;
}

.four-way ol {
  margin: 0;
  padding-left: 1.25rem;
}

.four-way li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* News cards */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.news-card:hover {
  border-color: var(--rotary-azure);
  color: inherit;
}

.news-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.news-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card time {
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--rotary-royal-blue);
}

.news-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  flex: 1;
}

/* CTA band */
.cta-band {
  background: var(--rotary-royal-blue);
  color: var(--paper);
  text-align: center;
  padding: 3.5rem 1.25rem;
  border-top: 3px solid var(--rotary-gold);
}

.cta-band h2 {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
}

/* Page header (inner pages) */
.page-header {
  background: var(--cloud);
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

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

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--rotary-royal-blue);
}

.page-header p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
  font-size: 0.9375rem;
}

/* Prose content */
.prose {
  max-width: 42rem;
}

.prose-wide {
  max-width: var(--max);
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--rotary-royal-blue);
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Article */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header time {
  display: block;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--rotary-royal-blue);
}

.article-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.gallery {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 2rem 0 0;
}

.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cloud);
  border: 1px solid var(--border);
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  margin: 0;
}

.article-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.article-nav-link:hover {
  border-color: var(--rotary-azure);
  color: inherit;
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  display: block;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.article-nav-title {
  display: block;
  font-weight: 700;
  color: var(--rotary-royal-blue);
  line-height: 1.35;
  font-size: 0.9375rem;
}

/* Contacts */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-block h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--rotary-royal-blue);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list strong {
  display: block;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.map-wrap {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sponsors */
.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.sponsors img {
  max-height: 2.75rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.sponsors img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--rotary-royal-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.25rem 2rem;
  border-top: 3px solid var(--rotary-gold);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr; }
}

.footer-heading {
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rotary-gold);
  margin: 0 0 0.75rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.75rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--rotary-gold);
  text-decoration: underline;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  opacity: 0.7;
}

.text-center { text-align: center; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-condensed);
  font-stretch: 75%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rotary-azure);
}

.back-link:hover {
  color: var(--rotary-royal-blue);
}
