/*
Theme Name: Thames Autos
Theme URI: https://thamesautos.co.uk/
Author: Autonomous UK
Description: Custom performance-first theme for Thames Autos car bodyshop — accident & insurance repairs, Ilford. Cinematic dark design end-to-end: GSAP/Lenis motion homepage plus matching dark inner pages, SEO-ready markup, AutoBodyShop schema.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: thames-autos
*/

/* ============================================================
   Cinematic dark skin for the inner pages (v1.3.0).
   Same design language as front-page.php: dark scale derived from
   the logo's black, exact logo red/blue, Poppins 200–600, one
   signature ease. The front page is self-contained and does not
   load this file. Class names below match the theme templates,
   helper functions and the imported page content — the light
   markup renders dark without touching the database.
   ============================================================ */
:root {
  --brand-red: #ED2128;
  --brand-blue: #2E3192;
  --void: #0C0A0B;
  --panel: #121011;
  --panel-2: #1A1718;
  --hair: rgba(255,255,255,0.09);
  --white: #FFFFFF;
  --muted: #8C8A8B;
  --ghost: rgba(255,255,255,0.55);
  --body-c: rgba(255,255,255,0.78);
  --red: #ED2128;
  --red-deep: #C4151C;
  --blue: #2E3192;
  --steel: #8C8A8B; /* legacy var name used by inline helper styles */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --f: "Poppins", "Segoe UI", -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void); color: var(--white); font-family: var(--f);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 46px; }
.eyebrow { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--red); color: #fff; padding: 10px 18px; font-weight: 500; }
.skip:focus { left: 0; }

/* ---------- HEADER (identical system to the front page) ---------- */
header#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
header#hdr.solid { background: rgba(8,9,10,0.94); border-bottom-color: var(--hair); }
header#hdr.mega-active { background: var(--void); border-bottom-color: transparent; }
header#hdr.up { transform: translateY(-100%); }
.admin-bar header#hdr { top: var(--wp-admin--admin-bar--height, 32px); }
.nav { display: flex; align-items: center; height: 94px; gap: 40px; }
.nav .logo img { height: 36px; width: auto; display: block; }
nav.links { margin: 0 auto; display: flex; gap: 44px; }
nav.links a { position: relative; font-size: 0.88rem; color: rgba(255,255,255,0.8); padding: 4px 0; transition: color .5s var(--ease); }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease); }
nav.links a:hover { color: #fff; }
nav.links a:hover::after { transform: scaleX(1); }
.mega-wrap {
  position: absolute; top: 100%; left: 0; right: 0;
  overflow: hidden; pointer-events: none;
  visibility: hidden; transition: visibility 0s .9s;
}
.mega-wrap.open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mega {
  background: var(--void); border-bottom: 1px solid var(--hair);
  padding: 40px 0 46px; transform: translateY(-100%);
  will-change: transform; transition: transform .9s var(--ease);
}
.mega-wrap.open .mega { transform: translateY(0); }
.mega-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
.mcard {
  position: relative; display: block; border-radius: 22px; overflow: hidden;
  aspect-ratio: 3 / 3.5; background: var(--panel-2);
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.mcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.3s var(--ease); }
.mcard:hover img { transform: scale(1.09); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,10,0.62) 0%, rgba(8,9,10,0.15) 45%, rgba(8,9,10,0.55) 100%); }
.mcard-t { position: absolute; z-index: 2; top: 22px; left: 22px; right: 22px; font-size: 1.02rem; font-weight: 400; line-height: 1.25; color: #fff; letter-spacing: -0.01em; }
.mcard-go {
  position: absolute; z-index: 2; right: 18px; bottom: 18px;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--void);
  display: flex; align-items: center; justify-content: center;
  transition: background .7s var(--ease), color .7s var(--ease), transform .7s var(--ease);
}
.mcard:hover .mcard-go { background: var(--red); color: #fff; transform: translate(4px, -4px); }
nav.links a.has-mega.open { color: var(--red); }
nav.links a.has-mega .dot { position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateX(-50%) scale(0); transition: transform .5s var(--ease); }
nav.links a.has-mega.open .dot { transform: translateX(-50%) scale(1); }
@media (max-width: 1100px) { .mega-wrap { display: none; } nav.links, .tel { display: none; } }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .nav .logo img { height: 26px; }
  .nav .btn-red { padding: 12px 14px; font-size: 0.64rem; letter-spacing: 0.1em; }
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.tel { font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.btn-red {
  display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 15px 26px; border-radius: 2px; overflow: hidden; position: relative;
  transition: transform .6s var(--ease); border: 0; cursor: pointer; font-family: var(--f);
}
.btn-red span { position: relative; z-index: 1; }
.btn-red::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-red:hover { transform: translateY(-2px); }
.btn-red:hover::before { transform: translateY(0); }
.btn-red:hover span { color: var(--void); }
.burger { width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: none; transition: border-color .5s var(--ease), background .5s var(--ease); }
.burger:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.burger i { display: block; width: 16px; height: 1px; background: #fff; transition: transform .6s var(--ease), opacity .4s; }
body.menu-open .burger i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- FULLSCREEN MENU ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--void);
  clip-path: inset(0 0 100% 0); pointer-events: none;
  display: flex; overflow-y: auto;
  visibility: hidden;
  transition: clip-path 1s var(--ease), visibility 0s 1s;
}
body.menu-open .menu {
  pointer-events: auto; visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.1s var(--ease), visibility 0s 0s;
}
.menu-inner { width: 100%; margin: auto; padding-top: 110px; padding-bottom: 70px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.menu-links { list-style: none; padding: 0; }
.menu-links li { border-bottom: 1px solid var(--hair); }
.menu-links a { display: flex; align-items: baseline; gap: 22px; padding: 22px 0; font-size: clamp(1.8rem, 4.2vw, 3.4rem); font-weight: 200; letter-spacing: -0.02em; transition: color .6s var(--ease), transform .6s var(--ease); }
.menu-links a:hover { color: var(--red); transform: translateX(18px); }
.menu-links .n { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted); font-weight: 400; }
.menu-side p { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; max-width: 30ch; }
.menu-side .lbl { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.menu-side .big { font-size: 1.5rem; font-weight: 300; display: block; margin-bottom: 30px; }

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; padding: 190px 0 72px; background: linear-gradient(180deg, rgba(18,16,17,0.9) 0%, var(--void) 100%); border-bottom: 1px solid var(--hair); }
.crumbs { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); transition: color .4s var(--ease); }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 200; line-height: 1.08; letter-spacing: -0.025em; max-width: 20ch; margin: 0; }
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .sub { margin-top: 24px; color: var(--body-c); max-width: 58ch; font-size: 1.02rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 9px 18px; font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.85); }
.chip.hot { border-color: var(--red); background: rgba(237,33,40,0.12); }

/* ---------- TRUST STRIP ---------- */
.trust { border-bottom: 1px solid var(--hair); padding: 22px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 44px; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 12px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.badge svg { flex: 0 0 auto; }
.stars { color: var(--red); letter-spacing: 3px; }

/* ---------- PAGE BODY / LAYOUT ---------- */
.page-body { padding: 90px 0 40px; }
.est-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; }
@media (max-width: 1020px) { .est-grid { grid-template-columns: 1fr; gap: 60px; } }

/* ---------- PROSE ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--body-c); margin: 0 0 1.4em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.25; margin: 2.2em 0 0.8em; padding-top: 1.1em; border-top: 1px solid var(--hair); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 em { font-style: normal; color: var(--red); }
.prose h3 { font-size: 1.15rem; font-weight: 400; margin: 1.8em 0 0.6em; }
.prose a { color: #fff; border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: color .4s var(--ease); }
.prose a:hover { color: var(--red); }
.prose strong { color: #fff; font-weight: 500; }
.prose ul, .prose ol { padding: 0 0 0 2px; margin: 0 0 1.6em; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--body-c); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 38px; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--red); font-variant-numeric: tabular-nums; }
.prose figure { margin: 2.2em 0; }
.prose blockquote { border-left: 2px solid var(--red); padding: 4px 0 4px 22px; margin: 2em 0; color: #fff; font-weight: 300; font-size: 1.1rem; }
.prose img { border-radius: 18px; }
.price { color: var(--red); font-weight: 500; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--hair); }
.faq:first-of-type { border-top: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; font-weight: 400; color: #fff; transition: color .4s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 300; font-size: 1.3rem; line-height: 1; flex: 0 0 auto; transition: transform .5s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq .faq-a { padding: 0 34px 22px 0; color: var(--body-c); }

/* ---------- BEFORE / AFTER ---------- */
.ba-card { margin: 2.2em 0; }
.ba-view { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 18px; --pos: 50%; user-select: none; background: var(--panel-2); }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ba-layer.after-ph { clip-path: inset(0 0 0 var(--pos)); }
.ba-view::before { content: "Before"; position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; padding: 8px 13px; background: rgba(8,9,10,0.72); }
.ba-view::after { content: "After"; position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; padding: 8px 13px; background: rgba(8,9,10,0.72); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(255,255,255,0.9); transform: translateX(-50%); z-index: 2; }
.ba-handle::after { content: "‹  ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.65); background: rgba(8,9,10,0.45); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ba-view:focus-within .ba-handle { background: var(--red); }
.ba-view:focus-within .ba-handle::after { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,33,40,0.6); }
.ba-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.ba-meta b { font-weight: 400; font-size: 0.94rem; color: #fff; }
.ba-meta span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; margin: 40px 0 20px; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid .ba-card { margin: 0; }

/* ---------- SIDEBAR (findus / estimate aside) ---------- */
.findus { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.est-form-slot { background: var(--panel-2); border: 1px solid var(--hair); border-radius: 22px; padding: 30px 28px; }
.est-form-slot h3 { font-size: 1.05rem; font-weight: 400; }
.findus .addr { background: var(--panel-2); border: 1px solid var(--hair); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.addr > div { display: flex; flex-direction: column; gap: 2px; }
.addr b { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.addr p, .addr a { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }
.addr a:hover { color: var(--red); }
.wa { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; border-bottom: 1px solid var(--red); padding-bottom: 6px; align-self: flex-start; transition: color .4s var(--ease); }
.wa:hover { color: var(--red); }
.map-embed { border-radius: 22px; overflow: hidden; border: 1px solid var(--hair); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1020px) { .findus { position: static; max-width: 480px; } }

/* ---------- REVIEWS BAND ---------- */
.reviews { padding: 0; }
.rev-band { background: var(--panel); border: 1px solid var(--hair); border-radius: 26px; padding: 54px 50px; margin: 60px 0 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 50px; align-items: center; }
.rev-score b { display: block; font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 200; line-height: 1; letter-spacing: -0.03em; }
.rev-score .stars { font-size: 0.95rem; letter-spacing: 4px; }
.rev-score small { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
.rev-band p { color: var(--body-c); max-width: 46ch; margin: 0; }
.rev-band .actions { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .rev-band { grid-template-columns: 1fr; gap: 30px; padding: 40px 30px; } .rev-band .actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- CARDS (related services / blog) ---------- */
.blog { padding: 90px 0 30px; }
.sec-intro { max-width: 760px; margin-bottom: 50px; }
.sec-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 200; letter-spacing: -0.015em; line-height: 1.16; margin-top: 18px; }
.sec-intro h2 em { font-style: normal; color: var(--red); }
.sec-intro p { color: var(--muted); margin-top: 18px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.bcard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--hair); border-radius: 22px; padding: 30px 28px 26px;
  transition: transform .6s var(--ease), border-color .6s var(--ease), background .6s var(--ease);
}
.bcard:hover { transform: translateY(-5px); border-color: rgba(237,33,40,0.55); background: #1E1A1B; }
.btag { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.bcard h3 { font-size: 1.18rem; font-weight: 400; line-height: 1.3; margin: 0; }
.bcard h3 a { color: #fff; }
.bcard h3 a:hover { color: var(--red); }
.bcard p { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.bmore { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; transition: color .4s var(--ease); }
.bcard:hover .bmore { color: var(--red); }

/* ---------- STEPS (process page content) ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 20px; position: relative; counter-reset: step; }
.steps .track { display: none; }
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--hair); }
.steps .step { counter-increment: step; position: relative; padding: 0 0 38px 76px; }
.steps .step:last-child { padding-bottom: 0; }
.steps .step::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--void);
  border: 1px solid rgba(237,33,40,0.6); color: var(--red);
  font-size: 0.72rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}
.steps .step h3 { font-size: 1.12rem; font-weight: 400; margin: 8px 0 6px; }
.steps .step p { color: var(--body-c); margin: 0; max-width: 60ch; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 2px; border: 0; position: relative; overflow: hidden;
  transition: transform .6s var(--ease), border-color .6s var(--ease), background .6s var(--ease), color .6s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-solid:hover span { color: var(--void); }
.btn-ghost { background: none; border: 1px solid rgba(255,255,255,0.32); color: #fff; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-dark { background: var(--panel-2); border: 1px solid var(--hair); color: #fff; }
.btn-dark:hover { border-color: var(--red); }

/* ---------- CTA BAND ---------- */
.cta-band { text-align: center; padding: 140px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 78% at 50% 50%, rgba(224,31,45,0.13), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 200; line-height: 1.24; max-width: 20ch; margin: 0 auto; }
.cta-band h2 em { font-style: normal; color: #fff; font-weight: 300; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

/* ---------- FORMS (estimate) ---------- */
form.est { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
form.est .field.full, form.est .field:has(textarea), form.est button { grid-column: 1 / -1; }
@media (max-width: 720px) { form.est { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--hair); border-radius: 10px;
  color: #fff; font-family: var(--f); font-size: 0.98rem; padding: 14px 16px;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #1E1A1B; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input[type="file"] { padding: 12px; color: var(--muted); }
.field input[type="file"]::file-selector-button { background: var(--panel-2); border: 1px solid var(--hair); border-radius: 8px; color: #fff; font-family: var(--f); font-size: 0.8rem; padding: 8px 14px; margin-right: 14px; cursor: pointer; }
.reg { text-transform: uppercase; letter-spacing: 0.12em; }
form.est .btn { justify-self: start; margin-top: 6px; }
.form-notice { border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; font-size: 0.95rem; }
.form-notice.ok { background: rgba(46,160,67,0.12); border: 1px solid rgba(46,160,67,0.5); color: #B8E6C2; }
.form-notice.err { background: rgba(237,33,40,0.1); border: 1px solid rgba(237,33,40,0.5); color: #F3B8BB; }
.form-notice a { color: #fff; border-bottom: 1px solid currentColor; }

/* ---------- FOOTER ---------- */
footer.foot-cine { padding: 84px 0 46px; border-top: 2px solid; border-image: linear-gradient(90deg, var(--red), var(--blue)) 1; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1fr; gap: 40px; }
@media (max-width: 1200px) and (min-width: 901px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.foot img { height: 36px; width: auto; display: block; margin-bottom: 24px; }
.foot p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.foot h3 { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot li, .foot ul a { font-size: 0.94rem; color: rgba(255,255,255,0.76); }
.foot ul a { transition: color .5s var(--ease); }
.foot ul a:hover { color: var(--red); }
.foot-base { margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- MOBILE CALL BAR ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; background: rgba(12,10,11,0.96); border-top: 1px solid var(--hair); backdrop-filter: blur(8px); }
.callbar a { flex: 1; text-align: center; padding: 15px 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.callbar a + a { border-left: 1px solid var(--hair); }
.callbar .est-link { background: var(--red); font-weight: 500; }
@media (max-width: 768px) { .callbar { display: flex; } body { padding-bottom: 52px; } }

/* ---------- PAGINATION / MISC ---------- */
.pagination, .nav-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; }
.nav-links .page-numbers { border: 1px solid var(--hair); border-radius: 8px; padding: 8px 15px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { border-color: var(--red); color: #fff; }

/* ---------- REVEALS ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav { height: 76px; gap: 16px; }
  .menu-inner { grid-template-columns: 1fr; gap: 40px; }
  .menu-side { display: none; }
  .page-hero { padding: 145px 0 56px; }
  .page-body { padding: 64px 0 20px; }
  .blog { padding: 64px 0 20px; }
  .cta-band { padding: 100px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
