/*
Theme Name: New Path Clinic
Theme URI: https://example.com
Author: Clinic Team
Description: Trilingual WordPress theme for an addiction treatment clinic.
Version: 1.0.0
Text Domain: newpath
*/

:root {
  --ink: #102a35;
  --muted: #5a6d75;
  --paper: #f5f8f7;
  --white: #ffffff;
  --teal: #0b6b68;
  --teal-dark: #064f4d;
  --mint: #dff3ed;
  --line: #dce7e4;
  --accent: #d99b43;
  --shadow: 0 20px 50px rgba(16, 42, 53, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

.topbar { background: var(--ink); color: #eaf4f2; font-size: .9rem; }
.topbar-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar strong { color: #fff; }
.languages { display: flex; gap: 8px; }
.languages a { padding: 2px 8px; border-radius: 99px; opacity: .72; }
.languages a.active, .languages a:hover { background: rgba(255,255,255,.13); opacity: 1; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,248,247,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(220,231,228,.85); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--teal); font-size: 1.25rem; }
.brand-text small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 650; font-size: .95rem; }
.nav a:hover { color: var(--teal); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; font-size: 1.5rem; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; background: var(--teal); color: #fff; font: inherit; font-weight: 750; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); background: var(--teal-dark); box-shadow: 0 10px 24px rgba(11,107,104,.2); }
.button-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.button-outline:hover { color: #fff; }
.button-light { background: #fff; color: var(--teal-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-weight: 800; font-size: .83rem; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }

.hero { padding: 72px 0 58px; overflow: hidden; background: radial-gradient(circle at 88% 15%, #ccebe3 0, transparent 34%), linear-gradient(145deg, #f9fbfa, #edf5f2); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.hero h1 { max-width: 780px; margin: 16px 0 22px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-copy { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: 7px; }
.help-card { position: relative; padding: 34px; border-radius: 30px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.help-card::after { content: ""; position: absolute; right: -35px; bottom: -35px; width: 150px; height: 150px; border: 28px solid rgba(255,255,255,.07); border-radius: 50%; }
.help-card h2 { margin: 0 0 12px; font-size: 1.65rem; line-height: 1.2; }
.help-card p { color: #cddbdc; }
.phone-link { display: block; margin: 24px 0 4px; font-size: 1.6rem; font-weight: 850; }
.phone-note { color: #9fb5b8; font-size: .85rem; }

.section { padding: 88px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b9cbcd; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { min-height: 230px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; background: var(--mint); color: var(--teal); font-weight: 900; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.process-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); font-weight: 850; }
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; color: #b9cbcd; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.post-card-body { padding: 25px; }
.post-card .meta { color: var(--teal); font-size: .82rem; font-weight: 750; }
.post-card h3 { margin: 10px 0; font-size: 1.25rem; line-height: 1.35; }
.post-card p { color: var(--muted); }
.read-more { color: var(--teal); font-weight: 800; }
.video-frame { aspect-ratio: 16/9; background: #dfe9e6; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-item { padding: 18px; border-radius: 16px; background: var(--mint); }
.contact-item small { display: block; color: var(--muted); }
.callback-form { padding: 32px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
label { font-size: .9rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfdedb; border-radius: 12px; background: #fbfdfc; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,107,104,.15); border-color: var(--teal); }
.privacy-note { color: var(--muted); font-size: .82rem; }
.form-status { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--mint); }
.hp { position: absolute; left: -10000px; }

.content-page { padding: 68px 0 96px; }
.content-narrow { max-width: 800px; margin-inline: auto; }
.content-page h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content a { color: var(--teal); text-decoration: underline; }
.notice { margin-top: 40px; padding: 18px; background: #eef4f2; border-left: 4px solid var(--teal); color: var(--muted); font-size: .9rem; }

.site-footer { padding: 54px 0 26px; background: #0a2029; color: #d7e4e4; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 46px; }
.site-footer h3 { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #91a9ad; font-size: .84rem; }

@media (max-width: 940px) {
  .nav { position: fixed; inset: 120px 20px auto; display: none; padding: 24px; flex-direction: column; align-items: stretch; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 52px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner { min-height: 46px; }
  .topbar-message { display: none; }
  .header-inner { min-height: 70px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 2.7rem; }
  .section { padding: 64px 0; }
  .cards, .post-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .help-card, .callback-form { padding: 24px; }
  .footer-bottom { flex-direction: column; }
}
