/* ============================================
   Hebron Pharmacy — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #831443;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #fbbf24;
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.45);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline-plum {
  background: transparent;
  color: #831443;
  border: 1.5px solid #f9a8d4;
}

.btn-outline-plum:hover {
  background: #fce7f3;
  border-color: #f472b6;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(131, 20, 67, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(80, 7, 36, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #831443;
}

.nav-logo-mark {
  color: #831443;
}

.nav-logo-text {
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3a3a3a;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #831443;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: #831443;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: #9d174d;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  color: #831443;
  padding: 8px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 32px 24px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 12px 0;
  border-bottom: 1px solid rgba(131, 20, 67, 0.08);
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: #831443;
}

.mobile-menu-cta {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #831443;
  background: #fce7f3;
  padding: 16px 24px;
  border-radius: 10px;
  margin-top: 16px;
  border-bottom: none;
  text-align: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #500724 0%, #831443 30%, #9d174d 55%, #be185d 80%, #d97706 100%);
  padding: 120px 0 80px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(244, 114, 182, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(80, 7, 36, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.hero-badge svg {
  opacity: 0.8;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust-item svg {
  color: #fbbf24;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 24px;
}

.hero-img-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-card--sm {
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 220px;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* --- Services --- */
.services {
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid rgba(131, 20, 67, 0.07);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(80, 7, 36, 0.1);
  border-color: rgba(131, 20, 67, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #831443;
  margin-bottom: 24px;
}

.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #5a5a5a;
}

/* --- About --- */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(80, 7, 36, 0.12);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-float {
  position: absolute;
  bottom: -32px;
  right: -32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(80, 7, 36, 0.15);
  border: 4px solid #fff;
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-stat {
  position: absolute;
  top: -24px;
  left: -24px;
  background: linear-gradient(135deg, #831443 0%, #9d174d 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(80, 7, 36, 0.25);
  max-width: 180px;
}

.about-stat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: #fbbf24;
}

.about-stat-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.85;
}

.about-content {
  max-width: 520px;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3a3a3a;
}

.about-feature svg {
  color: #fbbf24;
  flex-shrink: 0;
}

/* --- Community --- */
.community {
  background: linear-gradient(135deg, #500724 0%, #831443 50%, #9d174d 100%);
  padding: 100px 0;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-content .section-label {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.community-content .section-title {
  color: #fff;
}

.community-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.community-visual {
  position: relative;
}

.community-img-stack {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.community-img-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Hours --- */
.hours {
  background: #fafafa;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hours-content {
  max-width: 480px;
}

.hours-table {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(131, 20, 67, 0.08);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(131, 20, 67, 0.06);
  font-size: 0.9375rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 600;
  color: #1a1a1a;
}

.hours-time {
  color: #5a5a5a;
}

.hours-row--closed .hours-time {
  color: #be185d;
  font-weight: 600;
}

.hours-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hours-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hours-contact-item svg {
  color: #831443;
  flex-shrink: 0;
  margin-top: 2px;
}

.hours-contact-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #831443;
  margin-bottom: 4px;
}

.hours-contact-item span,
.hours-contact-item a {
  font-size: 1rem;
  color: #3a3a3a;
}

.hours-contact-item a:hover {
  color: #831443;
  text-decoration: underline;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(80, 7, 36, 0.12);
  aspect-ratio: 4 / 3;
}

/* --- Contact --- */
.contact {
  background: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  max-width: 440px;
}

.contact-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #3a3a3a;
}

.contact-detail svg {
  color: #831443;
  flex-shrink: 0;
}

.contact-detail a {
  color: #831443;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: #be185d;
}

/* --- Form --- */
.contact-form-wrap {
  background: #fafafa;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(131, 20, 67, 0.07);
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #831443;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 14px 16px;
  border: 1.5px solid rgba(131, 20, 67, 0.15);
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #831443;
  box-shadow: 0 0 0 3px rgba(131, 20, 67, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8125rem;
  color: #7a7a7a;
  text-align: center;
  line-height: 1.6;
}

.form-note a {
  color: #831443;
  font-weight: 600;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0;
}

.form-success.visible {
  display: flex;
}

.form-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #831443;
}

.form-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.form-success p {
  font-size: 0.9375rem;
  color: #5a5a5a;
  line-height: 1.6;
  max-width: 320px;
}

/* --- Footer --- */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo-mark {
  color: #fbbf24;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-address {
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.footer-address a {
  color: #fbbf24;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-address a:hover {
  color: #f59e0b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fbbf24;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .community-inner,
  .hours-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 100px 0 72px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-trust {
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-img-float {
    right: 0;
    bottom: -24px;
  }

  .about-stat {
    left: 0;
    top: -16px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .service-card {
    padding: 28px 24px;
  }
}
