/*
Theme Name: San Diego Military Ministry
Theme URI: https://www.morabemilitaryministry.com/
Author: OpenAI
Description: A single-page, image-faithful WordPress theme for San Diego Military Ministry with clickable call-to-action and social links.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sdmm
*/

:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #062c56; }
body { font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.sdmm-page {
  min-height: 100vh;
  width: 100%;
  background: #062c56;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sdmm-poster-wrap {
  width: min(100vw, 1024px);
  margin: 0 auto;
  position: relative;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.18);
}

.sdmm-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background-image: url('assets/sdmm-homepage.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

.sdmm-hotspot {
  position: absolute;
  z-index: 10;
  display: block;
  border-radius: 14px;
  text-decoration: none;
  outline: none;
  background: transparent;
}
.sdmm-hotspot:hover,
.sdmm-hotspot:focus-visible {
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 0 0 4px rgba(230,169,45,.9);
}

/* Main CTAs */
.sdmm-schedule  { left: 18.7%; top: 38.3%; width: 62.7%; height: 8.1%; }
.sdmm-prayer    { left: 18.7%; top: 47.9%; width: 62.7%; height: 7.9%; }
.sdmm-volunteer { left: 18.7%; top: 57.4%; width: 62.7%; height: 8.2%; }

/* Logo/About */
.sdmm-about { left: 20.8%; top: 5.1%; width: 59.5%; height: 9.0%; }

/* Footer links */
.sdmm-website   { left: 4.0%;  top: 83.8%; width: 22.5%; height: 12.4%; }
.sdmm-contact   { left: 27.5%; top: 83.8%; width: 21.3%; height: 12.4%; }
.sdmm-facebook  { left: 49.0%; top: 83.8%; width: 24.0%; height: 12.4%; }
.sdmm-instagram { left: 73.4%; top: 83.8%; width: 23.0%; height: 12.4%; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1100px) {
  .sdmm-poster-wrap { margin: 18px auto; border-radius: 10px; overflow: hidden; }
}

/* Weekly schedule popup */
.sdmm-schedule {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.sdmm-modal[hidden] { display: none !important; }
.sdmm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.sdmm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 34, .88);
  backdrop-filter: blur(4px);
}
.sdmm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 520px);
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdmm-schedule-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  background: #fff;
}
.sdmm-modal-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #071522;
  color: #fff;
  font-size: 31px;
  line-height: 34px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.sdmm-modal-close:hover,
.sdmm-modal-close:focus-visible {
  outline: 3px solid #e6a92d;
  outline-offset: 2px;
}
body.sdmm-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .sdmm-modal { padding: 10px; }
  .sdmm-modal-panel { width: min(96vw, 455px); }
  .sdmm-modal-close { top: 5px; right: 5px; }
  .sdmm-schedule-image { border-radius: 16px; }
}
