/* =========================================================================
   Maisons Modulaires 20m² — Hand-crafted CSS
   Mirrors the Tailwind-based Next.js design without any build step.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid #e5e7eb; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; line-height: 1.5; }
body { font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #fff; color: #111827; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.responsive-picture { width: 100%; height: 100%; }
.responsive-picture img { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: transparent; color: inherit; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }
input:focus, textarea:focus, select:focus, button:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* ---------- Tokens ---------- */
:root {
  --gold: #C9A227;
  --gold-dark: #b8922a;
  --ink: #0e0e0e;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --teal: #1E3A3A;
  --cream: #F9F6F0;
  --whatsapp: #25D366;
  --whatsapp-dark: #20bd5a;
  --max: 80rem;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Typography helpers ---------- */
.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }

/* ---------- Layout helpers ---------- */
.container-x { max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-x { padding-inline: 2rem; } }

.section { padding-block: 3rem; }
@media (min-width: 640px) { .section { padding-block: 3.5rem; } }
@media (min-width: 1024px) { .section { padding-block: 4rem; } }

.section-lg { padding-block: 4rem; }
@media (min-width: 768px) { .section-lg { padding-block: 5rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-gold-solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold-solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.btn-outline-gold { background: transparent; border: 2px solid var(--gold); color: var(--gold); padding: 0.625rem 1.5rem; text-transform: none; letter-spacing: normal; font-size: 0.875rem; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; padding: 1rem 1.5rem; font-size: 1rem; text-transform: none; letter-spacing: normal; border-radius: 0.5rem; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.5s, box-shadow 0.5s, backdrop-filter 0.5s; }
.site-header.scrolled { background: rgba(17,17,17,0.92); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem; max-width: var(--max); margin-inline: auto; }
@media (min-width: 640px) { .header-row { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .header-row { padding-inline: 2rem; } }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { display: flex; align-items: center; justify-content: center; height: 2.5rem; width: 2.5rem; transition: transform 0.3s; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.1; color: #fff; }
.brand-sub { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.22em; color: var(--gold); }

.main-nav { display: none; align-items: center; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a, .main-nav button { padding: 0.5rem 0.875rem; font-size: 13px; font-weight: 500; letter-spacing: 0.025em; color: rgba(255,255,255,0.75); transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.25rem; }
.main-nav a:hover, .main-nav button:hover { color: var(--gold); }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: 100%; min-width: 12rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(17,17,17,0.98); backdrop-filter: blur(20px); padding: 0.5rem 0 0.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.dropdown.open .dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu a { display: block; padding: 0.625rem 1rem; font-size: 13px; color: rgba(255,255,255,0.65); }
.dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--gold); }
.chev { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.cta-header { display: none; }
@media (min-width: 640px) { .cta-header { display: inline-flex; align-items: center; padding: 0.625rem 1.25rem; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; background: var(--gold); border: 1px solid var(--gold); color: #fff; transition: all 0.3s; } .cta-header:hover { background: transparent; color: var(--gold); } }

.wa-icon { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border-radius: 9999px; background: var(--whatsapp); transition: background 0.3s, box-shadow 0.3s; }
.wa-icon:hover { background: var(--whatsapp-dark); box-shadow: 0 10px 15px -3px rgba(37,211,102,0.3); }
@media (min-width: 640px) { .wa-icon-mobile { display: none; } }

.menu-btn { display: inline-flex; padding: 0.5rem; border: 1px solid rgba(255,255,255,0.2); color: #fff; transition: border-color 0.2s; border-radius: 0.125rem; }
.menu-btn:hover { border-color: rgba(255,255,255,0.4); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-menu { position: absolute; inset-inline: 0; top: 100%; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.1); max-height: 0; opacity: 0; transition: max-height 0.3s, opacity 0.3s; }
.mobile-menu.open { max-height: 100vh; opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; background: rgba(17,17,17,0.98); backdrop-filter: blur(20px); padding: 0.5rem 1rem 1.5rem; }
.mobile-menu a { padding: 0.875rem 0; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.07); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .cta-mobile { margin-top: 1.25rem; padding: 0.875rem; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; background: var(--gold); border: 1px solid var(--gold); color: #fff; text-align: center; transition: all 0.3s; }
.mobile-menu .cta-mobile:hover { background: transparent; color: var(--gold); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-overlay-r { position: absolute; inset: 0; background: linear-gradient(to right, rgba(14,14,14,0.92), rgba(14,14,14,0.70), rgba(14,14,14,0.30)); }
.hero-overlay-t { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,0.80), transparent, rgba(14,14,14,0.30)); }
.hero-inner { position: relative; z-index: 10; padding: 7rem 0 3rem; }
@media (min-width: 1024px) { .hero-inner { padding-top: 9rem; } }

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: var(--gold); margin-bottom: 1rem; }
.eyebrow-sm { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
@media (min-width: 640px) { .eyebrow-sm { font-size: 14px; } }

.hero h1 { margin-bottom: 1.25rem; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 3rem; line-height: 1.08; letter-spacing: -0.025em; color: #fff; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.25rem; } }
.hero h1 .accent { color: var(--gold); font-style: normal; }
.hero-tagline { font-size: 1.125rem; font-weight: 300; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .hero-tagline { font-size: 1.25rem; } }
.hero-uses { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.1em; color: rgba(201,162,39,0.8); text-transform: uppercase; margin-bottom: 2.5rem; }

.hero-features { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-features { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; } }
.feat { display: flex; align-items: center; gap: 0.75rem; }
.feat-icon { display: flex; align-items: center; justify-content: center; height: 2.75rem; width: 2.75rem; border: 1px solid rgba(201,162,39,0.3); background: rgba(201,162,39,0.1); color: var(--gold); flex-shrink: 0; }
.feat-title { font-size: 13px; font-weight: 600; color: #fff; }
.feat-sub { font-size: 11px; color: rgba(255,255,255,0.5); }

.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; gap: 1rem; } }

.specs-bar { margin-top: 3.5rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); padding: 1.25rem; }
@media (min-width: 1024px) { .specs-bar { margin-top: 5rem; } }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .specs-grid { grid-template-columns: repeat(6, 1fr); } }
.spec { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.spec-icon { display: flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border: 1px solid rgba(201,162,39,0.25); background: rgba(201,162,39,0.1); color: var(--gold); flex-shrink: 0; }
.spec-val { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-lbl { font-size: 11px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Mobile hero polish ---------- */
@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-bg { background-position: 70% center; }
  .hero-overlay-r { background: linear-gradient(to bottom, rgba(14,14,14,0.78), rgba(14,14,14,0.72) 55%, rgba(14,14,14,0.94)); }
  .hero-overlay-t { background: linear-gradient(to top, rgba(14,14,14,0.55), transparent 40%); }
  .hero-inner { padding: 5.5rem 0 2.25rem; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: 2.5rem; line-height: 1.05; margin-bottom: 1rem; }
  .hero-tagline { font-size: 1.0625rem; margin-bottom: 0.375rem; }
  .hero-uses { margin-bottom: 1.75rem; }
  .hero-features { gap: 0.75rem; }
  .hero-ctas { margin-top: 1.75rem; }
  .specs-bar { margin-top: 2.25rem; padding: 1rem; }
}
@media (max-width: 480px) {
  .hero-inner { padding-top: 4.75rem; padding-bottom: 1.75rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-uses { font-size: 0.6875rem; letter-spacing: 0.08em; margin-bottom: 1.5rem; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 0.75rem; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .specs-bar { margin-top: 1.75rem; }
  .spec-val { font-size: 12px; }
}

/* ---------- Contact form ---------- */
.contact-card { background: #fff; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); width: 100%; max-width: 24rem; }
.contact-card.shadow-soft { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.contact-card h2 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 0.125rem; }
.contact-card .sub { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.25rem; }
.field { margin-bottom: 0.75rem; }
.field input, .field select, .field textarea, .field .select-trigger { width: 100%; height: 2.75rem; padding: 0 0.875rem; font-size: 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.5rem; transition: border-color 0.15s, box-shadow 0.15s; color: #111827; }
.field textarea { height: auto; min-height: 80px; padding: 0.625rem 0.875rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .field select { color: #9ca3af; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.field.error input, .field.error select, .field.error textarea { border-color: #ef4444; }
.field-error { margin-top: 0.25rem; font-size: 0.75rem; color: #ef4444; }
.submit-btn { width: 100%; height: 2.75rem; background: var(--gold); color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; transition: background 0.2s, opacity 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.submit-btn:hover { background: var(--gold-dark); }
.submit-btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.form-error-banner { font-size: 0.75rem; color: #ef4444; margin-top: 0.5rem; }
.success-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1rem; }
.success-block .ring { display: flex; align-items: center; justify-content: center; height: 4rem; width: 4rem; border-radius: 9999px; background: #dcfce7; margin-bottom: 1rem; }
.success-block .ring svg { width: 2rem; height: 2rem; color: #16a34a; }
.success-block h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.success-block p { font-size: 0.875rem; color: #6b7280; }
.spinner { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Versions (home) ---------- */
.versions-section { background: var(--cream); padding: 4rem 0; }
@media (min-width: 768px) { .versions-section { padding: 5rem 0; } }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.875rem; color: #111827; }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }
.section-head .eyebrow { margin-bottom: 0.75rem; }

.versions-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .versions-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .versions-grid { grid-template-columns: repeat(3, 1fr); } }

.version-card { overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: transform 0.4s, box-shadow 0.4s; }
.version-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: translateY(-4px); }
.version-img { position: relative; height: clamp(13rem, 22vw, 16rem); overflow: hidden; }
.version-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.version-card:hover .version-img img { transform: scale(1.05); }
.version-card-body { padding: 1.5rem; }
.version-card-title { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 0.125rem; }
.version-card-subtitle { color: var(--gold); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.version-card-body ul { display: flex; flex-direction: column; gap: 0.625rem; }
.version-card-body li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 13px; line-height: 1.4; color: #4b5563; }
.version-card-body li svg { flex-shrink: 0; margin-top: 0.125rem; width: 1rem; height: 1rem; color: var(--gold); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); transition: gap 0.2s; }
.link-arrow:hover { gap: 0.75rem; }
.section-foot { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin-top: 2rem; text-align: center; }
.section-foot p { font-size: 13px; color: #6b7280; }

/* ---------- Terrace section ---------- */
.terrace { background: #fff; }
.terrace-row { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .terrace-row { flex-direction: row; } }
.terrace-img { position: relative; height: clamp(18rem, 52vw, 26rem); width: 100%; }
@media (min-width: 1024px) { .terrace-img { width: 50%; height: auto; min-height: 25rem; } }
.terrace-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.terrace-content { display: flex; align-items: center; background: var(--teal); padding: 3rem 1.5rem; width: 100%; }
@media (min-width: 640px) { .terrace-content { padding-inline: 2rem; } }
@media (min-width: 1024px) { .terrace-content { width: 50%; padding: 3rem 3rem; } }
@media (min-width: 1280px) { .terrace-content { padding-inline: 4rem; } }
.terrace-content > div { max-width: 32rem; }
@media (min-width: 1024px) { .terrace-content > div { margin: 0; } }
.terrace-content h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .terrace-content h2 { font-size: 1.875rem; } }
.terrace-content .lede { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.terrace-content ul { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.terrace-content li { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.terrace-content li svg { color: var(--gold); width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ---------- Why Choose ---------- */
.why { border-top: 1px solid #f3f4f6; background: #fff; padding: 3rem 0; }
@media (min-width: 640px) { .why { padding: 3.5rem 0; } }
.why h2 { margin-bottom: 2.5rem; text-align: center; font-size: 1.125rem; font-weight: 700; color: #111827; }
@media (min-width: 640px) { .why h2 { font-size: 1.25rem; } }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(6, 1fr); } }
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; }
.why-item:hover { transform: translateY(-4px); }
.why-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 9999px; background: #f9fafb; color: #4b5563; margin-bottom: 0.75rem; transition: background 0.2s, color 0.2s; }
.why-item:hover .why-icon { background: rgba(201,162,39,0.1); color: var(--gold); }
.why-label { font-size: 12px; font-weight: 500; color: #374151; line-height: 1.2; }
@media (min-width: 640px) { .why-label { font-size: 14px; } }

/* ---------- About / Story sections ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-reverse > *:first-child { order: 0; }
@media (min-width: 1024px) { .split-reverse > *:first-child { order: 2; } }
.about { background: #fff; padding: 3rem 0; }
@media (min-width: 640px) { .about { padding: 3.5rem 0; } }
.about h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .about h2 { font-size: 1.875rem; } }
.about p { font-size: 0.875rem; line-height: 1.6; color: #4b5563; margin-bottom: 1rem; }
@media (min-width: 640px) { .about p { font-size: 1rem; } }
.about .presence { font-size: 0.875rem; font-weight: 600; color: #111827; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .about .presence { font-size: 1rem; } }
.about-img { position: relative; height: clamp(15rem, 58vw, 20rem); overflow: hidden; border-radius: 0.75rem; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA bar ---------- */
.cta { position: relative; background: var(--teal); padding: 3.5rem 0; overflow: hidden; }
@media (min-width: 640px) { .cta { padding: 4rem 0; } }
.cta::before { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: linear-gradient(to right, transparent, rgba(201,162,39,0.4), transparent); }
.cta-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2.5rem; }
@media (min-width: 1024px) { .cta-row { flex-direction: row; } }
.cta h2 { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.875rem; color: #fff; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .cta h2 { font-size: 2.25rem; } }
.cta-text-block { text-align: center; }
@media (min-width: 1024px) { .cta-text-block { text-align: left; } }
.cta .eyebrow { margin-bottom: 0.5rem; font-size: 11px; letter-spacing: 0.24em; }
.cta .lede { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 1.75rem; }
@media (min-width: 640px) { .cta .lede { font-size: 14px; } }
.cta-benefits { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; }
@media (min-width: 1024px) { .cta-benefits { justify-content: flex-start; } }
.cta-benefit { display: flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; backdrop-filter: blur(4px); }
.cta-benefit svg { width: 0.875rem; height: 0.875rem; color: var(--gold); }
.cta-benefit span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
.cta-wa { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.cta-wa span { font-size: 12px; color: rgba(255,255,255,0.45); }
.cta-wa a { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; font-weight: 600; color: #fff; transition: color 0.2s; }
.cta-wa a:hover { color: var(--gold); }
.cta-wa svg { width: 1rem; height: 1rem; color: var(--whatsapp); }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; color: #fff; }
.footer-main { padding: 4rem 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand-block { grid-column: span 1; }
@media (min-width: 640px) { .footer-brand-block { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-brand-block { grid-column: span 1; } }
.footer-blurb { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.4); max-width: 18rem; margin: 1.5rem 0; }
.footer-wa { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: 2.25rem; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); transition: border-color 0.2s, color 0.2s; }
.footer-wa:hover { border-color: rgba(201,162,39,0.6); color: var(--gold); }
.footer-col h3 { margin-bottom: 1.25rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-contact-list a { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.4); }
.footer-contact-list svg { margin-top: 0.125rem; width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; }
.footer-cta { margin-top: 1.75rem; display: inline-flex; align-items: center; border: 1px solid var(--gold); background: var(--gold); padding: 0.625rem 1.25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; transition: all 0.3s; }
.footer-cta:hover { background: transparent; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.25rem 0; }
@media (min-width: 640px) { .footer-bottom-row { flex-direction: row; } }
.footer-bottom-row p { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-bottom-row nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1.25rem; }
.footer-bottom-row nav a, .footer-bottom-row nav button { font-size: 11px; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-bottom-row nav a:hover, .footer-bottom-row nav button:hover { color: rgba(255,255,255,0.55); }

/* ---------- Inner-page hero ---------- */
.page-hero { background: var(--ink-3); padding: 7rem 0 4rem; position: relative; }
.page-hero.with-bg { min-height: 60vh; }
.page-hero.with-bg .page-hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.page-hero.with-bg .page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,26,26,0.95), rgba(26,26,26,0.80), rgba(26,26,26,0.50)); }
.page-hero-inner { position: relative; z-index: 10; text-align: center; }
.page-hero-inner.align-left { text-align: left; max-width: 42rem; }
.page-hero h1 { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
@media (min-width: 640px) { .page-hero h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 3rem; } }
.page-hero .lede { max-width: 42rem; margin: 0 auto; font-size: 1rem; color: rgba(255,255,255,0.7); }
@media (min-width: 640px) { .page-hero .lede { font-size: 1.125rem; } }
.page-hero-inner.align-left .lede { margin: 0; color: rgba(255,255,255,0.8); }
.page-hero .eyebrow-sm { margin-bottom: 0.75rem; display: inline-block; }

/* ---------- Generic content grid ---------- */
.split-stack { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split-stack { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.media-img { position: relative; height: clamp(15rem, 60vw, 24rem); overflow: hidden; border-radius: 1rem; }
.media-img.contain { background: #f9fafb; }
.media-img.contain.white { background: #fff; padding: 1rem; }
.media-img img { width: 100%; height: 100%; object-fit: cover; }
.media-img.contain img { object-fit: contain; }

/* Cards & boxes */
.card-box { border-radius: 0.75rem; background: #fff; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); text-align: center; }
.bg-soft { background: #f8f8f8; }
.inline-badge { display: inline-flex; margin-bottom: 0.75rem; border-radius: 9999px; background: rgba(201,162,39,0.12); padding: 0.25rem 0.75rem; font-size: 12px; font-weight: 700; color: var(--gold-dark); }

/* Step / numbered card */
.step-card { border-radius: 0.75rem; border: 1px solid #f3f4f6; padding: 1.5rem; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
.step-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.step-num { margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; height: 3.5rem; width: 3.5rem; border-radius: 9999px; background: var(--gold); font-size: 1.125rem; font-weight: 700; color: #fff; }
.step-card h3 { font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: #4b5563; }

/* Section title bigger */
.h2-section { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 2.5rem; text-align: center; }
@media (min-width: 640px) { .h2-section { font-size: 1.875rem; } }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: #374151; }
.check-list li svg { flex-shrink: 0; margin-top: 0.125rem; width: 1.25rem; height: 1.25rem; color: var(--gold); }
.dot-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: #374151; }
.dot-list li::before { content: ''; margin-top: 0.5rem; flex-shrink: 0; display: block; height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--gold); }

/* Stats */
.stats-strip { border-bottom: 1px solid #f3f4f6; background: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.stat { text-align: center; }
.stat-icon { margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; height: 3rem; width: 3rem; border-radius: 9999px; background: rgba(201,162,39,0.1); color: var(--gold); }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #111827; }
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.875rem; color: #4b5563; }

/* Timeline */
.timeline { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.timeline-wrap { position: relative; }
.timeline-line { position: absolute; right: 1.5rem; top: 0; display: none; height: 100%; width: 2px; background: rgba(201,162,39,0.4); }
@media (min-width: 768px) { .timeline-line { display: block; } }
@media (min-width: 1024px) { .timeline-line { right: 3rem; } }
.timeline-items { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { position: relative; display: flex; align-items: flex-start; }
.timeline-card { margin-right: 2rem; flex: 1; border: 1px solid #e5e7eb; background: #fff; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
@media (min-width: 768px) { .timeline-card { margin-right: 4rem; } }
@media (min-width: 1024px) { .timeline-card { margin-right: 5rem; } }
.timeline-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.timeline-year { display: block; text-align: right; font-size: 0.875rem; font-weight: 600; color: var(--gold); }
.timeline-card h3 { margin-top: 0.25rem; text-align: center; font-size: 1.125rem; font-weight: 700; color: #111827; }
.timeline-card p { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; line-height: 1.5; color: #4b5563; }
.timeline-dot { position: absolute; right: 1rem; top: 1.5rem; display: none; height: 1rem; width: 1rem; border-radius: 9999px; background: var(--gold); box-shadow: 0 0 0 4px #f8f8f8; z-index: 10; }
@media (min-width: 768px) { .timeline-dot { display: block; right: 1.25rem; } }
@media (min-width: 1024px) { .timeline-dot { right: 2.5rem; } }

/* ---------- Contact page (info side) ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid #f3f4f6; background: #fff; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
.contact-info-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.contact-info-icon { display: flex; align-items: center; justify-content: center; height: 2.5rem; width: 2.5rem; border-radius: 0.5rem; background: rgba(201,162,39,0.1); color: var(--gold); flex-shrink: 0; }
.contact-info-card .t { font-size: 0.875rem; font-weight: 600; color: #111827; }
.contact-info-card .v { font-size: 0.875rem; color: #4b5563; }
.hours-card { margin-top: 2rem; border: 1px solid #f3f4f6; background: #f9fafb; padding: 1.5rem; border-radius: 0.5rem; }
.hours-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.hours-head h3 { font-weight: 600; color: #111827; }
.hours-head svg { color: var(--gold); width: 1.25rem; height: 1.25rem; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.25rem 0; }
.hours-row .day { color: #4b5563; }
.hours-row .time { font-weight: 500; color: #111827; }

/* ---------- Versions page (detail) ---------- */
.version-hero-img { position: relative; height: clamp(18rem, 42vw, 30rem); overflow: hidden; border-radius: 1rem; }
.version-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.versions-list { display: flex; flex-direction: column; gap: 4rem; }
.version-block { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .version-block { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.version-block .img { position: relative; height: clamp(18rem, 42vw, 24rem); overflow: hidden; border-radius: 1rem; }
.version-block .img img { width: 100%; height: 100%; object-fit: cover; }
.version-block .badge { position: absolute; left: 1rem; top: 1rem; background: var(--gold); padding: 0.5rem 1rem; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.version-block .badge.teal { background: var(--teal); }
.version-block .badge .t { display: block; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.version-block .badge .s { display: block; font-size: 11px; color: rgba(255,255,255,0.9); }
.version-block h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }
@media (min-width: 640px) { .version-block h2 { font-size: 1.875rem; } }
.version-block .sub { font-size: 1.125rem; font-weight: 500; color: var(--gold); margin-bottom: 0.5rem; }
.version-block .desc { margin-bottom: 1.5rem; color: #4b5563; }
.version-block.reverse > *:first-child { order: 0; }
@media (min-width: 1024px) { .version-block.reverse > *:first-child { order: 2; } }

/* ---------- Cookie consent ---------- */
.cookie-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; padding: 1rem; }
@media (min-width: 640px) { .cookie-bar { padding: 1.5rem; } }
.cookie-bar-inner { max-width: 56rem; margin: 0 auto; }
.cookie-card { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); padding: 1.5rem; }
@media (min-width: 640px) { .cookie-card { padding: 2rem; } }
.cookie-close { position: absolute; right: 0.75rem; top: 0.75rem; padding: 0.375rem; border-radius: 9999px; color: #9ca3af; transition: background 0.2s, color 0.2s; }
.cookie-close:hover { background: #f3f4f6; color: #4b5563; }
.cookie-head { display: flex; align-items: flex-start; gap: 1rem; }
.cookie-icon-wrap { display: none; padding: 0.75rem; border-radius: 9999px; background: rgba(201,162,39,0.1); color: var(--gold); flex-shrink: 0; }
@media (min-width: 640px) { .cookie-icon-wrap { display: block; } }
.cookie-card h2 { font-size: 1.125rem; font-weight: 700; color: #111827; }
@media (min-width: 640px) { .cookie-card h2 { font-size: 1.25rem; } }
.cookie-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5; color: #4b5563; }
.cookie-card p a { color: var(--gold); font-weight: 500; text-decoration: underline; }
.cookie-card p a:hover { color: var(--gold-dark); }
.cookie-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .cookie-actions { flex-direction: row; align-items: center; justify-content: flex-end; } }
.cookie-actions .link { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #4b5563; transition: color 0.2s; }
.cookie-actions .link:hover { color: #111827; }
.btn-cookie-outline { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; border: 1px solid #d1d5db; color: #374151; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.btn-cookie-outline:hover { background: #f9fafb; }
.btn-cookie-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; background: var(--gold); color: #fff; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.btn-cookie-primary:hover { background: var(--gold-dark); }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; background: #e5e7eb; z-index: 60; }
.scroll-progress-bar { height: 100%; background: var(--gold); width: 0; transition: width 0.15s; }
.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40; display: inline-flex; align-items: center; justify-content: center; height: 3rem; width: 3rem; border-radius: 9999px; background: var(--gold); color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: background 0.3s, opacity 0.3s, transform 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(1rem); pointer-events: none; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-dark); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.back-to-top svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Legal page prose ---------- */
.prose-container { padding: 4rem 0; }
.prose-container.with-hero { padding-top: 7rem; }
.prose-inner { max-width: 48rem; margin: 0 auto; padding-inline: 1rem; }
@media (min-width: 640px) { .prose-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .prose-inner { padding-inline: 2rem; } }
.prose-inner h1 { font-size: 1.875rem; font-weight: 700; color: #111827; margin-bottom: 2rem; }
.prose-inner h2 { font-size: 1.25rem; font-weight: 600; color: #111827; margin-top: 2.5rem; }
.prose-inner h2.lg { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; }
.prose-inner h3 { font-size: 1.125rem; font-weight: 600; color: #111827; margin-top: 1.5rem; }
.prose-inner p { margin-top: 1rem; line-height: 1.65; color: #4b5563; }
.prose-inner ul.disc { margin-top: 1rem; padding-left: 1.5rem; color: #4b5563; }
.prose-inner ul.disc li { list-style: disc; margin-top: 0.5rem; }
.prose-inner ul.decimal { margin-top: 1rem; padding-left: 1.5rem; color: #4b5563; }
.prose-inner ul.decimal li { list-style: decimal; margin-top: 0.5rem; }
.prose-inner a { color: var(--gold); }
.prose-inner a:hover { text-decoration: underline; }
.prose-inner table { width: 100%; margin-top: 1rem; border-collapse: collapse; border: 1px solid #e5e7eb; }
.prose-inner thead { background: #f9fafb; }
.prose-inner th, .prose-inner td { padding: 0.75rem 1rem; border: 1px solid #e5e7eb; font-size: 0.875rem; text-align: left; }
.prose-inner th { font-weight: 600; color: #111827; }
.prose-inner td { color: #4b5563; }
.legal-hero { background: var(--ink-3); padding: 7rem 0 3rem; text-align: center; }
.legal-hero h1 { font-size: 1.875rem; font-weight: 700; color: #fff; }
@media (min-width: 640px) { .legal-hero h1 { font-size: 2.25rem; } }
.legal-hero p { margin-top: 1rem; color: rgba(255,255,255,0.7); }

/* ---------- 404 ---------- */
.notfound { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; background: #fff; padding: 4rem 1rem; text-align: center; }
.notfound h1 { margin-top: 0.5rem; font-size: 2.25rem; font-weight: 700; color: #111827; }
@media (min-width: 640px) { .notfound h1 { font-size: 3rem; } }
.notfound p { margin-top: 1rem; font-size: 1rem; color: #4b5563; }
.notfound-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .notfound-actions { flex-direction: row; } }
.notfound-actions a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.notfound-actions .primary { background: var(--gold); color: #fff; }
.notfound-actions .primary:hover { background: var(--gold-dark); }
.notfound-actions .secondary { border: 1px solid #d1d5db; color: #374151; }
.notfound-actions .secondary:hover { background: #f9fafb; }

/* ---------- Utility helpers used inline ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gold { color: var(--gold); }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.bg-soft-gray { background: #f8f8f8; }
.bg-ink { background: var(--ink-3); }
.bg-teal { background: var(--teal); }
.mt-12 { margin-top: 3rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.gap-y-10 { row-gap: 2.5rem; }

/* SVG sizing helpers */
.i16 { width: 1rem; height: 1rem; }
.i20 { width: 1.25rem; height: 1.25rem; }
.i24 { width: 1.5rem; height: 1.5rem; }

/* Fade-in on scroll. Only hides if JS confirms it can reveal (js-ready) — */
/* this prevents content disappearing if scripts fail to load. */
.js-ready .reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Admin dashboard ---------- */
.admin-body { min-height: 100vh; background: #f3f4f6; color: #111827; font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.admin-body a { color: inherit; }
.admin-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,0.96); padding: 0.75rem clamp(1rem, 3vw, 2rem); backdrop-filter: blur(12px); }
.admin-brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.admin-brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; background: #fff; border: 1px solid #e5e7eb; }
.admin-brand span { display: grid; line-height: 1.1; min-width: 0; }
.admin-brand strong { font-size: 0.95rem; color: #111827; }
.admin-brand small { margin-top: 0.2rem; font-size: 0.72rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.admin-shell { width: min(1440px, 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.admin-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; color: #111827; }
.admin-page-head p { max-width: 34rem; color: #6b7280; font-size: 0.95rem; }
.admin-kicker { margin-bottom: 0.5rem; color: #a16207; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-stat { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 1rem; }
.admin-stat span { display: block; color: #6b7280; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stat strong { display: block; margin-top: 0.35rem; color: #111827; font-size: 1.8rem; line-height: 1; }
.admin-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; align-items: end; margin-bottom: 1rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 0.9rem; }
@media (min-width: 760px) { .admin-filters { grid-template-columns: minmax(16rem, 1fr) 12rem auto auto; } }
.admin-filters label, .admin-login-form label { display: grid; gap: 0.35rem; color: #374151; font-size: 0.82rem; font-weight: 700; }
.admin-filters input, .admin-filters select, .admin-login-form input { width: 100%; min-height: 2.7rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; padding: 0.65rem 0.75rem; color: #111827; font: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.admin-filters input:focus, .admin-filters select:focus, .admin-login-form input:focus { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,0.18); }
.admin-primary-btn, .admin-secondary-btn, .admin-ghost-btn { display: inline-flex; min-height: 2.7rem; align-items: center; justify-content: center; border-radius: 6px; padding: 0.65rem 0.9rem; font-size: 0.88rem; font-weight: 800; line-height: 1; transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.admin-primary-btn { border: 1px solid #111827; background: #111827; color: #fff; }
.admin-primary-btn:hover { background: #374151; border-color: #374151; }
.admin-secondary-btn { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.admin-secondary-btn:hover { border-color: #9ca3af; color: #111827; }
.admin-ghost-btn { border: 1px solid transparent; background: transparent; color: #6b7280; }
.admin-ghost-btn:hover { background: #f3f4f6; color: #111827; }
.admin-alert { margin-bottom: 1rem; border-radius: 8px; border: 1px solid #bfdbfe; background: #eff6ff; padding: 0.85rem 1rem; color: #1e3a8a; font-size: 0.92rem; }
.admin-alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.admin-alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1120px) { .admin-dashboard-grid { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr); } }
.admin-panel { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.admin-panel-head h2, .admin-detail-head h2 { color: #111827; font-size: 1.05rem; line-height: 1.2; }
.admin-panel-head p, .admin-detail-head p { margin-top: 0.25rem; color: #6b7280; font-size: 0.84rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f9fafb; color: #6b7280; font-size: 0.72rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e5e7eb; padding: 0.85rem 1rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-unread td { background: #fffbeb; }
.admin-table tr.is-selected td { box-shadow: inset 3px 0 0 #c9a227; }
.admin-row-link { display: grid; gap: 0.25rem; min-width: 14rem; }
.admin-row-link strong { color: #111827; font-size: 0.95rem; }
.admin-row-link span { max-width: 34rem; color: #6b7280; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 1.65rem; border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.admin-badge-new { background: #fef3c7; color: #92400e; }
.admin-badge-read { background: #dcfce7; color: #166534; }
.admin-empty { display: grid; place-items: center; min-height: 13rem; padding: 2rem; text-align: center; }
.admin-empty strong { color: #111827; font-size: 1rem; }
.admin-empty span { margin-top: 0.35rem; color: #6b7280; font-size: 0.9rem; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #e5e7eb; padding: 0.8rem 1rem; color: #6b7280; font-size: 0.86rem; }
.admin-pagination a { color: #111827; font-weight: 800; }
.admin-pagination a.is-disabled { color: #9ca3af; pointer-events: none; }
.admin-detail { position: sticky; top: 5.25rem; }
.admin-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.admin-detail-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 620px) { .admin-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-detail-list div { padding: 0.95rem 1rem; border-bottom: 1px solid #f3f4f6; }
.admin-detail-list dt { color: #6b7280; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-detail-list dd { margin-top: 0.3rem; color: #111827; font-size: 0.92rem; word-break: break-word; }
.admin-detail-list a { color: #1d4ed8; }
.admin-message-box { margin: 1rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; padding: 1rem; color: #374151; font-size: 0.94rem; line-height: 1.6; white-space: normal; }
.admin-detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1rem 1rem; }
.admin-technical { margin: 0 1rem 1rem; border-top: 1px solid #e5e7eb; padding-top: 0.85rem; color: #6b7280; font-size: 0.82rem; }
.admin-technical summary { cursor: pointer; color: #374151; font-weight: 800; }
.admin-technical dl { display: grid; gap: 0.65rem; margin-top: 0.75rem; }
.admin-technical div { display: grid; gap: 0.2rem; }
.admin-technical dt { font-weight: 800; color: #374151; }
.admin-technical dd { word-break: break-word; }
.admin-login-page { display: grid; min-height: 100vh; place-items: center; padding: 1rem; background: linear-gradient(135deg, #111827 0%, #1f2937 45%, #3f3f46 100%); }
.admin-login-shell { width: min(100%, 27rem); }
.admin-login-panel { border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: #fff; padding: clamp(1.1rem, 4vw, 1.5rem); box-shadow: 0 24px 70px rgba(0,0,0,0.28); }
.admin-login-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; }
.admin-login-brand img { width: 3rem; height: 3rem; object-fit: contain; border: 1px solid #e5e7eb; background: #fff; }
.admin-login-brand p { color: #6b7280; font-size: 0.8rem; }
.admin-login-brand h1 { margin-top: 0.15rem; color: #111827; font-size: 1.55rem; line-height: 1; }
.admin-login-form { display: grid; gap: 0.85rem; }
.admin-login-form .admin-primary-btn { margin-top: 0.35rem; width: 100%; }
@media (max-width: 720px) {
  .admin-topbar { align-items: flex-start; }
  .admin-top-actions { gap: 0.35rem; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .admin-primary-btn, .admin-secondary-btn, .admin-ghost-btn { width: 100%; }
  .admin-top-actions .admin-secondary-btn, .admin-top-actions .admin-ghost-btn { width: auto; }
  .admin-detail { position: static; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2) { display: none; }
}
