/* HairMaskOEM.com — Expert Hair Care Science & OEM Sourcing (v3 visual upgrade) */
:root {
  --primary: #0f766e;
  --primary-bright: #0d9488;
  --primary-dark: #0b4f4a;
  --primary-deep: #0f172a;
  --accent: #e8a13c;
  --accent-dark: #c47d1e;
  --accent-soft: #fdf3e3;
  --ink: #1e293b;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f3f9f8;
  --bg-tint: #e7f3f2;
  --border: #e2ebee;
  --danger: #b3423f;
  --success: #1f7a4d;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(15,23,42,.06);
  --shadow-md: 0 14px 38px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --grad-primary: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --grad-primary-deep: linear-gradient(135deg, #134e4a 0%, #0f766e 55%, #0d9488 100%);
  --grad-accent: linear-gradient(135deg, #e8a13c 0%, #d97706 100%);
  --grad-dark: linear-gradient(160deg, #0f172a 0%, #103b3a 55%, #0f766e 140%);
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-head: 'Segoe UI', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.8; background: var(--bg); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); box-shadow: 0 1px 8px rgba(15,23,42,.03); }
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--primary-dark); letter-spacing: -.02em; }
.logo span { color: var(--accent-dark); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); font-size: .9rem; font-weight: 600; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav .cta { background: var(--grad-primary); color: #fff !important; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,118,110,.22); }
.nav .cta:hover { background: var(--grad-primary-deep); color: #fff !important; transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ===== Hero (home) ===== */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 460px at 12% -12%, #d7f0ec 0%, rgba(215,240,236,0) 60%),
  radial-gradient(700px 420px at 88% 18%, #fbeed8 0%, rgba(251,238,216,0) 58%),
  linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 96px 0 88px; border-bottom: 1px solid var(--border); }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.10) 0%, rgba(13,148,136,0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 3.05rem; line-height: 1.18; color: var(--primary-dark); max-width: 760px; font-weight: 800; letter-spacing: -.025em; }
.hero h1 .grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 660px; margin: 20px 0 34px; line-height: 1.85; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: #9a6a12; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; border: 1px solid rgba(232,161,60,.25); }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-block; background: var(--grad-primary); color: #fff; padding: 15px 32px; border-radius: 999px; font-weight: 700; font-size: .98rem; box-shadow: 0 8px 22px rgba(15,118,110,.24); transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--grad-primary-deep); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,118,110,.30); }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 24px rgba(2,8,20,.24); }
.btn.light:hover { background: var(--bg-tint); color: var(--primary-dark); box-shadow: 0 10px 28px rgba(2,8,20,.30); }

/* ===== Hero banner (home full-width) ===== */
.hero-banner { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; background: #f5efe6; padding: 0; }
.hero-banner .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: 0; }
.hero-banner .hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(100deg, rgba(255,253,248,.68) 0%, rgba(255,253,248,.42) 40%, rgba(255,253,248,0) 68%),
  linear-gradient(0deg, rgba(255,253,248,.20) 0%, rgba(255,253,248,0) 32%); pointer-events: none; }
.hero-banner .hero-content { position: relative; z-index: 2; width: 100%; padding: 96px 22px 110px; }
.hero-banner .eyebrow { background: rgba(255,255,255,.60); color: #8a6a3b; border-color: rgba(184,147,90,.45); backdrop-filter: blur(4px); }
.hero-banner .eyebrow::before { background: var(--grad-accent); }
.hero-banner h1 { color: #2b2620; max-width: 840px; text-shadow: 0 2px 26px rgba(255,255,255,.60); }
.hero-banner h1 .grad { background: linear-gradient(120deg, #0f766e 0%, #0d9488 46%, #b8935a 118%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-banner p { color: #5b6165; max-width: 660px; text-shadow: 0 1px 14px rgba(255,255,255,.55); }
.hero-banner .hero-actions { position: relative; }
.hero-banner .btn { box-shadow: 0 12px 30px rgba(120,104,80,.24); }
.hero-banner .btn.ghost { color: #0f766e; border-color: rgba(15,118,110,.75); background: rgba(255,255,255,.42); }
.hero-banner .btn.ghost:hover { background: rgba(255,255,255,.70); }
@media (max-width: 960px) {
  .hero-banner { min-height: 560px; }
  .hero-banner .hero-content { padding: 80px 22px 92px; }
  .hero-banner h1 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .hero-banner { min-height: 500px; }
  .hero-banner .hero-content { padding: 64px 18px 76px; }
  .hero-banner h1 { font-size: 1.78rem; }
}

/* Hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero-orb { position: relative; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2aa79b 0%, #0f766e 42%, #0b4f4a 100%);
  box-shadow: 0 30px 80px rgba(11,79,74,.40), inset 0 0 60px rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; }
.hero-orb::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.28); }
.hero-orb svg { position: relative; z-index: 1; width: 86%; height: 86%; }
.hero-badge { position: absolute; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.6); border-radius: 14px; padding: 10px 16px; box-shadow: 0 12px 30px rgba(15,23,42,.16); font-size: .82rem; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-accent); flex-shrink: 0; }
.hero-badge small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; margin-top: 1px; }
.hero-badge.b1 { top: 6%; right: 0; }
.hero-badge.b2 { left: -14px; bottom: 22%; }
.hero-badge.b3 { right: 6%; bottom: -4%; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-soft) 0%, #f7fbfa 100%); }
.section.dark { background: var(--grad-dark); color: #e2e8f0; }
.section > .container:not(.content) > h2 { font-size: 2.15rem; color: var(--primary-dark); margin-bottom: 14px; font-weight: 800; letter-spacing: -.015em; }
.section > .container:not(.content) > h2::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 999px; background: var(--grad-accent); margin-bottom: 16px; }
.section.dark > .container:not(.content) > h2 { color: #fff; }
.section > .container:not(.content) > .sub, .section .sub { color: var(--muted); margin-bottom: 40px; max-width: 780px; font-size: 1.04rem; }
.section.dark .sub { color: #9fb3c8; }
.section-tag { display: inline-block; background: var(--accent-soft); color: #9a6a12; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 780px; font-size: 1.04rem; }
.section.dark .section-sub { color: #9fb3c8; }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Cards ===== */
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-primary); opacity: .85; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: radial-gradient(600px 120px at 90% -10%, rgba(13,148,136,.07), transparent 60%); pointer-events: none; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #cfe3e1; }
.card h3 { color: var(--primary-dark); font-size: 1.18rem; margin-bottom: 10px; line-height: 1.45; }
.card h3 a:hover { text-decoration: none; color: var(--primary-bright); }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.card .tag { display: inline-block; background: var(--bg-tint); color: var(--primary-dark); font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .02em; border: 1px solid rgba(15,118,110,.12); }
.card .tag.amber { background: var(--accent-soft); color: #9a6a12; border-color: rgba(232,161,60,.22); }
.icon-box { width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(150deg, var(--bg-tint), #ffffff); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); box-shadow: var(--shadow-sm); transition: background .25s, color .25s, transform .25s; }
.card:hover .icon-box { background: var(--grad-primary); color: #fff; transform: translateY(-2px); }
.icon-box svg { width: 28px; height: 28px; }
.card .read-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--primary); }
.card .read-more:hover { text-decoration: none; color: var(--primary-dark); }

/* ===== Page hero (inner pages) ===== */
.page-hero { position: relative; overflow: hidden; background:
  radial-gradient(760px 360px at 8% -10%, #d7f0ec 0%, rgba(215,240,236,0) 60%),
  linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 66px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(232,161,60,.14) 0%, rgba(232,161,60,0) 70%); pointer-events: none; }
.page-hero h1 { font-size: 2.55rem; color: var(--primary-dark); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; position: relative; z-index: 1; }
.page-hero .lead { color: var(--muted); max-width: 800px; margin-top: 16px; font-size: 1.08rem; line-height: 1.85; position: relative; z-index: 1; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 20px; color: var(--muted); font-size: .86rem; position: relative; z-index: 1; }
.byline .pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-weight: 600; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.byline .reviewed { color: var(--success); font-weight: 700; }

/* ===== Content typography (long-form) ===== */
.content { max-width: 880px; }
.content h2 { font-size: 1.78rem; margin: 54px 0 16px; color: var(--primary-dark); font-weight: 800; scroll-margin-top: 92px; letter-spacing: -.01em; }
.content h2::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 999px; background: var(--grad-accent); margin-bottom: 12px; }
.content h3 { font-size: 1.28rem; margin: 34px 0 12px; color: var(--primary-dark); font-weight: 700; }
.content p { margin-bottom: 20px; color: #334155; line-height: 1.9; }
.content ul, .content ol { margin: 0 0 22px 26px; color: #334155; line-height: 1.85; }
.content li { margin-bottom: 10px; }
.content strong { color: var(--ink); font-weight: 700; }
.content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 26px 0; font-size: .94rem; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.content th, .content td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 14px 16px; text-align: left; vertical-align: top; }
.content th:last-child, .content td:last-child { border-right: none; }
.content tr:last-child td { border-bottom: none; }
.content th { background: var(--grad-primary-deep); color: #fff; font-weight: 700; letter-spacing: .01em; }
.content tr:nth-child(even) td { background: #f8fbfb; }
.content tr:hover td { background: var(--bg-tint); }
.table-wrap { overflow-x: auto; }

/* ===== Answer / callout boxes ===== */
.answer-box { position: relative; background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%); border: 1px solid var(--border); border-left: 6px solid var(--primary); border-radius: var(--radius); padding: 24px 28px; margin: 26px 0; box-shadow: var(--shadow-sm); font-size: 1.02rem; line-height: 1.85; }
.answer-box .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.tip-box { position: relative; background: #eefaf2; border: 1px solid #cde9d7; border-left: 6px solid var(--success); border-radius: var(--radius); padding: 18px 24px; margin: 20px 0; font-size: .96rem; line-height: 1.8; box-shadow: var(--shadow-sm); }
.tip-box .t { font-weight: 800; color: var(--success); display: block; margin-bottom: 5px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.warn-box { position: relative; background: #fdf4f2; border: 1px solid #f2d2cf; border-left: 6px solid var(--danger); border-radius: var(--radius); padding: 18px 24px; margin: 20px 0; font-size: .96rem; line-height: 1.8; box-shadow: var(--shadow-sm); }
.warn-box .t { font-weight: 800; color: var(--danger); display: block; margin-bottom: 5px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ===== Myth vs Fact ===== */
.myth-fact { border: 1px solid var(--border); border-radius: var(--radius); margin: 20px 0; overflow: hidden; box-shadow: var(--shadow-md); }
.myth-fact .row { display: grid; grid-template-columns: 120px 1fr; gap: 0; }
.myth-fact .row + .row { border-top: 1px solid var(--border); }
.myth-fact .label { padding: 16px 18px; font-weight: 800; font-size: .84rem; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.myth-fact .label.myth { background: #fdf4f2; color: var(--danger); }
.myth-fact .label.fact { background: #eefaf2; color: var(--success); }
.myth-fact .body { padding: 16px 20px; color: #334155; font-size: .96rem; line-height: 1.8; }
@media (max-width: 640px) { .myth-fact .row { grid-template-columns: 1fr; } .myth-fact .label { justify-content: flex-start; } }

/* ===== Expert profile ===== */
.expert-card { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(135deg, var(--bg-soft), #fff); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 30px; margin: 28px 0; box-shadow: var(--shadow-md); }
.expert-avatar { width: 78px; height: 78px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; flex-shrink: 0; box-shadow: 0 8px 20px rgba(15,118,110,.30); }
.expert-card h4 { color: var(--primary-dark); font-size: 1.1rem; }
.expert-card .role { color: var(--primary); font-size: .84rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.expert-card p { color: var(--muted); font-size: .94rem; line-height: 1.8; }
.expert-card .creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.expert-card .creds span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .77rem; color: var(--muted); font-weight: 600; }

/* ===== Ratings ===== */
.rating-panel { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 26px 0; }
.rating-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.rating-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rating-item .stars { color: var(--accent-dark); font-size: 1.05rem; letter-spacing: 2px; }
.rating-item h5 { color: var(--primary-dark); font-size: 1rem; margin: 8px 0 6px; }
.rating-item p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.7; }
.rating-item .score { font-size: .78rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 4px; letter-spacing: .06em; }

/* ===== FAQ ===== */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.faq details:hover { border-color: #cfe3e1; box-shadow: var(--shadow-md); }
.faq summary { font-weight: 700; color: var(--primary-dark); cursor: pointer; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { color: var(--primary); }
.faq p, .faq li { margin-top: 10px; color: #334155; font-size: .96rem; line-height: 1.8; }
.section.dark .faq details { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 24px rgba(2,8,20,.2); }
.section.dark .faq details:hover { border-color: rgba(255,255,255,.32); }
.section.dark .faq summary { color: #fff; }
.section.dark .faq p, .section.dark .faq li { color: #c7d4e2; }
.section.dark .faq summary::-webkit-details-marker { color: var(--accent); }

/* ===== TOC ===== */
.toc { background: linear-gradient(135deg, var(--bg-soft), #fff); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 28px; margin: 28px 0; font-size: .94rem; box-shadow: var(--shadow-sm); }
.toc .t { font-weight: 800; color: var(--primary-dark); letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; display: block; }
.toc ol { margin-left: 20px; line-height: 1.9; }
.toc li { margin-bottom: 6px; }
.toc li::marker { color: var(--primary); font-weight: 700; }

/* ===== Steps ===== */
.steps { counter-reset: step; list-style: none; margin: 22px 0 !important; }
.steps > li { position: relative; padding-left: 50px; margin-bottom: 22px; line-height: 1.85; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .94rem; box-shadow: 0 6px 14px rgba(15,118,110,.28); }

/* ===== Checklist ===== */
.checklist { list-style: none; margin: 18px 0 !important; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; font-size: 1.05rem; }

/* ===== CTA panel ===== */
.cta-panel { background: var(--grad-dark); border-radius: var(--radius-lg); padding: 60px 56px; text-align: center; color: #e2e8f0; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(42,167,155,.28), transparent 70%); top: -120px; left: -80px; }
.cta-panel::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232,161,60,.18), transparent 70%); bottom: -100px; right: -60px; }
.cta-panel h2 { color: #fff; position: relative; z-index: 1; }
.cta-panel h2::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 999px; background: var(--grad-accent); margin: 0 auto 16px; }
.cta-panel p { color: #a8b9cb; position: relative; z-index: 1; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-panel .btn { position: relative; z-index: 1; }

/* ===== Form ===== */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form label { display: block; font-weight: 700; margin: 18px 0 6px; color: var(--primary-dark); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.contact-form button { margin-top: 26px; width: 100%; border: none; cursor: pointer; font-size: 1.02rem; }

/* ===== Footer ===== */
.site-footer { background: var(--primary-deep); color: #cbd5e1; padding: 60px 0 30px; margin-top: 56px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-primary); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .84rem; text-align: center; color: #94a3b8; }

/* ===== Steps (div-based first-call script) ===== */
.steps .step { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; padding: 14px 18px; margin-bottom: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); font-size: .96rem; line-height: 1.8; color: #334155; transition: box-shadow .2s, transform .2s; }
.steps .step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.steps .step span { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 6px 14px rgba(15,118,110,.28); }

/* ===== Steps list (sampling loop) ===== */
.steps-list { list-style: none; margin: 18px 0 !important; }
.steps-list li { position: relative; padding: 14px 18px 14px 52px; margin-bottom: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); color: #334155; font-size: .96rem; line-height: 1.8; }
.steps-list li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 4px 10px rgba(15,118,110,.28); }
.steps-list li strong { color: var(--primary-dark); }
.steps-list li:hover { box-shadow: var(--shadow-md); }

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .nav { display: none; flex-direction: column; background: #fff; position: absolute; top: 72px; left: 0; right: 0; padding: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--primary-dark); }
  .hero { padding: 68px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; }
  .hero-orb { width: 320px; height: 320px; }
  .section { padding: 68px 0; }
  .section > .container:not(.content) > h2 { font-size: 1.75rem; }
  .page-hero { padding: 52px 0 40px; }
  .page-hero h1 { font-size: 1.9rem; }
  .expert-card { flex-direction: column; }
  .cta-panel { padding: 44px 26px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-visual { min-height: 260px; }
  .hero-orb { width: 260px; height: 260px; }
  .hero-badge { font-size: .74rem; padding: 8px 12px; }
  .hero-badge.b2 { left: 0; bottom: 10%; }
  .hero-badge.b3 { right: 0; bottom: -2%; }
  .card { padding: 24px; }
  .contact-form { padding: 26px; }
}

/* ===== Article & product imagery ===== */
.article-figure, .product-figure { margin: 30px 0; }
.article-figure img, .product-figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.article-figure figcaption, .product-figure figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); text-align: center; line-height: 1.6; }
.hero-photo { position: relative; z-index: 1; width: 420px; max-width: 100%; }
.hero-photo img { width: 100%; height: auto; border-radius: 24px; border: 4px solid rgba(255,255,255,.55); box-shadow: var(--shadow-lg); display: block; }
.hero-photo .photo-caption { margin-top: 10px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.85); }
@media (max-width: 960px) { .hero-photo { width: 100%; } }

/* ===== Hero banner responsive overrides (kept last to win cascade) ===== */
@media (max-width: 960px) {
  .hero-banner { padding: 0; min-height: 560px; }
  .hero-banner .hero-content { padding: 80px 22px 92px; }
  .hero-banner h1 { font-size: 2.2rem; }
  .hero-badges { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero-banner { padding: 0; min-height: 500px; }
  .hero-banner .hero-content { padding: 64px 18px 76px; }
  .hero-banner h1 { font-size: 1.78rem; }
}

/* ===== hero-badges (frosted-glass trust chips) ===== */
.hero-badges {
  display: flex;
  gap: 14px;
  margin: 26px 0 6px;
  flex-wrap: wrap;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(60, 80, 70, 0.08);
  font-size: 0.9rem;
  color: #3d4a46;
  letter-spacing: 0.01em;
}
.hero-badges .badge b {
  font-weight: 700;
  color: #0f766e;
}

/* ===== expert-visual (About Expertise media block) ===== */
.expert-visual {
  margin: 30px auto 34px;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f3ec;
  border: 1px solid rgba(201, 164, 112, 0.28);
  box-shadow: 0 8px 28px rgba(60, 80, 70, 0.10);
}
.expert-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.expert-visual figcaption {
  padding: 18px 26px 20px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #46534f;
  border-top: 1px solid rgba(201, 164, 112, 0.22);
  background: linear-gradient(180deg, #faf7f0 0%, #f2eee4 100%);
  letter-spacing: 0.01em;
  max-width: none;
}
.expert-visual figcaption::before {
  content: "— ";
  color: #c9a470;
  font-weight: 700;
}


/* hairmask OEM — ivory / forest editorial identity */
:root{--primary:#174c3c;--primary-bright:#28634f;--primary-dark:#143e31;--accent:#ad895d;--accent-dark:#856440;--bg:#fdfbf7;--bg-soft:#f5f1e9;--bg-tint:#eeede3;--border:#e5e0d6;--ink:#253c34;--muted:#637068;--font-head:Georgia,'Times New Roman',serif;--grad-primary:linear-gradient(120deg,#174c3c,#28634f);--grad-primary-deep:linear-gradient(120deg,#103b2c,#174c3c);--grad-dark:linear-gradient(140deg,#153e31,#10291f)}
.site-header{background:rgba(253,251,247,.97)}.site-header::before{height:2px;background:#b59870}.header-inner{height:88px;gap:25px}.logo{display:flex;flex-shrink:0}.logo img{display:block;width:218px;height:auto}.nav{gap:17px}.nav a{font-size:.82rem}.nav .cta{padding:9px 16px}.hero-banner{min-height:640px}.hero-banner .hero-bg{object-position:center}.hero-banner .hero-overlay{background:linear-gradient(90deg,rgba(249,245,236,.98) 0%,rgba(249,245,236,.93) 28%,rgba(249,245,236,.55) 48%,transparent 68%)}.hero-banner .hero-content{padding-top:90px;padding-bottom:90px}.hero-banner h1{font-family:var(--font-head);font-size:clamp(3.4rem,5.5vw,5.2rem);font-weight:400;line-height:1.06;letter-spacing:-.045em;max-width:650px;color:#163f31;text-shadow:none}.hero-banner h1 .grad{background:none;color:#9b7950;-webkit-text-fill-color:currentColor}.hero-banner p{max-width:500px;font-size:1.04rem;line-height:1.8;color:#4e6258;text-shadow:none}.hero-banner .eyebrow{background:transparent;border:0;padding-left:0;color:#526b5c;letter-spacing:.15em}.hero-banner .hero-actions{gap:12px}.hero-banner .btn{padding:13px 23px;font-size:.88rem}.hero-banner .btn.ghost{color:#174c3c;border-color:#174c3c}.hero-badges .badge{color:#355448;background:rgba(255,255,255,.6);border-color:#d6d8ca}.section{padding:78px 0}.section h2{font-family:var(--font-head);font-weight:400;letter-spacing:-.025em;font-size:2.35rem}.card{border-color:var(--border);box-shadow:none;background:#fffefa}.card:hover{box-shadow:0 12px 32px #143e3110}.card h3{line-height:1.4}.category-image{display:block;width:100%;height:auto;object-fit:cover}.image-card{overflow:hidden}.image-card>.category-image{width:calc(100% + 56px);max-width:none;margin:-28px -28px 24px;height:190px;object-fit:cover}.image-card .tag{margin-top:0}.editorial-cover{margin-top:35px;margin-bottom:15px}.editorial-cover>.category-image{width:100%;max-height:420px;object-fit:cover;border-radius:18px}.image-note{font-size:.75rem;color:#758075;margin-top:7px}.page-hero{background:#f0eee5}.page-hero h1{font-family:var(--font-head);font-weight:400;letter-spacing:-.025em}.article-figure img{border-radius:14px}.btn{box-shadow:none}.site-footer{background:#142f25}.section.dark{background:#173e30}h2[id]{scroll-margin-top:110px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ad895d;outline-offset:4px}
@media(max-width:1100px){.nav{gap:11px}.logo img{width:180px}.nav a{font-size:.76rem}}
@media(max-width:960px){.header-inner{height:76px}.nav{background:#fdfbf7}.nav-toggle{color:#174c3c}.hero-banner{min-height:600px}.hero-banner h1{font-size:3.9rem}.hero-banner .hero-overlay{background:linear-gradient(90deg,#f9f5ecf5 0%,#f9f5ece8 40%,#f9f5ec50 100%)}.hero-banner p{max-width:460px}.image-card>.category-image{height:220px}}
@media(max-width:640px){.logo img{width:175px}.hero-banner{min-height:660px;align-items:flex-start}.hero-banner .hero-content{padding:54px 22px 170px}.hero-banner h1{font-size:3.2rem}.hero-banner .hero-bg{object-position:65% center}.hero-banner .hero-overlay{background:linear-gradient(180deg,#f9f5ecfa 0%,#f9f5ecee 55%,#f9f5ec30 100%)}.hero-banner p{font-size:.98rem}.hero-banner .hero-actions{flex-direction:column;align-items:flex-start}.hero-badges{gap:6px}.hero-badges .badge{font-size:.72rem}.section{padding:48px 0}.section h2{font-size:1.9rem}.editorial-cover>.category-image{max-height:270px}.image-card>.category-image{height:220px}.page-hero h1{font-size:2.1rem}}

/* Concern-led learning and transparent editorial context */
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.topic-card{background:#fffefa;border:1px solid var(--border);border-radius:16px;overflow:hidden;color:var(--ink);transition:transform .2s}.topic-card:hover{transform:translateY(-4px);text-decoration:none}.topic-card img{display:block;width:100%;height:165px;object-fit:cover}.topic-card>div{padding:22px}.topic-card h3{font-size:1.12rem;line-height:1.4;margin-bottom:10px}.topic-card p,.related-card p{font-size:.9rem;color:var(--muted)}.section-tag{text-transform:uppercase;font-size:.74rem;letter-spacing:.16em;color:var(--accent-dark);font-weight:700;margin-bottom:12px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.related-card{padding:25px;border:1px solid var(--border);border-radius:14px;background:#fffefa;color:var(--primary-dark)}.related-card h3{font-size:1.08rem;margin-bottom:10px}.updates-panel{display:grid;grid-template-columns:1.5fr 1fr;gap:60px;align-items:center}.updates-panel p{max-width:620px}.text-link{display:block;margin:16px 0}.small-note,.reading-footer,.footer-disclosure{font-size:.85rem;color:var(--muted);margin-top:18px}.footer-disclosure,.footer-disclosure a{color:#d5dfd5}.trust-note{padding:30px;border-left:3px solid #ad895d;background:var(--bg-soft)}.trust-note p{margin:12px 0}.further-reading{margin-bottom:40px;padding:24px;background:#fffefa;border-radius:14px}.further-reading ul{padding-left:22px}.contact-form .small-note{margin:18px 0}.contact-form textarea[readonly]{background:#f5f1e9}#draftStatus{margin-top:18px;color:var(--primary-dark)}#draftFallback{margin-top:24px}h2[id],section[id]{scroll-margin-top:105px}@media(max-width:960px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-grid{grid-template-columns:1fr}.updates-panel{grid-template-columns:1fr;gap:25px}}@media(max-width:540px){.topic-grid{grid-template-columns:1fr}.topic-card img{height:190px}}

.article-toc{padding:20px 25px;border:1px solid var(--border);background:var(--bg-soft);border-radius:14px;margin-bottom:30px}.article-toc summary{cursor:pointer;font-weight:700;color:var(--primary-dark)}.article-toc nav{display:grid;gap:8px;margin-top:16px}.article-toc a{font-size:.92rem}.content h2[id]{scroll-margin-top:110px}

/* --- Language switch chip in the LTR header nav (points to the Arabic mirror) --- */
.nav a.lang-switch{border:1px solid var(--border);border-radius:999px;padding:5px 12px;color:var(--primary-dark);font-size:.78rem;font-weight:600;line-height:1.5;white-space:nowrap}
.nav a.lang-switch:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff !important;text-decoration:none}
@media (max-width:960px){.nav a.lang-switch{align-self:flex-start;padding:6px 14px;font-size:.85rem}}
