/* ============================================================
   HANSON DRUG CO. LLC — Randall Kaye, MD
   Palette: Vintage sepia + modern life sciences navy/slate
   ============================================================ */

:root {
  /* Vintage warm tones */
  --cream:        #F5F0E6;
  --parchment:    #EDE5D0;
  --sepia-light:  #C8A97A;
  --sepia:        #9A7240;
  --sepia-dark:   #6B4E28;
  --tobacco:      #3D2B14;

  /* Modern life sciences */
  --navy:         #1A2744;
  --navy-mid:     #243458;
  --slate:        #2E4A7C;
  --sky:          #4A7FBE;
  --mist:         #EBF2FB;

  /* Accents */
  --gold:         #C49A3C;
  --gold-light:   #E8C96A;
  --white:        #FFFFFF;
  --text:         #1E1A14;
  --text-mid:     #4A3F30;
  --text-light:   #7A6F60;

  /* Type */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --max-w:        1160px;
  --section-pad:  96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  padding: 0 32px;
}

.nav.scrolled {
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px; height: 42px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-mark--large {
  width: 64px; height: 64px;
  font-size: 26px;
  border-radius: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--sepia-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--navy);
  z-index: 99;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.07); }

.mobile-menu a {
  display: block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(40%) contrast(1.05) brightness(0.65) saturate(0.85);
}

/* Placeholder when no image */
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2A1F0E 0%, #1A2744 100%);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-img-placeholder.active {
  display: flex;
}

.placeholder-inner {
  display: none;
}

/* Gradient overlay — bottom-heavy so text reads */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,18,38,0.95) 0%, rgba(10,18,38,0.65) 45%, rgba(10,18,38,0.35) 70%, rgba(10,18,38,0.2) 100%),
    linear-gradient(to right, rgba(10,18,38,0.6) 0%, rgba(10,18,38,0.2) 60%, rgba(10,18,38,0.1) 100%);
}

.hero-scroll-hint {
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(232,201,106,0.35);
  border-radius: 3px;
  padding: 5px 12px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: none;
}

.hero-headline br { display: block; }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 7px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,154,60,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 17px 36px;
  font-size: 16px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1.2s 1.5s both;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 48px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}


/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.section {
  padding: var(--section-pad) 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.75;
}


/* ============================================================
   LEGACY
   ============================================================ */

.legacy-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.legacy-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--sepia-light));
}

.legacy-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}

.legacy-text p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.legacy-lead {
  font-size: 19px !important;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tobacco) !important;
  line-height: 1.65 !important;
  margin-bottom: 28px !important;
}

/* Legacy card */
.legacy-card {
  position: sticky;
  top: 96px;
}

.legacy-card-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(61,43,20,0.12), 0 1px 4px rgba(61,43,20,0.06);
  border: 1px solid rgba(196,154,60,0.2);
}

.legacy-year {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--parchment);
}

.legacy-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  width: 2px; height: 30px;
  background: var(--parchment);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-dot::after { display: none; }

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-content strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.timeline-content span {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.legacy-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-mid);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  line-height: 1.65;
}


/* ============================================================
   SERVICES
   ============================================================ */

.services-section {
  background: var(--white);
}

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

.service-card {
  background: var(--white);
  border: 1px solid #E6E0D6;
  border-radius: 16px;
  padding: 40px 36px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,39,68,0.1);
  border-color: var(--sepia-light);
}

.service-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.service-card--featured:hover {
  border-color: var(--slate);
  box-shadow: 0 16px 48px rgba(26,39,68,0.3);
}

.service-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 24px;
}

.service-card--featured .service-icon {
  color: var(--gold-light);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.service-card--featured h3 {
  color: var(--white);
}

.service-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia);
  background: var(--parchment);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.service-card--featured .service-tag {
  color: var(--gold-light);
  background: rgba(232,201,106,0.15);
}

.service-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.service-card--featured p {
  color: rgba(255,255,255,0.72);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-list li {
  font-size: 13px;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sepia-light);
  font-size: 11px;
}

.service-card--featured .service-list li {
  color: rgba(255,255,255,0.55);
}

.service-card--featured .service-list li::before {
  color: var(--gold-light);
}


/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='0.02'%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");
}

.experience-section .section-tag {
  color: var(--gold-light);
}

.experience-section .section-title {
  color: var(--white);
}

.experience-section .section-intro {
  color: rgba(255,255,255,0.6);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

.exp-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px;
  transition: background 0.2s, border-color 0.2s;
}

.exp-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,154,60,0.4);
}

.exp-card--broad {
  grid-column: 1 / -1;
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.exp-company {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia-light);
}

.exp-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196,154,60,0.4);
  border-radius: 3px;
  padding: 3px 8px;
}

.exp-role {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.exp-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  margin-bottom: 20px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 4px 10px;
}

/* Broad card pillars */
.exp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pillar strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.pillar span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--sepia-light));
}

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

.contact-text .section-tag {
  margin-bottom: 12px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.contact-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}

.contact-text .btn {
  margin-top: 8px;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(61,43,20,0.12);
  border: 1px solid rgba(196,154,60,0.2);
  text-align: center;
}

.contact-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-title-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-focus {
  font-size: 12px;
  color: var(--sepia);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.contact-links {
  border-top: 1px solid var(--parchment);
  padding-top: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  padding: 10px 20px;
  border: 1px solid rgba(46,74,124,0.25);
  border-radius: 8px;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.contact-link svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.contact-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,39,68,0.2);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--tobacco);
  padding: 40px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer .logo-name { color: var(--sepia-light); }
.footer .logo-sub { color: rgba(200,169,122,0.5); }

.footer-copy {
  font-size: 13px;
  color: rgba(200,169,122,0.5);
  line-height: 1.6;
  text-align: right;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(200,169,122,0.4);
}




/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .legacy-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .legacy-card { position: static; }

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

  .services-grid .service-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .exp-pillars {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-aside {
    display: flex;
    justify-content: center;
  }

  .contact-card {
    max-width: 380px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .stat { padding: 24px 28px; }
  .stat-num { font-size: 28px; }

  .stats-inner {
    flex-wrap: wrap;
  }

  .stat-divider { display: none; }

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

  .services-grid .service-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

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

  .exp-card--broad { grid-column: auto; }

  .exp-pillars {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy { text-align: left; }

  .hero-headline br { display: none; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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

  .stat { padding: 20px 20px; width: 50%; }
}
