/* Bernardo Betuel portfolio, in the Mavens brand
   Shape rule: buttons and tags are full pills, cards and images 12px, inputs 6px.
   One accent (Mavens orange). Light and dark follow the system setting. */

:root {
  --accent: #FF5C00;
  --accent-2: #DD2C00;
  --accent-hover: color-mix(in srgb, #FF5C00 80%, black);
  --gradient: linear-gradient(to right, #FF9000 0%, #FF5C00 50%, #DD2C00 100%);
  --btn-fill: linear-gradient(to right, #FF5C00, #DD2C00);
  --glow: color-mix(in srgb, #FF5C00 15%, transparent);
  --on-accent: #FFFFFF;

  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-2: color-mix(in srgb, #FF5C00 7%, #FFFFFF);
  --text: #1B1B1B;
  --muted: #4A4A4A;
  --line: rgba(234, 89, 0, 0.2);
  --accent-ink: #DD2C00;
  --header-bg: rgba(248, 249, 250, 0.85);
  --band: #1B1B1B;
  --band-text: #F0F4F8;
  --band-muted: #A0AEC0;
  --shadow: 0 18px 40px -18px rgba(27, 27, 27, 0.25);
  --radius: 12px;
  --radius-input: 6px;
  --header-h: 80px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1A;
    --surface: #2A2A2A;
    --surface-2: #333333;
    --text: #F0F4F8;
    --muted: #A0AEC0;
    --line: rgba(255, 92, 0, 0.5);
    --accent-ink: #FF5C00;
    --header-bg: rgba(26, 26, 26, 0.85);
    --band: #2A2A2A;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 4.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }
.section--tight { padding-top: 0; }

.section-head { display: grid; gap: 12px; max-width: 65ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

.label { font-size: 0.9375rem; font-weight: 600; color: var(--accent-ink); }

.lede { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }

.muted { color: var(--muted); }

/* ---------- Buttons, tags, links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--btn-fill); color: var(--on-accent); box-shadow: 0 8px 24px -8px var(--accent), 0 0 0 4px var(--glow); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: currentColor; color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  min-height: 44px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9875rem;
  color: var(--muted);
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 10px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform 0.2s ease; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a:not(.btn) { width: 100%; font-size: 1.0625rem; }
  .nav .btn { margin: 8px 0 0; width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; margin-top: 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 36px; align-items: center; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); }
.footer-grid .social { margin-top: 16px; }
.footer-title { font-weight: 600; margin-bottom: 8px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* Social icons are masks filled with currentColor so they follow the theme. */
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.social a:hover { background: var(--text); color: var(--bg); }
.icon { display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.icon--facebook { --src: url("../img/icons/facebook.svg"); }
.icon--instagram { --src: url("../img/icons/instagram.svg"); }
.icon--linkedin { --src: url("../img/icons/linkedin.svg"); }
.icon--onlinejobs { --src: url("../img/icons/onlinejobs.svg"); }

/* ---------- Reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- Home: hero ---------- */

.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 20px; }
.hero-copy .lede { max-width: 34ch; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-photo figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.hero-photo figcaption strong { color: var(--text); font-weight: 600; }

@media (max-width: 767px) {
  .hero { padding-top: 28px; }
  .hero-grid { gap: 24px; }
  .hero-photo { order: -1; display: flex; align-items: center; gap: 14px; }
  .hero-photo img { width: 96px; aspect-ratio: 1 / 1; border-radius: 50%; object-position: 50% 12%; }
  .hero-photo figcaption { margin: 0; }
}
@media (min-width: 768px) {
  .hero { padding-block: 56px 72px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 56px; }
  .hero-photo img { max-height: calc(100dvh - var(--header-h) - 160px); }
}

/* ---------- Home: proof numbers ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin: 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { display: grid; gap: 4px; align-content: start; }
.stats dt { order: 2; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.stats dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }

.skills { margin-top: 40px; display: grid; gap: 16px; }
.skills h2 { font-size: 1.25rem; }

/* ---------- Home: services bento ---------- */

.bento { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(3, auto); }
  .bento-feature { grid-row: span 3; }
}
.bento-cell { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.bento-cell p { color: var(--muted); }
.bento-feature { background: var(--band); color: var(--band-text); border-color: transparent; gap: 14px; overflow: hidden; }
.bento-feature p { color: var(--band-muted); }
.bento-feature img { margin-top: 12px; border-radius: 12px; background: #fff; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bento-accent { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }

/* ---------- Home: best work ---------- */

.work-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card--lead { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.work-card { display: grid; gap: 16px; text-decoration: none; }
.work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.work-card:hover img { transform: translateY(-4px); }
.work-card h3 { font-size: 1.375rem; }
.work-card p { color: var(--muted); }
.work-card-body { display: grid; gap: 8px; }

/* ---------- Tools ---------- */

.tools { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tools li { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 0.9375rem; line-height: 1.25; }
.tool-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(27, 27, 27, 0.08); }
.tool-logo img { width: 24px; height: 24px; object-fit: contain; }
.tools-extra { margin-top: 16px; color: var(--muted); }

/* ---------- Closing band ---------- */

.cta-band { border-radius: var(--radius); background: var(--band); color: var(--band-text); padding: 48px 24px; display: grid; gap: 20px; justify-items: start; }
.cta-band p { color: var(--band-muted); max-width: 52ch; }
@media (min-width: 768px) {
  .cta-band { padding: 64px; grid-template-columns: 1fr auto; column-gap: 48px; align-items: center; }
  .cta-band h2,
  .cta-band p { grid-column: 1; }
  .cta-band .btn { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: 48px 8px; display: grid; gap: 16px; }
@media (min-width: 768px) { .page-head { padding-block: 72px 16px; } }

/* ---------- About ---------- */

.about-intro { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.about-intro img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy { display: grid; gap: 18px; }
.about-copy .quote-line { font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.about-copy p:not(.quote-line):not(.label) { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; gap: 6px; padding-block: 24px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .timeline li { grid-template-columns: 220px 1fr; gap: 32px; } }
.timeline .when { color: var(--accent-ink); font-weight: 600; font-size: 0.9375rem; }
.timeline h3 { margin-bottom: 4px; }
.timeline .role { font-weight: 500; margin-bottom: 8px; }
.timeline p { color: var(--muted); max-width: 65ch; }

.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li:first-child { background: var(--band); color: var(--band-text); border-color: transparent; }
.steps li:first-child p { color: var(--band-muted); }
.steps p { color: var(--muted); }

.reasons { display: grid; gap: 32px 48px; }
@media (min-width: 768px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reasons div { display: grid; gap: 8px; padding-top: 20px; border-top: 2px solid var(--text); }
.reasons p { color: var(--muted); }

.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1.2fr 1fr; } .quotes figure:first-child { grid-row: span 2; } }
.quotes figure { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 20px; align-content: space-between; }
.quotes figure:first-child { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.quotes blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.quotes figure:first-child blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; font-weight: 500; }
.quotes figcaption strong { display: block; }
.quotes figcaption span { color: var(--muted); font-size: 0.9375rem; }

.creds { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.creds li { flex: 1 1 280px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 4px; }
.creds span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Services ---------- */

.method { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(3, 1fr); } }
.method li { padding: 28px; border-radius: var(--radius); background: var(--band); color: var(--band-text); display: grid; gap: 10px; align-content: start; }
.method p { color: var(--band-muted); }
.method h3 { font-size: 1.5rem; }

.cluster { padding-top: 32px; border-top: 1px solid var(--line); }
.cluster + .cluster { margin-top: 56px; }
.cluster > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 24px; }
.service-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.service > p { color: var(--muted); }
.service ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.service ul li::marker { color: var(--accent-ink); }
.service .uses { font-size: 0.9375rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.service .uses strong { color: var(--text); font-weight: 600; }
.service .price { font-weight: 600; color: var(--accent-ink); }

.support { display: grid; gap: 32px; }
@media (min-width: 900px) { .support { grid-template-columns: 1fr 1fr; gap: 64px; } }
.support .tags li { background: transparent; }
.note { padding: 20px 24px; border-radius: var(--radius); background: var(--surface-2); }

/* ---------- Portfolio ---------- */

.project { display: grid; gap: 28px; padding-block: 48px; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 16px; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.project-body { display: grid; gap: 16px; align-content: start; }
.project-body > p { color: var(--muted); }
.project h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.facts { display: grid; gap: 16px; margin: 0; }
.facts div { display: grid; gap: 4px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

@media (min-width: 900px) {
  .project--wide .project-body { grid-template-columns: 1fr 1fr; gap: 32px; }
  .project--wide .project-body h2,
  .project--wide .project-body > p { grid-column: 1; }
  .project--wide .facts { grid-column: 2; grid-row: 1 / span 3; }
  .project--split { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
  .project--flip .project-body { order: -1; }
}

.more-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.more-grid li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.more-grid .kind { font-size: 0.875rem; font-weight: 600; color: var(--accent-ink); }
.more-grid p { color: var(--muted); }
.more-grid .feature { background: var(--band); color: var(--band-text); border-color: transparent; }
.more-grid .feature p { color: var(--band-muted); }
.more-grid .feature .kind { color: var(--accent); }
.more-grid .feature .text-link { color: var(--band-text); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } }

.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.details li { display: grid; gap: 2px; }
.details .k { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.details a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.details a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 25%, transparent); }
.field .error { color: var(--accent-ink); font-size: 0.875rem; font-weight: 500; min-height: 0; }
.field .error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--accent-ink); }
.form .hint { font-size: 0.875rem; color: var(--muted); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }

.booking { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 8px; overflow: hidden; }
.booking iframe { display: block; width: 100%; min-height: 640px; border: 0; border-radius: 12px; background: #FFFFFF; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 65ch; }

/* ---------- Thank you ---------- */

.thanks { min-height: calc(100dvh - var(--header-h) - 200px); display: grid; place-items: center; padding-block: 64px; }
.thanks-card { max-width: 640px; text-align: center; display: grid; gap: 20px; justify-items: center; }
.thanks-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.thanks-card .btn-row { justify-content: center; }
.check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-fill); color: var(--on-accent); font-size: 1.75rem; font-weight: 700; }
.support > div { display: grid; gap: 16px; align-content: start; }
.more-links { margin-top: 32px; }
.contact-grid .page-head { padding: 0; }
.details .social { margin-top: 8px; }
/* An odd service out at the end of a cluster takes the full row instead of leaving a gap */
@media (min-width: 900px) {
  .service-grid > .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .service-grid > .service:last-child:nth-child(odd) ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* Mavens brand touches: gradient word, orange glow on dark panels and the hero photo */
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.cta-band,
.bento-feature,
.method li,
.steps li:first-child,
.more-grid .feature { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #FF5C00 22%, transparent), transparent 60%), var(--band); border: 1px solid rgba(255, 92, 0, 0.35); }
.hero-photo img,
.about-intro img { box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 80px var(--glow); }
