/*
Theme Name: Client Experience — Bilingual
Theme URI: https://example.com/client-experience-theme/
Author: Client Experience Site
Author URI: https://example.com/
Description: A bilingual (EN/RU) editorial WordPress theme for a single-page informational site about a personal attorney experience. Includes Custom Post Types for Reviews, Timeline events, and FAQ; a Customizer-driven content model so every text and image is editable from the admin; a front-end review-submission form; Schema.org JSON-LD (Article, Person, Review, LegalService, FAQPage); Open Graph; hreflang; and a built-in cookie/consent notice.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: client-experience
Tags: one-column, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, custom-colors
*/

:root {
  --navy:        #1e3a5f;
  --navy-deep:   #14253d;
  --navy-soft:   #2c4d7a;
  --burgundy:    #800020;
  --burgundy-2:  #5e0017;
  --gold:        #d4af37;
  --gold-soft:   #b3922c;
  --paper:       #fafafa;
  --paper-2:     #f3f1eb;
  --ink:         #1a1a1a;
  --ink-soft:    #3a3a3a;
  --muted:       #6b6b6b;
  --line:        rgba(30,58,95,0.14);
  --line-soft:   rgba(30,58,95,0.07);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1240px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--burgundy); }
::selection { background: var(--gold); color: var(--navy-deep); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 720px) { .container { padding-inline: 20px; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy); font-weight: 500; }
.eyebrow.gold { color: var(--gold-soft); }
.eyebrow.muted { color: var(--muted); }

/* Focus visibility for keyboard nav (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

[data-lang="en"] .lang-only-ru { display: none !important; }
[data-lang="ru"] .lang-only-en { display: none !important; }

/* —— Disclaimer banner —— */
.banner { background: var(--navy-deep); color: rgba(255,255,255,0.86); font-size: 0.78rem; padding: 9px 0; border-bottom: 1px solid rgba(212,175,55,0.25); }
.banner .container { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.banner strong { color: var(--gold); font-weight: 600; }

/* —— Header —— */
header.site { position: sticky; top: 0; z-index: 80; background: rgba(250,250,250,0.94); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
header.site .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; color: var(--navy-deep); }
.logo-mark { width: 38px; height: 38px; border: 1.5px solid var(--navy); display: grid; place-items: center; position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--gold); }
.logo-mark span { font-family: var(--serif); font-weight: 600; font-size: 0.85rem; color: var(--navy-deep); letter-spacing: 0.04em; }
.logo-text small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.logo img { max-height: 38px; width: auto; }

nav.primary { display: flex; gap: 4px; justify-content: center; align-items: center; }
nav.primary a { padding: 10px 14px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); border-radius: var(--radius); transition: color .2s, background .2s; position: relative; }
nav.primary a:hover { color: var(--navy-deep); background: var(--paper-2); }
nav.primary a.active { color: var(--burgundy); }
nav.primary a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); }

.header-right { display: flex; gap: 10px; align-items: center; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang-toggle button { border: 0; background: transparent; padding: 6px 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.lang-toggle button.active { background: var(--navy-deep); color: var(--gold); }

.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--navy-deep); transition: transform .3s, opacity .2s; }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  nav.primary { position: fixed; inset: 74px 0 auto 0; transform: translateY(-110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; gap: 2px; z-index: 70; box-shadow: 0 24px 60px -30px rgba(20,37,61,0.4); }
  body.menu-open nav.primary { transform: translateY(0); }
  nav.primary a { padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
  nav.primary a.active::after { display: none; }
  .hamburger { display: block; }
}

/* —— Hero —— */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 50px 0 60px; } }
.hero-eye { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-eye::before, .hero-eye::after { content: ""; height: 1px; background: var(--gold); flex: 0 0 36px; }
.hero h1 { color: var(--navy-deep); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--burgundy); font-weight: 400; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 32px; line-height: 1.65; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.hero-meta .v { font-family: var(--serif); font-size: 1.15rem; color: var(--navy-deep); margin-top: 4px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; border-radius: 2px; border: 1px solid var(--navy-deep); background: var(--navy-deep); color: var(--paper); cursor: pointer; transition: all .2s; text-align: center; }
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--navy-deep); }
.btn.ghost:hover { background: var(--navy-deep); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

.case-card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(20,37,61,0.35); padding: 26px; position: relative; }
.case-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 24px; height: 24px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.case-card::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 24px; height: 24px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.case-head .file-no { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; }
.stamp { transform: rotate(-6deg); border: 2px solid var(--burgundy); color: var(--burgundy); font-family: var(--mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; padding: 4px 10px; border-radius: 3px; opacity: 0.78; }
.case-body h3 { color: var(--navy-deep); margin-bottom: 12px; }
.case-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 18px 0 4px; padding: 16px; background: var(--paper-2); border-left: 3px solid var(--burgundy); }
.case-quick div { display: flex; flex-direction: column; }
.case-quick .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.case-quick .v { font-size: 0.92rem; color: var(--navy-deep); font-weight: 500; margin-top: 4px; }
.star-row { display: inline-flex; gap: 3px; color: var(--gold); margin-top: 6px; }
.star-row svg { width: 16px; height: 16px; }
.star-row svg.off { color: var(--line); }

/* —— Sections —— */
section.block { padding: 100px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { section.block { padding: 64px 0; } }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 64px; align-items: end; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; } }
.section-head h2 { color: var(--navy-deep); }
.section-head h2 em { font-style: italic; color: var(--burgundy); font-weight: 400; }
.section-num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--gold-soft); border-top: 1px solid var(--gold); padding-top: 14px; margin-bottom: 18px; display: block; }
.section-desc { color: var(--ink-soft); max-width: 64ch; font-size: 1.05rem; line-height: 1.65; }

/* —— Story —— */
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 30px; } }
.story-text { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.8; max-width: 62ch; }
.story-text p:first-child::first-letter { font-family: var(--serif); font-size: 3.4rem; float: left; line-height: 0.9; margin: 6px 10px 0 0; color: var(--burgundy); font-weight: 600; }
.pull-quote { border-left: 3px solid var(--gold); padding: 12px 0 12px 22px; margin: 28px 0; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--navy-deep); line-height: 1.35; }
.pull-quote cite { display: block; font-style: normal; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.story-aside { position: sticky; top: 100px; }
.photo-frame { aspect-ratio: 4/5; background: var(--navy-deep); position: relative; overflow: hidden; border: 1px solid var(--line); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.placeholder::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(212,175,55,0.06) 0 8px, transparent 8px 22px), linear-gradient(180deg, var(--navy-soft) 0%, var(--navy-deep) 100%); }
.photo-frame.placeholder::after { content: "NEUTRAL LEGAL IMAGERY"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; color: rgba(212,175,55,0.7); text-align: center; width: 80%; }
.photo-caption { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* —— Timeline —— */
.tl { position: relative; padding-left: 40px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--gold) 0%, var(--line) 100%); }
.tl-item { position: relative; padding: 0 0 44px 0; opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy-deep); }
.tl-item.crit::before { background: var(--burgundy); border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(128,0,32,0.12); }
.tl-item .tl-date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 6px; }
.tl-item h3 { color: var(--navy-deep); margin-bottom: 8px; }
.tl-item p { color: var(--ink-soft); max-width: 70ch; margin-bottom: 10px; font-size: 1.02rem; line-height: 1.65; }

/* —— Reviews —— */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
.review { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.review:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(20,37,61,0.3); }
.rev-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-deep); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-author { font-weight: 500; color: var(--navy-deep); font-size: 0.98rem; font-family: var(--sans); margin: 0; line-height: 1.3; }
.rev-author small { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.rev-stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 12px; }
.rev-stars svg { width: 15px; height: 15px; }
.rev-stars svg.off { color: var(--line); }
.rev-text { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: max-height .3s; }
.review.open .rev-text { -webkit-line-clamp: unset; }
.rev-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.rev-date { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.62rem; color: #1a7a3a; letter-spacing: 0.1em; text-transform: uppercase; }
.verified::before { content: ""; width: 12px; height: 12px; background: #1a7a3a; border-radius: 50%; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 5 8.5l4.5-5' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 80%; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 5 8.5l4.5-5' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 80%; }
.rev-link { font-family: var(--mono); font-size: 0.7rem; color: var(--burgundy); border: 1px solid var(--line); padding: 6px 10px; transition: all .2s; }
.rev-link:hover { background: var(--burgundy); color: var(--paper); border-color: var(--burgundy); }
.rev-platform { display: inline-block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid var(--gold); padding: 2px 6px; margin-bottom: 10px; align-self: flex-start; }
.rev-expand { background: none; border: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--burgundy); cursor: pointer; padding: 0; text-decoration: underline; margin-bottom: 12px; text-align: left; }
.reviews-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.reviews-disclaimer { font-size: 0.84rem; color: var(--muted); max-width: 60ch; }

/* Add review form */
.add-review-form { display: none; margin-top: 36px; padding: 28px; background: var(--paper); border: 1px solid var(--gold); }
.add-review-form.on { display: block; }
.add-review-form h3 { font-family: var(--serif); color: var(--navy-deep); margin-bottom: 6px; }
.add-review-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 600px) { .add-review-form .form-grid { grid-template-columns: 1fr; } }
.add-review-form .field { display: flex; flex-direction: column; }
.add-review-form label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.add-review-form input, .add-review-form select, .add-review-form textarea { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px; font-family: var(--sans); font-size: 0.92rem; border-radius: 0; }
.add-review-form input:focus, .add-review-form select:focus, .add-review-form textarea:focus { outline: 1px solid var(--gold); }
.add-review-form textarea { min-height: 120px; resize: vertical; }
.add-review-form .full { grid-column: 1 / -1; }
.add-review-form .ack { font-size: 0.82rem; color: var(--muted); margin: 14px 0; }
.add-review-form .submit-row { display: flex; gap: 10px; margin-top: 10px; }
.add-review-form .msg { font-family: var(--mono); font-size: 0.78rem; margin-top: 12px; padding: 10px 12px; }
.add-review-form .msg.ok { background: rgba(26,122,58,0.08); color: #1a7a3a; }
.add-review-form .msg.err { background: rgba(128,0,32,0.08); color: var(--burgundy); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { background: none; border: 0; cursor: pointer; color: var(--line); padding: 0; }
.star-input button.on { color: var(--gold); }
.star-input svg { width: 26px; height: 26px; }

/* —— FAQ —— */
.faq-list { max-width: 920px; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-h { margin: 0; font-family: inherit; font-weight: inherit; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--navy-deep); background: none; border: 0; width: 100%; text-align: left; padding: 0; line-height: 1.35; }
.faq-text { display: inline-block; }
.faq-q .ic { width: 26px; height: 26px; border: 1px solid var(--gold); color: var(--burgundy); display: grid; place-items: center; font-family: var(--mono); font-size: 0.95rem; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); color: var(--paper); background: var(--burgundy); border-color: var(--burgundy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--ink-soft); }
.faq-a-inner { padding: 16px 0 4px; max-width: 76ch; font-size: 1.02rem; line-height: 1.7; }

/* —— Contact —— */
.contact { background: var(--navy-deep); color: var(--paper); }
.contact .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding-top: 100px; padding-bottom: 100px; }
@media (max-width: 900px) { .contact .container { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; } }
.contact h2 { color: var(--paper); }
.contact h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.contact .section-num { color: var(--gold); border-color: var(--gold); }
.contact .section-desc { color: rgba(255,255,255,0.74); }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(212,175,55,0.3); padding: 28px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.contact-form label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact-form input, .contact-form textarea, .contact-form select { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--paper); padding: 12px 14px; font-family: var(--sans); font-size: 0.94rem; border-radius: 0; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.response-card { border: 1px solid var(--gold); padding: 22px; margin-top: 26px; }
.response-card .eyebrow { color: var(--gold); }
.response-card h3 { color: var(--paper); margin: 8px 0 10px; font-size: 1.2rem; }
.response-card p { color: rgba(255,255,255,0.74); margin: 0; font-size: 0.92rem; }

/* —— Footer —— */
footer.site { background: var(--navy-deep); color: rgba(255,255,255,0.66); border-top: 1px solid rgba(212,175,55,0.18); }
footer.site .container { padding-top: 50px; padding-bottom: 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { footer.site .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .container { grid-template-columns: 1fr; } }
footer.site h3, footer.site h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 500; }
footer.site a { color: rgba(255,255,255,0.72); display: block; padding: 4px 0; font-size: 0.88rem; }
footer.site a:hover { color: var(--gold); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; margin-top: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* Cookie */
.cookie { position: fixed; left: 20px; bottom: 20px; right: 20px; max-width: 460px; background: var(--paper); border: 1px solid var(--navy-deep); padding: 18px 20px; box-shadow: 0 30px 60px -30px rgba(20,37,61,0.5); z-index: 90; transform: translateY(120%); transition: transform .35s; }
.cookie.on { transform: none; }
.cookie h3, .cookie h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--burgundy); margin: 0 0 6px; font-weight: 500; }
.cookie p { margin: 0 0 12px; font-size: 0.86rem; color: var(--ink-soft); }
.cookie .row { display: flex; gap: 10px; }
.cookie button { font-size: 0.78rem; padding: 8px 14px; cursor: pointer; border-radius: 2px; }
.cookie .accept { background: var(--navy-deep); color: var(--paper); border: 1px solid var(--navy-deep); }
.cookie .decline { background: transparent; color: var(--navy-deep); border: 1px solid var(--line); }

/* Screen-reader */
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* WP admin bar offset */
.admin-bar header.site { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header.site { top: 46px; } }

/* ============================================================
 *  MOBILE OPTIMIZATIONS
 *  Tightens spacing, scales typography, stacks dense layouts,
 *  ensures 44px tap targets, prevents horizontal overflow.
 * ============================================================ */

/* Tablet-down (≤ 980px) */
@media (max-width: 980px) {
  .case-quick { grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 14px; }
  .reviews-actions { flex-direction: column; align-items: flex-start; }
  .reviews-actions .btn { width: 100%; justify-content: center; }
  .add-review-form { padding: 22px; }
}

/* Phone landscape / small tablet (≤ 720px) */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }
  header.site .container { height: 64px; gap: 12px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark span { font-size: 0.78rem; }
  .logo-text strong { font-size: 0.94rem; }
  .logo-text small { font-size: 0.55rem; letter-spacing: 0.14em; }
  .lang-toggle button { padding: 8px 11px; min-height: 36px; }
  .hamburger { width: 44px; height: 44px; }

  /* Banner — keep readable, allow wrap */
  .banner { font-size: 0.72rem; padding: 8px 0; line-height: 1.4; }
  .banner .container { gap: 6px; }

  /* Hero */
  .hero { padding: 42px 0 56px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; margin-bottom: 18px; }
  .hero-eye { margin-bottom: 22px; gap: 10px; }
  .hero-eye::before, .hero-eye::after { flex-basis: 24px; }
  .hero-lede { font-size: 1.02rem; margin-bottom: 26px; line-height: 1.6; }
  .cta-row { gap: 10px; margin-bottom: 28px; }
  .cta-row .btn { flex: 1; min-width: 0; justify-content: center; padding: 14px 16px; font-size: 0.84rem; }
  .hero-meta { gap: 18px; padding-top: 18px; }
  .hero-meta div { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .hero-meta .v { font-size: 1.04rem; }
  .hero-meta .k { font-size: 0.6rem; }

  /* Case card */
  .case-card { padding: 20px; }
  .case-head { padding-bottom: 12px; margin-bottom: 14px; }
  .case-head h3, .case-body h3 { font-size: 1.18rem; }
  .case-quick { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .case-quick .v { font-size: 0.88rem; }
  .stamp { font-size: 0.62rem; padding: 3px 8px; }

  /* Sections */
  section.block { padding: 56px 0; }
  .section-head { gap: 18px; margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
  .section-num { font-size: 0.7rem; padding-top: 10px; margin-bottom: 12px; }
  .section-desc { font-size: 0.96rem; line-height: 1.6; }

  /* Story */
  .story-grid { gap: 22px; }
  .story-text { font-size: 1rem; line-height: 1.72; max-width: 100%; }
  .story-text p:first-child::first-letter { font-size: 2.6rem; margin: 4px 8px 0 0; }
  .pull-quote { font-size: 1.12rem; padding: 8px 0 8px 16px; margin: 22px 0; }
  .pull-quote cite { font-size: 0.62rem; margin-top: 10px; }
  .photo-frame { aspect-ratio: 4 / 3; }
  .story-aside { position: static; }
  .photo-caption { font-size: 0.64rem; margin-top: 10px; padding-top: 10px; }

  /* Timeline */
  .tl { padding-left: 28px; }
  .tl::before { left: 7px; }
  .tl-item::before { left: -26px; width: 12px; height: 12px; }
  .tl-item { padding-bottom: 32px; }
  .tl-item h3 { font-size: 1.12rem; }
  .tl-item p { font-size: 0.96rem; line-height: 1.6; max-width: 100%; }
  .tl-item .tl-date { font-size: 0.66rem; }

  /* Reviews */
  .reviews-grid { gap: 14px; }
  .review { padding: 20px; }
  .rev-head { gap: 10px; margin-bottom: 12px; }
  .avatar { width: 38px; height: 38px; font-size: 0.98rem; }
  .rev-author { font-size: 0.94rem; }
  .rev-text { font-size: 0.94rem; }
  .rev-foot { gap: 8px; }
  .rev-link { padding: 7px 10px; font-size: 0.66rem; }
  .reviews-disclaimer { font-size: 0.82rem; }

  /* Add-review form */
  .add-review-form { padding: 18px; margin-top: 28px; }
  .add-review-form .form-grid { gap: 12px; }
  .star-input button { padding: 4px; }
  .star-input svg { width: 30px; height: 30px; }
  .add-review-form input,
  .add-review-form select,
  .add-review-form textarea { font-size: 16px; min-height: 44px; }
  .add-review-form textarea { min-height: 120px; }

  /* FAQ */
  .faq-item { padding: 18px 0; }
  .faq-q { font-size: 1.08rem; gap: 14px; line-height: 1.4; }
  .faq-q .ic { width: 28px; height: 28px; }
  .faq-a-inner { font-size: 0.98rem; padding: 14px 0 4px; }

  /* Contact */
  .contact .container { padding-top: 56px; padding-bottom: 56px; gap: 30px; }
  .contact-form { padding: 22px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; min-height: 44px; }
  .response-card { padding: 18px; margin-top: 22px; }
  .response-card h3 { font-size: 1.1rem; }

  /* Footer */
  footer.site .container { gap: 28px; padding-top: 40px; padding-bottom: 28px; }
  footer.site .legal { flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 18px; font-size: 0.74rem; }

  /* Cookie */
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 16px; max-width: none; }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  header.site .container { height: 60px; gap: 8px; }
  .logo-text small { display: none; }              /* free up header width */
  .logo-text strong { font-size: 0.88rem; }
  .lang-toggle button { padding: 7px 9px; font-size: 0.66rem; letter-spacing: 0.12em; }
  .hamburger { width: 40px; height: 40px; }

  /* Hero */
  .hero { padding: 32px 0 42px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); margin-bottom: 14px; }
  .hero-eye { margin-bottom: 18px; }
  .hero-eye::before, .hero-eye::after { flex-basis: 16px; }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.14em; }
  .hero-lede { font-size: 0.98rem; margin-bottom: 22px; }
  .cta-row .btn { padding: 13px 14px; font-size: 0.8rem; gap: 6px; }
  .hero-meta { gap: 14px; }
  .hero-meta div { flex: 1 1 100%; }

  /* Case card */
  .case-card { padding: 16px; }
  .case-head { flex-wrap: wrap; gap: 10px; }
  .stamp { transform: rotate(-4deg); }
  .case-quick { grid-template-columns: 1fr; gap: 10px; }

  /* Sections */
  section.block { padding: 42px 0; }
  .section-head { gap: 14px; margin-bottom: 26px; }
  .section-head h2 { font-size: 1.55rem; line-height: 1.2; }
  .section-head h2 em { display: inline; }

  /* Story */
  .story-text p:first-child::first-letter { font-size: 2.2rem; }
  .pull-quote { font-size: 1.02rem; padding: 6px 0 6px 14px; }

  /* Timeline */
  .tl { padding-left: 24px; }
  .tl::before { left: 6px; }
  .tl-item::before { left: -22px; width: 10px; height: 10px; }
  .tl-item h3 { font-size: 1.04rem; }
  .tl-item p { font-size: 0.92rem; }

  /* Reviews / FAQ tighter */
  .review { padding: 18px; }
  .rev-platform { font-size: 0.56rem; padding: 2px 5px; }
  .rev-stars svg { width: 13px; height: 13px; }
  .rev-foot { flex-direction: column; align-items: flex-start; }
  .rev-link { width: 100%; text-align: center; }
  .faq-q { font-size: 1rem; }
  .faq-q .ic { width: 26px; height: 26px; font-size: 0.85rem; }

  /* Forms tighten */
  .add-review-form { padding: 16px; }
  .contact-form { padding: 18px; }

  /* Footer single column */
  footer.site h3 { margin-bottom: 10px; }
}

/* Tap targets: ensure every clickable thing is at least 44×44 on touch */
@media (hover: none) and (pointer: coarse) {
  nav.primary a,
  .btn,
  .faq-q,
  .rev-link,
  .rev-expand,
  .lang-toggle button,
  .star-input button { min-height: 44px; }
  .rev-expand { padding: 8px 0; }
}

/* Very small phones / Pinterest's 360px test */
@media (max-width: 360px) {
  html { font-size: 15px; }
  .container { padding-inline: 14px; }
  header.site .container { gap: 6px; height: 58px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark span { font-size: 0.72rem; }
  .logo-text strong { font-size: 0.82rem; }
  .lang-toggle button { padding: 6px 8px; font-size: 0.62rem; }
  .hamburger { width: 38px; height: 38px; }
  .banner { font-size: 0.7rem; padding: 7px 0; }

  .hero { padding: 26px 0 36px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero-lede { font-size: 0.94rem; }
  .cta-row { flex-direction: column; gap: 8px; }
  .cta-row .btn { width: 100%; padding: 13px 16px; }

  .case-card { padding: 14px; }
  .case-card::before, .case-card::after { width: 18px; height: 18px; }
  .stamp { font-size: 0.58rem; padding: 3px 6px; }
  .case-quick { padding: 12px; }

  .section-head h2 { font-size: 1.4rem; }
  .pull-quote { font-size: 0.98rem; }
  .tl-item h3 { font-size: 1rem; }
  .review { padding: 16px; }
  .add-review-form { padding: 14px; }
  .contact-form { padding: 16px; }
  .faq-q { font-size: 0.96rem; gap: 10px; }
}

/* Prevent horizontal scroll on any device, plus long-word safety on headings */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { overflow-wrap: anywhere; word-wrap: break-word; }
.section-head h2, .hero h1 { text-wrap: balance; }
