/* Pharmacie N7 — public website. Tokens match the web app (web/frontend/static/css/app.css). No framework, no JS. */
:root {
  --bg: #f6f5f4;
  --surface: #ffffff;
  --surface-2: #faf9f8;
  --border: #e7e4e1;
  --border-strong: #d4cfca;
  --text: #1a1a1a;
  --text-2: #555049;
  --muted: #857e76;
  /* brand orange from the Pharmacie N7 logo; --primary is a deeper shade so white text on buttons stays readable */
  --brand: #ea6a1c;
  --primary: #c2530f;
  --primary-hover: #a54508;
  --primary-soft: #fdefe6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 12px; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 7px; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.link { color: var(--primary); font-weight: 600; font-size: 14px; }
.break { overflow-wrap: anywhere; }

/* -- header ------------------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-text small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.site-nav a.nav-cta { background: var(--primary); color: #fff; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: var(--primary-hover); color: #fff; }

/* -- buttons ----------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* -- hero -------------------------------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--primary-soft) 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--text-2); margin: 16px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { width: 300px; justify-self: center; background: var(--surface); padding: 20px 28px; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); }

/* -- metrics ----------------------------------------------------------------------------------- */
.metrics { background: var(--surface); border-bottom: 1px solid var(--border); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: 28px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric strong { font-size: 34px; color: var(--primary); line-height: 1.1; }
.metric span { color: var(--text-2); font-size: 14.5px; }

/* -- sections and cards ------------------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-grid h2 { margin-bottom: 18px; }
.about-grid > div > p { color: var(--text-2); font-size: 17px; }
.info-card { border-top: 4px solid var(--brand); }
.info-card h3 { margin-bottom: 14px; }
.info-card dl { margin: 0; }
.info-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.info-card dt { color: var(--muted); font-size: 14px; }
.info-card dd { margin: 0; font-weight: 600; text-align: right; }

.service { position: relative; overflow: hidden; border-top: 4px solid var(--brand); }
.service-num { position: absolute; right: 14px; top: -6px; font-size: 76px; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.service h3, .service p { position: relative; }
.service h3 { padding-right: 36px; }

.why .check { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--primary-soft); margin-bottom: 14px;
  fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* -- timeline ---------------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--border-strong); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 8px 0; }
.timeline li::before { content: ""; position: absolute; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--brand); }
.timeline .year { font-weight: 700; font-size: 20px; color: var(--primary); }
.timeline li span:last-child { color: var(--text-2); font-size: 15px; }

/* -- customers --------------------------------------------------------------------------------- */
.clients { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-weight: 600;
  font-size: 14px; color: var(--text-2); }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; }
.quote::before { content: "\201C"; position: absolute; right: 18px; top: -4px; font-size: 96px; line-height: 1; color: var(--primary-soft); font-family: Georgia, serif; }
.quote blockquote { margin: 0; position: relative; }
.quote blockquote p { font-size: 17px; color: var(--text); font-style: italic; }
.quote figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 12px; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* -- contact ----------------------------------------------------------------------------------- */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-item { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.contact-item:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.contact-item h3 { margin: 4px 0 0; }
.contact-item p { flex: 1; }
.contact-item .icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--primary-soft);
  fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { background: #1a1a1a; color: #d4cfca; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }

/* -- responsive -------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* the menu becomes a second header row that scrolls sideways: no toggle, so no script needed */
  html { scroll-padding-top: 112px; }
  .header-row { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .site-nav { width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 14px; padding: 7px 11px; }
  .site-nav a.nav-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 24px; }
  .hero-logo { width: 180px; grid-row: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--border); }
  .section { padding: 52px 0; }
  .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .timeline li { flex-direction: row; align-items: baseline; text-align: left; gap: 14px; padding: 10px 0 10px 32px; }
  .timeline li::before { left: 0; top: 14px; }
}
