/* ============================================
   Pharmacy On Bay Street — Custom Styles
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: #7f1534;
  color: #fff;
}

/* --- Hero Diagonal Clip --- */
.clip-hero-diagonal {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Navbar --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(254, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(26, 17, 19, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-ink-900 {
  color: #1a1113 !important;
}

#navbar.scrolled .text-burgundy-700 {
  color: #7f1534 !important;
}

/* --- Section Tags --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(127, 21, 52, 0.08);
  border: 1px solid rgba(127, 21, 52, 0.15);
  color: #7f1534;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
}

/* --- Section Headlines --- */
.section-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: #1a1113;
}

/* --- Section Subtitles --- */
.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #3d2c30;
  max-width: 600px;
}

/* --- Hero Headline --- */
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tag {
  opacity: 1;
}

/* --- Service Cards --- */
.service-card {
  opacity: 1;
}

.service-card .group-hover\:text-white {
  color: #fff;
}

/* --- Feature Cards --- */
.feature-card {
  opacity: 1;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 1;
}

/* --- Image hover effects --- */
.rounded-3xl.overflow-hidden {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rounded-3xl.overflow-hidden:hover {
  transform: scale(1.01);
}

/* --- Button focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7f1534;
  outline-offset: 2px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .clip-hero-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  #navbar {
    background: rgba(254, 252, 251, 0.98);
    backdrop-filter: blur(12px);
  }
}

/* --- Print styles --- */
@media print {
  #navbar, .scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
