/* ScoutCMS - Midnight Theme */
/* Black/dark grey theme for Emperor Penguin Development. */

:root {
 --bg: #000000;
 --bg-card: #111111;
 --bg-card-alt: #1a1a1a;
 --text: #e0e0e0;
 --text-muted: #999999;
 --primary: #cccccc;
 --primary-dark: #aaaaaa;
 --primary-light: #222222;
 --accent: #666666;
 --accent-light: #1a1a1a;
 --border: #2a2a2a;
 --radius: 12px;
 --max-width: 760px;
 --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
 --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
 font-family: var(--font);
 background: var(--bg);
 color: var(--text);
 line-height: 1.8;
 font-size: 17px;
 -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
 background: #000000;
 color: white;
 padding: 1rem 0;
 box-shadow: 0 2px 12px rgba(0,0,0,0.5);
 border-bottom: 1px solid #1a1a1a;
}

.site-header .container { display: flex; align-items: center; }
.site-name a, .site-name { white-space: nowrap; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: white; letter-spacing: -0.01em; }
.site-name:hover { color: #dddddd; text-decoration: none; }
.site-tagline { font-size: 0.85rem; color: #dddddd; margin-top: 0.2rem; }

nav.main-nav {
 display: flex;
 align-items: center;
 gap: 1rem;
 white-space: nowrap;
 flex-shrink: 0;
 flex: 1;
}
/* Nav alignment */
nav.main-nav.nav-left { justify-content: flex-start; }
nav.main-nav.nav-center { justify-content: center; }
nav.main-nav.nav-right { justify-content: flex-end; }
nav.main-nav a { color: rgba(255,255,255,0.85); font-family: var(--font-heading); font-size: 0.9rem; margin-left: 1.5rem; font-weight: 500; transition: color 0.2s; }
nav.main-nav a:hover { color: white; background: rgba(255,255,255,0.15); border-radius: 4px; }
nav.main-nav a.active { color: white;}

.page-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; margin-bottom: 2rem; line-height: 1.2; color: #e0e0e0; letter-spacing: -0.02em; }
.page-content { margin-bottom: 4rem; }

.page-content h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;  margin-bottom: 1rem; color: #e0e0e0; padding-bottom: 0.5rem; border-bottom: 2px solid #2a2a2a; }
.page-content h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600;  margin-bottom: 0.75rem; color: #bbb; }
.page-content p { margin-bottom: 1.2rem; }
.page-content ul, .page-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content blockquote { border-left: 4px solid #444; padding: 1rem 1.5rem; background: #111; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-muted); margin: 1.5rem 0; font-style: italic; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.page-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.page-content th, .page-content td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.page-content th { background: #1a1a1a; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: #ccc; text-transform: uppercase; letter-spacing: 0.03em; }
.page-content code { background: #1a1a1a; color: #ccc; padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }
.page-content pre { background: #0a0a0a; color: #e0e0e0; padding: 1.2rem; border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; font-size: 0.85rem; }
.page-content pre code { background: none; padding: 0; color: inherit; }
.page-content hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }

.post-list { list-style: none; padding: 0; }
.post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; }
.post-date { font-family: var(--font-heading); font-size: 0.85rem; color: #777; font-weight: 600; font-variant-numeric: tabular-nums; }
.post-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin: 0.3rem 0; color: #ccc; letter-spacing: -0.01em; }
.post-title a { color: #ccc; }
.post-title a:hover { color: #fff; text-decoration: none; }
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }

.pagination { display: flex; justify-content: space-between; padding: 2rem 0; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; }

.site-footer { background: #0a0a0a; color: #999999; padding: 2rem 0;  font-size: 0.9rem; border-top: 1px solid #1a1a1a; }
  flex-shrink: 0;
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: white; }

.lang-switcher { display: flex; gap: 0.3rem; flex-shrink: 0; }
.lang-link { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.03em; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); transition: all 0.2s; text-decoration: none; }
.lang-link:hover { background: rgba(255,255,255,0.3); color: white; text-decoration: none; }
.lang-link.active { background: var(--accent); color: white; }

.site-logo-link { flex-shrink: 0; }
.site-logo { height: 72px; width: auto; border-radius: 8px; }
.site-logo-link:hover { text-decoration: none; }
.footer-badge { height: 40px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer-badge:hover { opacity: 1; }

#scoutcms-map { margin: 1.5rem 0; z-index: 0; min-height: 300px; position: relative; border: 1px solid var(--border, #222); box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
#scoutcms-map .leaflet-container { border-radius: 0 !important; }
.map-address { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }
.map-address a { color: var(--primary); }

.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle::after { content: ' ▾'; font-size: 0.7em; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.1); min-width: 180px; z-index: 200; padding: 0.5rem 0; margin-top: 0.25rem; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu::before {
 content: '';
 position: absolute;
 top: -0.25rem;
 left: 0;
 right: 0;
 height: 0.25rem;
}
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; color: var(--text) !important; margin: 0; font-size: 0.9rem; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: #1a1a1a; color: #fff !important; text-decoration: none; }

.hamburger {
  display: none;
  order: 3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }
.site-header.menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.nav-dropdown-chevron { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; color: var(--text-muted); line-height: 1; }

.subnav-bar { background: #111; border-bottom: 1px solid #2a2a2a; padding: 0.5rem 0; font-size: 0.85rem; }
.subnav-bar .container { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.subnav-bar a { color: #999; margin: 0; padding: 0.25rem 0; }
.subnav-bar a.active { color: #fff; font-weight: 600; }
.subnav-bar a:hover { color: #fff; }





/* ─── Hero Banner ──────────────────────────────── */

/* Hero */
.hero {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-color: #000000;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #000000, transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.scroll-arrow {
  position: relative;
  z-index: 1;
  
  display: inline-block;
  animation: bounce 2s infinite;
  cursor: pointer;
}
.scroll-arrow svg {
  width: 32px;
  height: 32px;
  fill: white;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.hero-with-overlay {
  position: relative;
}
.hero-with-overlay .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}
.hero-with-overlay .hero-title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}
.hero-with-overlay .hero-subtitle {
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

/* ─── Video Hero ──────────────────────────────── */
.hero-video {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-video .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}
.hero-video .hero-content {
  position: relative;
  z-index: 2;
}
.hero-video .hero-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.hero-video .hero-subtitle {
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}
.hero-video::after {
  height: 150px;
  background: linear-gradient(to top, #000000, transparent);
}
@media (max-width: 768px) {
  .hero-video { min-height: 400px; }
  .hero-video .hero-title { font-size: 1.8rem; }
  .hero-video .hero-subtitle { font-size: 0.95rem; }
}
/* Cards */
.cards {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 gap: 1.5rem;
 margin-bottom: 2rem;
}
.card {
 background: var(--bg-card, #111);
 border-radius: var(--radius, 8px);
 border-top: 2px solid #333;
padding: 1.5rem;
 text-align: center;
 box-shadow: 0 2px 8px rgba(0,0,0,0.3);
 transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
 transform: translateY(-2px);
 box-shadow: 0 4px 16px rgba(0,0,0,0.5);
 border-top-color: #555;
}
.card-icon {
 font-size: 2rem;
 margin-bottom: 0.5rem;
}
.card-img {
 height: 180px;
 width: 100%;
 object-fit: cover;
 margin: 0 auto 0.75rem;
 display: block;
 filter: brightness(0.85);
 border-radius: 8px;
}
.card-title {
 margin: 0 0 0.5rem;
 color: #e0e0e0;
 font-weight: 600;
}
.card-text {
 margin: 0;
 color: var(--text-muted, #666);
 line-height: 1.5;
}

/* ─── Responsive ──────────────────────────────── */

/* ─── Mobile / Overflow Nav ─────────────────── */
/* Hamburger shows when nav overflows (JS-detected) OR on narrow screens */

/* Overflow detection (desktop, nav wraps) */
.site-header.nav-overflow .hamburger { display: flex; }
.site-header.nav-overflow .header-right { display: none; position: absolute; top: 100%; right: 0; left: auto; background: var(--bg-card, #1e293b); flex-direction: column; padding: 1rem 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 0.75rem; border-top: 2px solid var(--primary); z-index: 200; }
.site-header.menu-open .header-right { display: flex; flex-direction: column; }
.site-header.nav-overflow nav.main-nav { display: flex; flex-direction: column; gap: 0; 
 flex-shrink: 0;}
.site-header.nav-overflow nav.main-nav a,
.site-header.nav-overflow .nav-dropdown-toggle { margin: 0; padding: 0.6rem 0; display: block; width: 100%; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
.site-header.nav-overflow .nav-dropdown { display: block; width: 100%; }
.site-header.nav-overflow nav.main-nav a:hover,
.site-header.nav-overflow .nav-dropdown-toggle:hover { color: var(--primary); background: var(--primary-light, rgba(0,0,0,0.04)); }
.site-header.nav-overflow .lang-switcher a { color: var(--text); }
.site-header.nav-overflow .lang-link.active { background: var(--primary); color: white; }
.site-header.nav-overflow .nav-dropdown-chevron { display: none; }
.site-header.nav-overflow .nav-dropdown-toggle::after { content: ''; }
.site-header.nav-overflow .nav-dropdown-menu { display: block; position: static; box-shadow: none; border: none; border-radius: 0; padding-left: 1rem; background: transparent; }
.site-header.nav-overflow .lang-switcher { display: flex; justify-content: center; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--border); }
.site-header.nav-overflow .container { max-width: 100%; padding: 0 1rem; }
.site-header.nav-expanded .container { max-width: 100%; }

/* Mobile (narrow screens) */
@media (max-width: 768px) {
 .site-header .container { max-width: 100%; }
  .hamburger { display: flex; }
  .header-right {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card, #1e293b);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0.75rem;
    border-top: 2px solid var(--primary);
    z-index: 200;
  }
  .menu-open .header-right { display: flex; flex-direction: column; }
  nav.main-nav { display: flex; flex-direction: column; gap: 0; }
  nav.main-nav a { margin: 0; padding: 0.6rem 0; display: block; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
  nav.main-nav a:hover { color: var(--primary); }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-chevron { display: none; }
  .nav-dropdown-toggle::after { content: ''; }
  .nav-dropdown-toggle { display: block; width: 100%; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1rem;
    background: transparent;
  }
  .nav-dropdown-menu a.active { color: var(--primary) !important; font-weight: 600; }
  .nav-dropdown-menu a { font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
  .lang-switcher { display: flex; justify-content: center; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--border); }
  .lang-switcher a { color: var(--text); }
  .lang-link.active { background: var(--primary); color: white; }
  .container { padding: 0 1rem; }
  .site-logo { height: 56px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; min-height: 350px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

.nav-dropdown-menu a.active { color: var(--primary) !important; font-weight: 600; }
/* ─── Latest Posts ───────────────────────────── */
.latest-posts { margin-top: 2.5rem; }
.latest-posts-title { font-size: 1.5rem; color: #ccc; margin-bottom: 1rem; }
.latest-posts-list { list-style: none; padding: 0; }
.latest-post-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.latest-post-date { font-size: 0.85rem; color: var(--text-muted, #666); margin-bottom: 0.25rem; }
.latest-post-link { font-size: 1.1rem; font-weight: 600; color: #ccc; text-decoration: none; }
.latest-post-link:hover {}
.latest-post-excerpt { font-size: 0.95rem; color: var(--text-muted, #666); margin: 0.25rem 0 0; line-height: 1.5; }

main { flex-grow: 1; }

/* Branch hero with overlay */
.branch-hero {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 500px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.branch-hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(30, 20, 40, 0.55);
  padding: 2rem 2rem 1.5rem;
  border-radius: var(--radius, 12px);
  max-width: 720px;
  margin: 0 auto;
}

.branch-hero-logo {
  height: 140px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: 0;
}

.branch-hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  margin-top: 0;
  border: none;
  padding: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.branch-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.7), 1px 1px 0 rgba(0,0,0,0.5), -1px -1px 0 rgba(0,0,0,0.5);
}


/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .page-content ul, .page-content ol { padding-left: 1.25rem; }
  .site-logo { height: 48px; }
  .site-name { font-size: 1.1rem; }
  .site-tagline { font-size: 0.85rem; }
}

/* =========================================================================
   Contact Form (moved from inline plugin styles)
   ========================================================================= */
.cf-wrapper{max-width:500px;margin:2rem 0}
.cf-heading{margin:0 0 1rem}
.cf-form{display:flex;flex-direction:column;gap:1rem}
.cf-label{display:block;margin-bottom:0.25rem;font-weight:600}
.cf-required{color:#fff}
.cf-input{width:100%;padding:0.5rem;border:1px solid var(--border);border-radius:var(--radius);font-family:inherit;font-size:1rem;box-sizing:border-box;background:var(--bg-card);color:var(--text)}
.cf-input:focus{outline:2px solid var(--text);outline-offset:1px}
.cf-textarea{resize:vertical;min-height:100px}
.cf-button{padding:0.7rem 1.5rem;background:var(--text);color:var(--bg);border:none;border-radius:var(--radius);cursor:pointer;font-size:1rem;font-weight:600;transition:opacity 0.2s}
.cf-button:hover{opacity:0.9}
.cf-button:active{opacity:0.8}
.cf-success{padding:1rem;background:#1a2a1a;border:1px solid #2a5a2a;border-radius:var(--radius);margin-bottom:1rem;color:#6aaf6a}
.cf-error{padding:1rem;background:#2a1a1a;border:1px solid #5a2a2a;border-radius:var(--radius);margin-bottom:1rem;color:#aa6a6a}

/* =========================================================================
   Skip to content (accessibility)
   ========================================================================= */
.skip-link{position:absolute;top:-40px;left:0;background:var(--text);color:var(--bg);padding:8px 16px;z-index:9999;border-radius:0 0 4px 0}
.skip-link:focus{top:0}

/* =========================================================================
   Reduced motion preference
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero { background-image: url('/content/images/hero-fallback.jpg'); }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================================
   Footer Grid
   ========================================================================= */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand .footer-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.footer-brand .footer-tagline { font-size: 0.85rem; color: var(--text-muted); }
.footer-label { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-link:hover { color: var(--text); }
.footer-loc { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer-lang { display: flex; gap: 0.5rem; }
.footer-lang .lang-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-lang .lang-link.active { color: var(--text); font-weight: 600; }
.footer-lang .lang-link:hover { color: var(--text); }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { align-items: flex-start; }
}
