/* drugfreegrady.com refreshed design ("B"). One file, mobile first.
   Tokens up top; everything below reads from them. */

:root {
  --ink: #0a0a0c;
  --ink-2: #16171b;
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --text: #0a0a0c;
  --text-2: #2b2e35;
  --text-on-dark: #ffffff;
  --text-on-dark-2: #c9ccd3;
  --rule: #e2e3e0;
  --rule-dark: #34373e;
  --red: #e0001a;
  --red-dark: #b3001b;
  --red-on-dark: #ff4d5e;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 72px;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); }
.skip:focus { left: 16px; }

/* ---- type ---- */
h1, h2, h3, h4, .display { font-family: var(--display); text-transform: uppercase; line-height: 0.98; letter-spacing: -0.005em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(48px, 8.2vw, 108px); line-height: 0.92; }
h2 { font-size: clamp(38px, 5vw, 66px); }
h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
h4 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
p { margin: 0; }
p + p, p + ul, ul + p, h2 + p, h3 + p, h4 + p { margin-top: 1em; }
strong { font-weight: 600; }
.prose a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--red); }
.on-dark .prose a { color: var(--text-on-dark); text-decoration-color: var(--red-on-dark); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 0.4em; }
.prose p, .prose li { color: var(--text-2); font-size: 21px; line-height: 1.55; }
.on-dark .prose p, .on-dark .prose li { color: var(--text-on-dark); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose h4 { color: var(--red-dark); }
.on-dark .prose h4 { color: var(--red-on-dark); }
.prose h4 a { text-decoration: none; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-on-dark); }
.lede { font-size: 22px; line-height: 1.45; max-width: 60ch; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 72px 0; }
@media (min-width: 760px) { .section { padding: 104px 0; } }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--red { background: var(--red); color: var(--text-on-dark); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack > h2 + .prose { margin-top: 4px; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.narrow { max-width: 780px; }
.stack > .prose, .stack > .btns { max-width: 780px; }
.cell--one { max-width: 560px; }
.page-hero--plain { min-height: 0; }
.page-hero--plain .hero__body { padding-top: 56px; padding-bottom: 48px; }
.center { margin-left: auto; margin-right: auto; text-align: center; }
.center .stack { align-items: center; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: var(--pill); border: 2px solid transparent; background: var(--red); color: var(--text-on-dark); font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--paper-2); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---- header ---- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--text-on-dark); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--rule-dark); border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .close, .nav--open .nav__toggle .open { display: none; }
.nav--open .nav__toggle .close { display: block; }
.nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); border-top: 1px solid var(--rule-dark); padding: 12px var(--gutter) 24px; flex-direction: column; gap: 4px; }
.nav--open .nav__menu { display: flex; }
.nav__link { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--text-on-dark); border-bottom: 1px solid var(--rule-dark); }
.nav__link[aria-current="page"] { color: var(--red-on-dark); }
.nav__cta { margin-top: 14px; align-self: flex-start; }
@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 30px; background: none; border: 0; padding: 0; }
  .nav__link { min-height: 44px; font-size: 19px; border: 0; }
  .nav__cta { margin: 0; }
}

/* ---- heroes ---- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark); display: flex; align-items: flex-end; min-height: 560px; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.82) 34%, rgba(10, 10, 12, 0.08) 72%); }
.hero__body { position: relative; width: 100%; padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { max-width: 14ch; }
.hero .lede { color: var(--text-on-dark); }
@media (min-width: 760px) { .hero { min-height: 680px; } .hero__body { padding-top: 96px; padding-bottom: 80px; } }
.page-hero { min-height: 360px; }
.page-hero .hero__shade { background: linear-gradient(90deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.7) 50%, rgba(10, 10, 12, 0.3) 100%); }
.page-hero .hero__body { padding-top: 64px; padding-bottom: 56px; gap: 14px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 92px); }
.page-hero .lede { color: var(--text-on-dark-2); }
@media (min-width: 760px) { .page-hero { min-height: 440px; } }
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--text-on-dark); background: none; border: 0; padding: 0; cursor: pointer; }
.play span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--pill); border: 2px solid currentColor; }
.play svg { width: 18px; height: 18px; }

/* ---- tiles and cards ---- */
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 230px; padding: 30px; border-radius: var(--radius); background: var(--ink); color: var(--text-on-dark); text-decoration: none; transition: transform 0.15s ease; }
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-size: 40px; line-height: 1; }
.tile__go { align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--pill); background: var(--red); }
.tile__go svg { width: 22px; height: 22px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); background: var(--paper); }
.section--paper-2 .card { background: var(--paper); }
.section:not(.section--paper-2):not(.section--dark) .card { background: var(--paper-2); }
.card img.icon { width: 44px; height: 44px; object-fit: contain; }
.card h3 { font-size: 30px; line-height: 1; }
.card p { color: var(--text-2); font-size: 18px; line-height: 1.55; }
.cell { display: flex; flex-direction: column; gap: 18px; }
.cell .prose h2 { font-size: 32px; }
.cell .prose p, .cell .prose li { font-size: 18px; }
.photo { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(10, 10, 12, 0.14); }
.photo img { width: 100%; }
a.photo { transition: transform 0.15s ease; }
a.photo:hover { transform: translateY(-3px); }

/* ---- ruled list (signs) ---- */
.ruled { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ruled li { padding: 18px 0; border-top: 1px solid var(--rule-dark); font-size: 21px; line-height: 1.4; }
.ruled li:last-child { border-bottom: 1px solid var(--rule-dark); }
.split { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }
.split .photo { min-height: 320px; box-shadow: none; }
.split .photo img { height: 100%; object-fit: cover; object-position: 70% 50%; }
@media (min-width: 900px) { .split .photo { min-height: 440px; } }

/* ---- rows list (events) ---- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.row:last-child { border-bottom: 2px solid var(--ink); }
.row h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1; }
.row svg { width: 34px; height: 34px; flex: none; transition: transform 0.15s ease; }
.row:hover svg { transform: translateX(6px); }
.row small { display: block; font-family: var(--body); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text-2); margin-top: 6px; }
.on-dark .row { color: var(--text-on-dark); border-color: var(--rule-dark); }

/* ---- forms ---- */
.form { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .field--wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.field .required { color: var(--red); }
.field input, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius-sm); }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.form .actions { grid-column: 1 / -1; }
.dfg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dfg-field-error { margin: 0; color: var(--red-dark); font-size: 16px; line-height: 1.4; }
.contact-message { grid-column: 1 / -1; }
.contact-message:empty { display: none; }
.contact-message p { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 18px; }
.contact-success { background: #e4f3d5; color: #1f3a07; }
.contact-error { background: #fde3e5; color: #7a0010; }
.form.sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---- gallery ---- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery--showcase button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 10, 12, 0.92); }
dialog.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-sm); margin: 0 auto; }
dialog.lightbox iframe { width: min(96vw, 1200px); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); background: #000; }
dialog.lightbox .lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: var(--pill); border: 2px solid var(--text-on-dark); background: var(--ink); color: var(--text-on-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
dialog.lightbox .lightbox__close svg { width: 22px; height: 22px; }

/* ---- map ---- */
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--paper-2); }

/* ---- social ---- */
.social { display: flex; gap: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--pill); border: 2px solid currentColor; color: inherit; transition: background 0.15s ease; }
.social a:hover { background: rgba(255, 255, 255, 0.12); }
.section:not(.section--dark) .social a:hover { background: rgba(10, 10, 12, 0.06); }
.social svg { width: 21px; height: 21px; }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--text-on-dark); padding: 56px 0 48px; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--text-on-dark); }
.footer__nav a:hover { color: var(--red-on-dark); }
.footer__line { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule-dark); color: var(--text-on-dark-2); font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__line a { color: inherit; }

/* ---- utilities ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
