/**
 * Ogden's SLP Hero Styles
 * Mobile-first, Apple-inspired design with brand colors
 */

:root {
  --ogd-navy: #001F4F;
  --ogd-yellow: #FFCD00;
  --ogd-fg: #111;
  --ogd-bg: #fff;
  --ogd-gray-light: #f5f5f7;
  --ogd-gray-mid: #86868b;
  --ogd-gray-dark: #1d1d1f;
  --ogd-radius-sm: 8px;
  --ogd-radius-md: 12px;
  --ogd-radius-pill: 5px; /* Button radius - changed from 9999px to 5px per user request */
  --ogd-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ogd-transition: 0.2s ease;
}

/* Reset and base */
.ogd-hero * {
  box-sizing: border-box;
}

/* Main hero container */
.ogd-hero {
  background: var(--ogd-bg);
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ogd-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header: Name, Location, Status */
.ogd-hero__header {
  text-align: left;
}

.ogd-hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  color: var(--ogd-gray-dark);
  letter-spacing: -0.02em;
}

.ogd-hero__location {
  font-size: 1.125rem;
  color: var(--ogd-gray-mid);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.ogd-hero__status {
  margin-top: 0.75rem;
}

.ogd-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--ogd-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color var(--ogd-transition);
}

.ogd-status--open {
  background: #d1f4e0;
  color: #0a6e31;
}

.ogd-status--closed {
  background: #f5f5f7;
  color: var(--ogd-gray-mid);
}

/* NAP (Name, Address, Phone) */
.ogd-hero__nap {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ogd-nap__line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ogd-gray-dark);
}

.ogd-nap__line svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  color: var(--ogd-gray-mid);
}

.ogd-nap__phone {
  color: var(--ogd-navy);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ogd-transition);
}

.ogd-nap__phone:hover,
.ogd-nap__phone:focus {
  color: var(--ogd-yellow);
  text-decoration: underline;
}

/* Hours toggle button */
.ogd-nap__hours {
  flex-wrap: wrap;
}

.ogd-hours__toggle {
  background: transparent;
  border: none;
  color: var(--ogd-navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color var(--ogd-transition);
}

.ogd-hours__toggle:hover,
.ogd-hours__toggle:focus {
  color: var(--ogd-yellow);
  outline: none;
}

.ogd-hours__toggle:focus-visible {
  outline: 2px solid var(--ogd-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Weekly hours list */
.ogd-hours__list {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 1rem;
  background: var(--ogd-gray-light);
  border-radius: var(--ogd-radius-sm);
  font-size: 0.875rem;
  line-height: 1.8;
}

.ogd-hours__list li {
  padding: 0.25rem 0;
}

/* Primary CTA buttons */
.ogd-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ogd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ogd-radius-pill);
  transition: transform var(--ogd-transition), background-color var(--ogd-transition), box-shadow var(--ogd-transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.ogd-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ogd-btn--primary {
  background: var(--ogd-yellow);
  color: var(--ogd-fg);
}

.ogd-btn--primary:hover {
  background: #f0c000;
  transform: translateY(-1px);
  box-shadow: var(--ogd-shadow-subtle);
}

.ogd-btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.ogd-btn--primary:focus-visible {
  outline: 3px solid var(--ogd-navy);
  outline-offset: 3px;
}

/* Map section */
.ogd-hero__map {
  margin: 1rem 0 0 0;
  padding: 0;
}

.ogd-hero__map a {
  display: block;
  border-radius: var(--ogd-radius-md);
  overflow: hidden;
  transition: transform var(--ogd-transition), box-shadow var(--ogd-transition);
}

.ogd-hero__map a:hover,
.ogd-hero__map a:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ogd-hero__map a:focus-visible {
  outline: 3px solid var(--ogd-navy);
  outline-offset: 4px;
}

.ogd-hero__map-img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  display: block;
}

.ogd-hero__map-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ogd-gray-mid);
  text-align: center;
  font-style: normal;
}

/* Tablet and up: two-column layout */
@media (min-width: 768px) {
  .ogd-hero {
    padding: 3rem 2rem;
  }

  .ogd-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    align-items: start;
  }

  .ogd-hero__header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .ogd-hero__nap {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .ogd-hero__ctas {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ogd-btn {
    flex: 1 1 auto;
    min-width: 180px;
  }

  .ogd-hero__map {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    margin: 0;
    align-self: stretch;
  }

  .ogd-hero__map a {
    height: 100%;
  }

  .ogd-hero__map-img {
    height: 100%;
    min-height: 300px;
    max-height: 500px;
  }

  .ogd-hero__title {
    font-size: 2.5rem;
  }

  .ogd-hero__location {
    font-size: 1.25rem;
  }
}

/* Desktop: larger text and spacing */
@media (min-width: 1024px) {
  .ogd-hero {
    padding: 4rem 2rem;
  }

  .ogd-hero__title {
    font-size: 3rem;
  }

  .ogd-nap__line {
    font-size: 1.0625rem;
  }

  .ogd-btn {
    font-size: 1.0625rem;
    padding: 1rem 1.75rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ogd-hero *,
  .ogd-hero *::before,
  .ogd-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ogd-btn--primary {
    border: 2px solid var(--ogd-fg);
  }

  .ogd-status--open {
    border: 1px solid #0a6e31;
  }

  .ogd-status--closed {
    border: 1px solid var(--ogd-gray-mid);
  }
}

/* Focus visible polyfill for older browsers */
.ogd-hero *:focus:not(:focus-visible) {
  outline: none;
}

/* Print styles */
@media print {
  .ogd-hero__ctas {
    display: none;
  }

  .ogd-hero__map a {
    pointer-events: none;
  }
}

/* Hidden attribute support */
[hidden] {
  display: none !important;
}
