/* ── HDCAMN Men of Commitment Arizona Mission Net — Shared Stylesheet ── */

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

:root {
  --blue:    #1a3a8f;
  --blue-dk: #0d2260;
  --blue-lt: #dde5f4;
  --gray:    #4a4a4a;
  --gray-lt: #f5f5f5;
  --white:   #ffffff;
}

body {
  font-family: 'Georgia', serif;
  color: var(--gray);
  background: var(--white);
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--blue-dk);
  letter-spacing: 1px;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

nav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--blue); }
nav a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-lt);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  border: 1px solid #ddd;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.lang-toggle button.active {
  background: var(--blue);
  color: var(--white);
}

/* ── LANGUAGE VISIBILITY (placeholder — real rules are at end of file) ── */

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #070f2b 0%, var(--blue-dk) 50%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
}
.hero-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  letter-spacing: 2px;
}
.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero .verse {
  margin: 0 auto;
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
  border-left: 3px solid rgba(255,255,255,0.5);
  padding-left: 1.2rem;
  text-align: left;
}
.hero .verse cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
.verse-rotator {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rotating-verse {
  transition: opacity 0.6s ease;
}

/* ── PAGE BANNER (non-home pages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}
.page-banner h1 { font-size: 2.2rem; letter-spacing: 1px; }
.page-banner p { font-size: 1rem; opacity: 0.85; margin-top: 0.5rem; font-style: italic; }

/* ── SECTIONS ── */
.section-wrap { padding: 4rem 2rem; }
.section-wrap.alt { background: var(--gray-lt); }
.section-inner { max-width: 960px; margin: 0 auto; }

.section-title {
  font-size: 1.8rem;
  color: var(--blue-dk);
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--blue-lt);
  padding-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 1.5rem;
  font-style: italic;
}
p { line-height: 1.8; margin-bottom: 1rem; }

/* ── TRIP CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid #c5d3ef;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.card-head {
  background: var(--blue);
  color: var(--white);
  padding: 1rem 1.2rem;
}
.card-head h3 { font-size: 1.05rem; }
.card-head .date { font-size: 0.82rem; opacity: 0.85; margin-top: 0.3rem; }
.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p { font-size: 0.92rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.8rem;
}
.btn:hover { background: var(--blue-dk); transform: translateY(-2px); }
.btn.outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue-dk);
}
.btn.outline:hover { background: var(--blue); color: var(--white); }
.btn.large { padding: 1rem 2.8rem; font-size: 1.05rem; }

/* ── REGISTER BOX ── */
.register-box {
  background: var(--blue-lt);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.register-box h2 { color: var(--blue-dk); margin-bottom: 0.8rem; font-size: 1.7rem; }
.register-box p { color: #666; font-size: 0.95rem; max-width: 480px; margin: 0 auto 1rem; }
.fee-note { font-size: 0.82rem; color: #aaa; margin-top: 1rem; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.contact-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}
.contact-item .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-item strong { display: block; margin-bottom: 0.3rem; color: var(--gray); }
.contact-item a { color: var(--blue); text-decoration: none; font-size: 0.9rem; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dk);
  color: #b8c8e8;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: var(--white); text-decoration: none; }
footer nav { justify-content: center; margin-top: 0.8rem; flex-wrap: wrap; }
footer nav a { color: #b8c8e8; font-size: 0.8rem; border-bottom: none; }
footer nav a:hover { color: var(--white); }

/* ── HAMBURGER BUTTON ── */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--blue-dk);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Header */
  header { padding: 0.8rem 1.2rem; }
  .header-right { gap: 0.6rem; }
  .menu-toggle { display: block; }

  /* Nav: hidden by default, drops down when .open */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    z-index: 99;
  }
  nav.open { display: flex; }
  nav a {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
  }
  nav a.active { border-bottom-color: #eee; border-left: 3px solid var(--blue); }

  /* Hero */
  .hero { padding: 3rem 1.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-logo { width: 180px; height: 180px; }

  /* Page banner */
  .page-banner { padding: 2rem 1.2rem; }
  .page-banner h1 { font-size: 1.7rem; }

  /* Sections */
  .section-wrap { padding: 2.5rem 1.2rem; }

  /* Cards stack to single column */
  .cards { grid-template-columns: 1fr; }

  /* Buttons row wraps nicely */
  .section-inner > div[style*="display:flex"] { flex-direction: column; }

  /* Footer */
  footer { padding: 1.5rem 1rem; }
  footer nav { gap: 0.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-logo { width: 150px; height: 150px; }
  .logo-img { height: 42px; }
}

/* ── LANGUAGE VISIBILITY ── */
/* These rules must stay at the end of the file to win the cascade */
[data-lang="es"] { display: none !important; }
body.lang-es [data-lang="en"] { display: none !important; }
body.lang-es [data-lang="es"] { display: revert !important; }
/* Buttons are <a> tags — revert gives inline, we need inline-block */
body.lang-es .btn[data-lang="es"] { display: inline-block !important; }
