/* ===========================================================
   D&D Pharmacy — editorial redesign
   Brand navy + green, warm paper neutrals, photo-forward.
   Type: Newsreader (display serif) + Hanken Grotesk (UI/body)
   =========================================================== */

:root {
  /* Brand */
  --navy: #0a355e;
  --navy-deep: #062340;
  --navy-700: #1a4f7e;
  --green: #0fa04e;
  --green-700: #0b7a3b;

  /* Neutrals (warm) */
  --ink: #16212e;
  --muted: #5d6776;
  --paper: #f6f2e9;       /* warm canvas */
  --paper-2: #efe9db;     /* deeper paper */
  --line: #e6e1d4;        /* warm hairline */
  --line-cool: #e3e7ec;
  --white: #ffffff;

  --maxw: 1280px;
  --gutter: 40px;
  --radius: 6px;
  --radius-lg: 18px;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --shadow-soft: 0 24px 60px -32px rgba(8, 35, 64, 0.45);
  --shadow-card: 0 2px 4px rgba(8,35,64,0.04), 0 18px 40px -28px rgba(8,35,64,0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography primitives ---------- */
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--green-700);
}
.overline::before {
  content: ''; width: 22px; height: 1.5px; background: var(--green); display: inline-block;
}
.overline.center { justify-content: center; }

.serif { font-family: var(--serif); font-weight: 400; }
em.ital { font-family: var(--serif); font-style: italic; color: var(--green-700); font-weight: 400; }

h1, h2, h3 { margin: 0; font-weight: 500; }

.display {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans);
  font-weight: 600; font-size: 15px; letter-spacing: 0.1px;
  padding: 14px 24px; border-radius: 999px;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,160,78,0.7); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-text { background: transparent; color: var(--navy); padding-left: 6px; padding-right: 6px; }
.btn-text:hover { color: var(--green-700); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Top utility bar ---------- */
.util {
  background: var(--navy-deep); color: rgba(255,255,255,0.82);
  font-size: 13px; letter-spacing: 0.2px;
}
.util .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px var(--gutter); flex-wrap: wrap; }
.util .sep { opacity: 0.4; }
.util .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 7px; vertical-align: middle; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.brand-logo { height: 40px; width: auto; }
.nav { display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 6px 2px; position: relative; transition: color .15s ease;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav a.active::after { content:''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); border-radius: 2px; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--navy); }
.phone small { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.phone strong { font-size: 15px; font-weight: 700; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--paper) 0%, rgba(246,242,233,0) 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 72px; align-items: center; padding-top: 78px; padding-bottom: 84px; }
.hero-copy { max-width: 600px; }
.hero h1 { margin: 22px 0 0; }
.hero h1 .line2 { display: block; }
.hero .lede { margin: 26px 0 0; max-width: 500px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero .trust span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.hero .trust span::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* Hero media */
.hero-media { position: relative; }
.hero-frame {
  position: relative; border-radius: 220px 220px 24px 24px;
  overflow: hidden; box-shadow: var(--shadow-soft);
  background: var(--paper-2);
}
.hero-frame::after { content:''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(8,35,64,0.06); }
.hero-frame img { width: 100%; aspect-ratio: 4/4.7; object-fit: cover; object-position: 60% 25%; }

.hero-chip {
  position: absolute; left: -26px; bottom: 46px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 14px 18px 14px 16px;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 13px; max-width: 250px;
}
.hero-chip .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--green) 0%, var(--navy) 120%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 500;
}
.hero-chip .who { line-height: 1.2; }
.hero-chip .who .k { font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.hero-chip .who .n { font-size: 16px; font-weight: 700; color: var(--navy); display: block; margin-top: 2px; }
.hero-chip .who .r { font-size: 12.5px; color: var(--muted); }

.hero-seal {
  position: absolute; right: -18px; top: 30px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-card); padding: 10px;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-seal b { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; display: block; }
.hero-seal span { font-size: 9.5px; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 4px; display: block; line-height: 1.25; }

/* ===========================================================
   MARQUEE / trust strip
   =========================================================== */
.tstrip { background: var(--navy); color: #fff; }
.tstrip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; }
.tstrip-cell { padding: 30px 28px; position: relative; }
.tstrip-cell + .tstrip-cell::before { content:''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: rgba(255,255,255,0.14); }
.tstrip-cell .k { font-family: var(--serif); font-size: 30px; line-height: 1; color: #fff; font-weight: 500; }
.tstrip-cell .k em { font-style: italic; color: var(--green); }
.tstrip-cell .v { font-size: 13px; color: rgba(255,255,255,0.66); margin-top: 9px; line-height: 1.45; }

/* ===========================================================
   Section scaffolding
   =========================================================== */
.section { padding: 104px 0; }
.section.paper { background: var(--paper); }
.section.tight { padding: 80px 0; }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head .h2 { margin-top: 16px; }
.sec-head p { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: pretty; max-width: 600px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Flagship split blocks ---------- */
.flag { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.flag + .flag { margin-top: 92px; }
.flag.rev .flag-media { order: 2; }
.flag.rev .flag-copy { order: 1; }
.flag-media { position: relative; }
.flag-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--paper-2); }
.flag-photo img { width: 100%; aspect-ratio: 7/5.6; object-fit: cover; }
.flag-kicker {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,0.94); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-card);
}
.flag-copy .tag { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-700); }
.flag-copy h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); margin: 12px 0 0; }
.flag-copy > p { font-size: 17.5px; color: var(--muted); line-height: 1.6; margin: 18px 0 0; max-width: 520px; }
.flag-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.flag-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.4; }
.flag-list li svg { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.flag-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Why D&D — editorial numbered list ---------- */
.why-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.why-list { display: grid; gap: 0; }
.why-row { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-row .no { font-family: var(--serif); font-size: 22px; color: var(--green-700); line-height: 1; padding-top: 4px; }
.why-row h4 { font-size: 19px; font-weight: 650; color: var(--navy); margin: 0; letter-spacing: -0.2px; }
.why-row p { font-size: 15.5px; color: var(--muted); margin: 7px 0 0; line-height: 1.55; }
.why-aside { position: sticky; top: 96px; }
.why-aside .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.why-aside .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-aside .cap { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Testimonials ---------- */
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.testi .stars { color: var(--green); letter-spacing: 3px; font-size: 14px; }
.testi blockquote {
  font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.42;
  color: var(--navy); margin: 16px 0 0; letter-spacing: -0.01em; text-wrap: pretty; flex: 1;
}
.testi .who { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.testi .who span { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; font-size: 13px; }

/* ---------- Delivery ---------- */
.deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.deliv-types { display: grid; gap: 12px; margin-top: 28px; }
.deliv-type { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.deliv-type .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(10,53,94,0.06); display: grid; place-items: center; }
.deliv-type .ic svg { width: 22px; height: 22px; }
.deliv-type h4 { font-size: 16px; font-weight: 650; color: var(--navy); margin: 0; }
.deliv-type p { font-size: 14px; color: var(--muted); margin: 3px 0 0; line-height: 1.5; }
.deliv-areas { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: var(--radius-lg); padding: 44px; position: relative; overflow: hidden; }
.deliv-areas::before { content:''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(15,160,78,0.26) 0%, transparent 68%); }
.deliv-areas .in { position: relative; z-index: 1; }
.deliv-areas h3 { font-family: var(--serif); font-weight: 460; font-size: 30px; letter-spacing: -0.02em; margin: 14px 0 6px; line-height: 1.1; }
.deliv-areas p { color: rgba(255,255,255,0.74); font-size: 15px; margin: 0 0 24px; }
.area-list { display: flex; flex-wrap: wrap; gap: 9px; }
.area-list span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 9px 15px; border-radius: 999px; }
.area-list span::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Everyday services ---------- */
.everyday-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.everyday-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, transform .12s ease; }
.everyday-item:hover { border-color: rgba(15,160,78,0.5); transform: translateY(-2px); }
.everyday-item .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(15,160,78,0.1); display: grid; place-items: center; }
.everyday-item .ic svg { width: 20px; height: 20px; }
.everyday-item h4 { font-size: 16px; font-weight: 650; color: var(--navy); margin: 0; }
.everyday-item p { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; line-height: 1.45; }
.everyday-item .go { color: var(--muted); transition: color .15s ease, transform .2s ease; }
.everyday-item:hover .go { color: var(--green); transform: translateX(3px); }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.final::before { content:''; position: absolute; left: 50%; top: -160px; width: 520px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(15,160,78,0.20) 0%, transparent 65%); }
.final .wrap { position: relative; text-align: center; padding: 100px var(--gutter); }
.final .h2 { color: #fff; }
.final p { color: rgba(255,255,255,0.78); font-size: 19px; max-width: 560px; margin: 18px auto 0; line-height: 1.55; }
.final .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #fff; padding: 64px var(--gutter) 30px; }
.footer .wrap { padding: 0; }
.footer .top { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .brand { max-width: 290px; }
.footer .brand img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer .brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; line-height: 1.6; }
.footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer .col-title { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 600; }
.footer .cols a { display: block; color: rgba(255,255,255,0.84); font-size: 14px; margin-bottom: 9px; transition: color .15s ease; }
.footer .cols a:hover { color: var(--green); }
.footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1080px) {
  .header-cta .phone { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-aside { position: static; max-width: 420px; }
}
@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 22px var(--gutter); gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); }
  .menu-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 52px; padding-top: 52px; padding-bottom: 60px; }
  .hero-media { max-width: 460px; }
  .hero-frame img { aspect-ratio: 5/4.4; object-position: 60% 22%; }
  .tstrip .wrap { grid-template-columns: 1fr 1fr; }
  .tstrip-cell:nth-child(odd)::before { display: none; }
  .section { padding: 72px 0; }
  .flag { grid-template-columns: 1fr; gap: 32px; }
  .flag.rev .flag-media { order: 0; }
  .flag.rev .flag-copy { order: 0; }
  .flag + .flag { margin-top: 64px; }
  .testi-grid { grid-template-columns: 1fr; }
  .deliv { grid-template-columns: 1fr; gap: 36px; }
  .everyday-grid { grid-template-columns: 1fr; }
  .final .wrap { padding: 68px var(--gutter); }
  .footer .top { flex-direction: column; gap: 36px; }
}
@media (max-width: 560px) {
  .tstrip .wrap { grid-template-columns: 1fr; }
  .tstrip-cell::before { display: none !important; }
  .tstrip-cell { border-top: 1px solid rgba(255,255,255,0.12); }
  .flag-list { grid-template-columns: 1fr; }
  .hero-seal { width: 80px; height: 80px; right: 6px; }
  .hero-chip { left: 6px; }
}
