/* ============================================================
   Dillon Beach Internet Service — Stylesheet
   ============================================================ */

/* --- Design tokens --- */
:root {
  --color-primary: #4AADE8;
  --color-primary-dark: #2C8BB5;
  --color-bg: #F5F5F5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-green: #2ECC71;
  --color-yellow: #F1C40F;
  --color-orange: #E67E22;
  --color-red: #E74C3C;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.13);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-img {
  height: 36px;
  width: auto;
}
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1a2a3a;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  color: var(--color-white);
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero-price {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero-perks {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  opacity: 0.95;
}
.hero-since {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(74, 173, 232, 0.4);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44, 139, 181, 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
  margin-left: 0.75rem;
  margin-top: 0.75rem;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* --- Connect modal (mobile call/text chooser) --- */
.connect-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connect-modal[hidden] { display: none; }
.connect-modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
}
.connect-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.connect-modal-btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  text-align: center;
  border: 2px solid var(--color-primary);
}
.connect-modal-btn.btn-secondary {
  color: var(--color-primary);
  margin-left: 0;
}
.connect-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   Tagline
   ============================================================ */
.tagline-section {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--color-white);
}
.tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--color-text);
}
.tagline-aside {
  color: var(--color-primary);
}

/* ============================================================
   Photo Gallery
   ============================================================ */
.gallery-section {
  padding: 3rem 0;
  background: var(--color-bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-wide {
  grid-column: span 2;
}
.gallery-wide img {
  height: 360px;
}

/* ============================================================
   About / Features
   ============================================================ */
.about-section {
  padding: 4rem 0;
}
.about-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.about-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.about-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================================
   Media / As Seen In
   ============================================================ */
.media-section {
  padding: 4rem 0;
  background: var(--color-white);
}
.media-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.media-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 140px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.1);
  transition: opacity 0.2s;
}
.media-card:hover::before { opacity: 1; }
.media-card:hover,
.media-card:focus {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
  text-decoration: none;
}
.media-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.media-source {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}
.media-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Brand colors */
.media-freethink  { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.media-sfchronicle { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.media-cbs        { background: linear-gradient(135deg, #1a1a5e, #2a3a8e); }
.media-marinij    { background: linear-gradient(135deg, #4a2c2a, #6b3a38); }
.media-mimosa     { background: linear-gradient(135deg, #c44900, #e8620a); }

/* ============================================================
   Contact
   ============================================================ */
.contact-section {
  padding: 4rem 0;
  text-align: center;
}
.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.contact-card {
  background: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
.contact-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-names {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-info p {
  margin-bottom: 0.35rem;
}
.contact-info a {
  font-size: 1.05rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #1a2a3a;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ============================================================
   Status Page
   ============================================================ */
.status-page {
  padding: 3rem 0;
}
.status-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Status card */
.status-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.status-loading {
  color: var(--color-text-light);
  font-size: 1.1rem;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
}
.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.operational { background: var(--color-green); }
.status-dot.degraded    { background: var(--color-yellow); }
.status-dot.partial     { background: var(--color-orange); }
.status-dot.full        { background: var(--color-red); }

.status-indicator.operational .status-text { color: var(--color-green); }
.status-indicator.degraded .status-text    { color: #b8960f; }
.status-indicator.partial .status-text     { color: var(--color-orange); }
.status-indicator.full .status-text        { color: var(--color-red); }

.status-updated {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Status details */
.status-details {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.status-details:empty {
  display: none;
}
.status-details h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.status-details p {
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

/* Timeline */
.status-timeline h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.status-timeline:empty { display: none; }
.timeline-list {
  list-style: none;
  border-left: 3px solid #ddd;
  padding-left: 1.25rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-item::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  left: -1.56rem;
  top: 0.35rem;
}
.timeline-time {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.15rem;
}
.timeline-msg {
  font-size: 0.95rem;
}

/* Stale warning */
.stale-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  color: #856404;
  font-weight: 500;
}

/* Status contact */
.status-contact {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.status-contact p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Status error */
.status-error {
  text-align: center;
  color: var(--color-red);
  font-weight: 600;
  padding: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 220px; }
  .gallery-wide img { height: 280px; }
}
@media (max-width: 640px) {
  .hero { min-height: 380px; }
  .hero-content { padding: 2rem 1rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-price { font-size: 1.3rem; }
  .hero-content .btn {
    display: block;
    margin: 0.5rem auto 0;
    width: fit-content;
  }
  .btn-secondary {
    margin-left: 0;
  }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .gallery-item img,
  .gallery-wide img { height: 200px; }
  .about-section { padding: 2.5rem 0; }
  .about-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .media-section { padding: 2.5rem 0; }
  .media-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-card { padding: 1.25rem 0.75rem; min-height: 110px; }
  .media-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .media-source { font-size: 0.95rem; }
  .contact-card {
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }
  .contact-photo {
    width: 120px;
    height: 120px;
  }
  .contact-section { padding: 2.5rem 0; }
  .tagline-section { padding: 2rem 1rem; }
  .status-card { padding: 1.5rem 1rem; }
  .nav-logo-img { height: 28px; }
}
