/* ==========================================================================
   A3D Printing — stylesheet
   ========================================================================== */

:root {
  --blue: #1e5fd6;
  --blue-dark: #133f96;
  --blue-light: #eaf0fe;
  --ink: #14161a;
  --ink-soft: #4a4f58;
  --paper: #ffffff;
  --paper-soft: #f4f6fb;
  --card: #ffffff;
  --border: #e3e7ef;
  --shadow: 0 10px 30px -12px rgba(20, 22, 26, 0.15);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --max-w: 1180px;
  --header-h: 76px;
  color-scheme: light;
}

[data-theme="dark"] {
  --blue: #4d84ff;
  --blue-dark: #83a9ff;
  --blue-light: #17233f;
  --ink: #f2f4f8;
  --ink-soft: #b7bec9;
  --paper: #0d0f13;
  --paper-soft: #14171d;
  --card: #171a21;
  --border: #262b34;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1em; }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(30, 95, 214, .55); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: #25d366; color: #06210f; }
.btn-whatsapp:hover { background: #1fbd5a; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-fallback { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-fallback b { color: var(--blue); }

.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* mode switch (3D Printing / Web & App Dev) */
.mode-switch {
  position: relative;
  display: inline-flex;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.mode-switch button {
  position: relative; z-index: 1;
  border: none; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s ease;
  white-space: nowrap;
}
.mode-switch button[aria-pressed="true"] { color: #fff; }
.mode-switch .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: var(--blue);
  border-radius: 999px;
  transition: transform .28s cubic-bezier(.65,.05,.36,1);
  z-index: 0;
}
[data-mode="dev"] .mode-switch .thumb { transform: translateX(100%); }
.mode-switch svg { width: 15px; height: 15px; }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: var(--ink);
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--paper-soft);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(36px, 5vw, 56px); }
.hero-copy .lede { font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 22px; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--ink-soft); }

.hero-visual {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--blue-light), var(--paper-soft));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual svg { width: 62%; height: 62%; }
.hero-badge {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); flex-shrink: 0; }

/* mode visibility — actual display value per element is set inline by
   applyMode() in js/main.js (so grids stay grids, buttons stay flex, etc.);
   this is just the safe default before JS runs. */
[data-content-for] { display: none; }

/* ---------- generic sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-soft); }
.section-border-top { border-top: 1px solid var(--border); }

/* ---------- services ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon svg { width: 23px; height: 23px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.card ul li { margin-bottom: 4px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 22px 22px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
[data-theme="dark"] .step .num { background: var(--blue); color: #fff; }
.step h3 { font-size: 16.5px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- materials ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
thead th { background: var(--paper-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: none; }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- portfolio ---------- */
.portfolio-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.portfolio-thumb {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative;
}
.portfolio-thumb svg { width: 34%; height: 34%; opacity: .92; }
.portfolio-info { padding: 16px 18px; }
.portfolio-info .tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.portfolio-info h3 { margin: 6px 0 4px; font-size: 16.5px; }
.portfolio-info p { font-size: 14px; margin: 0; }
.portfolio-note {
  margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--border); border-radius: var(--radius-md);
  font-size: 14px; color: var(--ink-soft); background: var(--paper-soft);
}

/* ---------- quote / contact form ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 22px;
  text-align: center; cursor: pointer; background: var(--paper-soft); transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--blue); background: var(--blue-light); }
.file-drop svg { width: 26px; height: 26px; color: var(--blue); margin: 0 auto 8px; }
.file-drop .file-drop-text { font-size: 14px; font-weight: 600; }
.file-drop .file-drop-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
#file-list { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: left; }
#file-list div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }

.setup-banner {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px;
  background: color-mix(in srgb, #f5a623 18%, transparent); border: 1px solid color-mix(in srgb, #f5a623 45%, transparent);
  color: var(--ink); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 20px;
}
.setup-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #b8770b; }
.setup-banner code { background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 4px; }

.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.form-status.ok { color: #17a34a; display: block; }
.form-status.err { color: #dc2626; display: block; }

.quote-side .card { margin-bottom: 16px; }
.quote-side .card:last-child { margin-bottom: 0; }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- testimonial placeholder ---------- */
.testimonial-empty {
  border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 24px;
  text-align: center; color: var(--ink-soft); background: var(--paper-soft);
}
.testimonial-empty svg { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 14px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; }
.about-list svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.about-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--paper-soft); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-visual .mini-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.about-visual .mini-stat b { display: block; font-size: 24px; }
.about-visual .mini-stat span { font-size: 13px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #eef2ff; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 15px; margin-bottom: 2px; }
.contact-item p { font-size: 14.5px; margin-bottom: 0; }
.contact-item a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--paper-soft); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { height: 22px; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--blue); }
.footer-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 24px; }
.footer-note a { color: var(--ink-soft); }

/* ---------- misc ---------- */
.badge-soft {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  background: var(--blue-light); color: var(--blue); padding: 5px 11px; border-radius: 999px;
}

::selection { background: var(--blue); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mode-switch button span.label { display: none; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 22px; }
}

@media (max-width: 720px) {
  body.nav-open .mobile-nav { display: flex; }
}
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--paper); flex-direction: column; padding: 24px; gap: 6px; overflow-y: auto;
}
.mobile-nav a { display: block; padding: 14px 6px; text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Mode-aware palette + motion
   --------------------------------------------------------------------------
   The 3D-printing side keeps the original blue. The Web & App Dev side
   swaps the accent to violet with a cyan secondary. Everything downstream
   already paints from --blue / --blue-dark / --blue-light, so overriding
   those three (plus --accent-2) on body[data-mode="dev"] re-skins the whole
   page. data-mode lives on <body>, data-theme on <html>, hence the
   descendant selectors for the dark-theme variants.
   ========================================================================== */

:root {
  --accent-2: #4d84ff;              /* secondary accent, print mode */
  --glow: rgba(30, 95, 214, .38);
  --mode-fade: .45s;
}
[data-theme="dark"] {
  --accent-2: #83a9ff;
  --glow: rgba(77, 132, 255, .34);
}

body[data-mode="dev"] {
  --blue: #7c3aed;
  --blue-dark: #5b21b6;
  --blue-light: #f1ebfe;
  --accent-2: #06b6d4;
  --glow: rgba(124, 58, 237, .38);
}
[data-theme="dark"] body[data-mode="dev"] {
  --blue: #a78bfa;
  --blue-dark: #c4b5fd;
  --blue-light: #221a3d;
  --accent-2: #22d3ee;
  --glow: rgba(167, 139, 250, .34);
}

/* Let the palette change be a glide rather than a jump. */
body,
.card,
.hero-visual,
.btn,
.mode-switch,
.portfolio-thumb,
.form-card,
.step .num,
.card .icon {
  transition:
    background-color var(--mode-fade) ease,
    background-image var(--mode-fade) ease,
    border-color var(--mode-fade) ease,
    box-shadow var(--mode-fade) ease,
    color var(--mode-fade) ease,
    transform .18s ease;
}

/* Accent-driven shadows so buttons glow in whichever palette is active. */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--accent-2) 55%, var(--blue)));
  box-shadow: 0 8px 22px -8px var(--glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: 0 12px 28px -8px var(--glow);
  transform: translateY(-1px);
}

/* ---------- hero visual: soft animated aura + faint grid ---------- */
.hero-visual { isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute; inset: -30%;
  background:
    radial-gradient(38% 38% at 30% 30%, color-mix(in srgb, var(--blue) 42%, transparent), transparent 70%),
    radial-gradient(34% 34% at 70% 65%, color-mix(in srgb, var(--accent-2) 38%, transparent), transparent 70%);
  filter: blur(26px);
  opacity: .75;
  z-index: -2;
  animation: aura-drift 18s ease-in-out infinite alternate;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
  opacity: 0;
  transition: opacity var(--mode-fade) ease;
  z-index: -1;
}
/* the grid is a "software" cue — only in dev mode */
body[data-mode="dev"] .hero-visual::after { opacity: 1; }
.hero-visual svg { color: var(--blue); filter: drop-shadow(0 6px 18px var(--glow)); }

@keyframes aura-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

/* ---------- cards: edge-light on hover ---------- */
.card { position: relative; overflow: hidden; }
.card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, transparent), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover::after { opacity: 1; }
.card:hover {
  box-shadow: 0 18px 40px -22px var(--glow), var(--shadow);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--border));
}

/* ---------- portfolio thumbs paint from the palette ---------- */
.portfolio-thumb.grad-a { background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--accent-2) 70%, var(--blue))); }
.portfolio-thumb.grad-b { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.portfolio-thumb.grad-c { background: linear-gradient(135deg, #14161a, #4a4f58); }
.portfolio-card:hover .portfolio-thumb svg { transform: scale(1.06); }
.portfolio-thumb svg { transition: transform .35s cubic-bezier(.2,.7,.3,1); }

/* ---------- mode switch: sliding thumb picks up the active accent ---------- */
.mode-switch .thumb {
  background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--accent-2) 60%, var(--blue)));
  transition: transform .38s cubic-bezier(.65,.05,.36,1), background-image var(--mode-fade) ease;
  box-shadow: 0 4px 14px -4px var(--glow);
}

/* ---------- content swap: fade + lift instead of a hard cut ---------- */
@keyframes mode-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
body.mode-switching [data-content-for] { animation: mode-in .38s cubic-bezier(.2,.7,.3,1) both; }

/* ---------- reveal sections on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Respect people who'd rather not have motion. */
@media (prefers-reduced-motion: reduce) {
  .hero-visual::before { animation: none; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  body.mode-switching [data-content-for] { animation: none; }
  * { scroll-behavior: auto; }
}

/* CTA banner picks up the secondary accent too. */
.cta-banner { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, color-mix(in srgb, var(--accent-2) 60%, var(--blue))); }

/* ---------- booking embed ---------- */
.booking-embed {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow);
}
.booking-embed iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--card); }
.booking-fallback { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.booking-fallback a { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .booking-embed iframe { height: 560px; }
}

/* ---------- prices page ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { margin: 0 0 8px; font-size: 17px; }
.price-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 18px; }
.price-card .price { margin-top: auto; font-size: 20px; font-weight: 700; color: var(--blue); }
.price-card .price span { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-right: 4px; }
.price-card .price-tbd { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.price-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

/* Hero stats: the materials line got longer (ASA), so tighten the row a
   little to keep all three on one line on desktop. */
@media (min-width: 981px) {
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 19px; }
}
