/* ── ORTIZ PHARMACY – SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --blue:  #29ABE2;
  --navy:  #2B2D7E;
  --light: #E8F6FD;
  --white: #ffffff;
  --gray:  #f4f7fb;
  --text:  #1a1a3e;
  --muted: #6b7a99;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(43,45,126,.10);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: .93rem;
  color: var(--navy); letter-spacing: .02em; transition: color .2s;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white);
  padding: .55rem 1.4rem; border-radius: 50px; font-weight: 800;
  text-decoration: none; font-size: .88rem; transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); transform: scale(1.04); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; display: block; transition: .3s; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.1);
  padding: 1rem 5vw 1.5rem; z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .7rem 0; font-weight: 700; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid #eee; font-size: 1rem;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .mob-cta {
  display: inline-block; margin-top: 1rem;
  background: var(--blue); color: var(--white);
  padding: .7rem 2rem; border-radius: 50px; font-weight: 800; border: none;
}

/* ── PRIDE BANNER ── */
.pride-banner {
  background: linear-gradient(90deg, var(--navy) 0%, #1a5fa0 50%, var(--navy) 100%);
  padding: .85rem 5vw; display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap; text-align: center; margin-top: 72px;
}
.pride-badge {
  display: flex; align-items: center; gap: .5rem;
  color: var(--white); font-size: .85rem; font-weight: 700;
}
.pride-badge strong { color: var(--blue); }

/* ── PERKS STRIP ── */
.perks-strip {
  background: var(--blue); display: flex;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.perk {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem 1.5rem; color: var(--white);
  font-size: .85rem; font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.25);
}
.perk:last-child { border-right: none; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1c5e 55%, #0d4a7a 100%);
  padding: 4rem 5vw 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before, .page-hero::after {
  content: ''; position: absolute; border-radius: 50%; opacity: .07; background: var(--blue);
}
.page-hero::before { width: 400px; height: 400px; top: -120px; right: -60px; }
.page-hero::after  { width: 250px; height: 250px; bottom: -80px; left: 5%; }
.page-hero .breadcrumb { color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: .8rem; }
.page-hero .breadcrumb a { color: var(--blue); text-decoration: none; }
.page-hero h1 {
  font-family: 'Playfair Display', serif; color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; position: relative; z-index: 1;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }

/* ── SECTION SHARED ── */
.section { padding: 5rem 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .4rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); margin-bottom: .8rem;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 620px; }
.section-header { margin-bottom: 3rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: .8rem 2rem; border-radius: 50px; font-weight: 800;
  text-decoration: none; font-size: 1rem; transition: all .25s; display: inline-block;
  box-shadow: 0 4px 20px rgba(41,171,226,.35);
}
.btn-primary:hover { background: #1a90c8; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy);
  padding: .8rem 2rem; border-radius: 50px; font-weight: 700;
  text-decoration: none; font-size: 1rem; transition: all .25s; display: inline-block;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: 20px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(43,45,126,.07);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--blue);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(43,45,126,.14); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; font-weight: 800; }
.card p  { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy); padding: 2.5rem 5vw;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
}
.stat { text-align: center; color: var(--white); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--blue); font-weight: 900; }
.stat-label { font-size: .85rem; opacity: .75; margin-top: .2rem; font-weight: 600; }

/* ── TIMELINE ── */
.timeline { position: relative; max-width: 960px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--blue), var(--navy));
  transform: translateX(-50%);
}
.tl-item {
  display: flex; justify-content: flex-end;
  padding-right: calc(50% + 2.5rem); margin-bottom: 2.5rem; position: relative;
}
.tl-item.tl-right {
  justify-content: flex-start;
  padding-right: 0; padding-left: calc(50% + 2.5rem);
}
.tl-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  border: 3px solid var(--white); border-radius: 50px;
  font-size: .72rem; font-weight: 900; padding: .3rem .65rem;
  white-space: nowrap; box-shadow: 0 0 0 3px var(--blue);
  z-index: 2; top: 1.4rem;
}
.tl-card {
  background: var(--white); border-radius: 18px; padding: 1.8rem;
  box-shadow: 0 4px 24px rgba(43,45,126,.09);
  border-top: 4px solid var(--blue); max-width: 400px; width: 100%;
}
.tl-gen { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
.tl-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: .6rem; }
.tl-body { color: var(--muted); font-size: .91rem; line-height: 1.7; margin-bottom: .9rem; }
.tl-milestone {
  background: var(--light); color: var(--navy);
  font-size: .8rem; font-weight: 800; padding: .45rem .85rem;
  border-radius: 8px; display: inline-block;
}

/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid #e2e8f0; border-radius: 10px; padding: .7rem 1rem;
  font-family: 'Nunito', sans-serif; font-size: .95rem; color: var(--text);
  transition: border .2s; outline: none; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; background: var(--navy); color: var(--white);
  border: none; border-radius: 50px; padding: 1rem;
  font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--blue); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 3rem 5vw 1.5rem; text-align: center;
}
footer img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--blue); font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
footer p { font-size: .88rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1.2rem 0; }
.copyright { font-size: .78rem; opacity: .45; }
.delivery-note { font-size: .75rem; opacity: .35; margin-top: .4rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .timeline::before { left: 18px; }
  .tl-item, .tl-item.tl-right { padding: 0 0 0 3.5rem; justify-content: flex-start; }
  .tl-dot { left: 18px; }
}
@media (max-width: 600px) {
  .stats-bar { flex-direction: column; align-items: center; }
  .perks-strip { flex-direction: column; }
  .perk { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); width: 100%; justify-content: center; }
  .pride-banner { flex-direction: column; gap: .8rem; }
}

/* ── ANIMATION ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .15s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }

/* ── ACCESSIBILITY (WCAG 2.1 AA) ── */

/* Visible focus indicators for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline only for mouse users (not keyboard) */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus-visible is always shown */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Minimum touch target size (44x44px) for mobile */
.nav-cta, .btn-primary, .btn-outline, .form-submit,
.hamburger, .filter-tab {
  min-height: 44px;
  min-width: 44px;
}

/* Improved link underlines for readability */
main a:not(.btn-primary):not(.btn-outline):not(.nav-cta):not([class*="card"]) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* High contrast for muted text — ensures WCAG AA 4.5:1 ratio */
.section-sub, .card p, .value-card p, .team-card p {
  color: #555570;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary, .btn-outline, .nav-cta { border: 2px solid ButtonText; }
}
