/* =========================================================
   Avocat Bogdan Constantin Tănase - styles.css
   Mobile-first, modern CSS, bright and warm 2026 theme
   ========================================================= */

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

:root {
  --bg: #EFE9DC;
  --surface: #FFFFFF;
  --surface-2: #E3D9C9;
  --text: #161513;
  --muted: #5C5549;
  --accent: #1B1B22;
  --accent-strong: #0A0A0E;
  --accent-soft: #EAE2D2;
  --on-accent: #FFFFFF;
  --border: #D5C9B3;
  --shadow-sm: 0 2px 6px rgba(31, 27, 22, 0.06);
  --shadow-md: 0 12px 28px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 27, 22, 0.12);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-bg: #191918;
  --header-fg: #F5EFE3;
  --header-border: rgba(245, 239, 227, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141A;
    --surface: #1B1B22;
    --surface-2: #20202A;
    --text: #F0E9D8;
    --muted: #B8B2A4;
    --accent: #F0E9D8;
    --accent-strong: #FFFFFF;
    --accent-soft: #2A2A33;
    --on-accent: #14141A;
    --border: #2C2C36;
  }
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  accent-color: var(--accent);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p strong,
p b {
  color: var(--text);
}

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

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 0.8rem;
  max-width: 80ch;
  line-height: 1.5;
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-head .section-sub {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px color-mix(in oklab, var(--accent) 28%, transparent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--header-fg);
  border-block-end: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  padding-top: env(safe-area-inset-top);
}

.site-header.is-scrolled {
  background: var(--header-bg);
  border-block-end-color: var(--header-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand img {
  width: clamp(120px, 28vw, 160px);
  height: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--header-fg);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.25rem 0.6rem;
  text-align: left !important;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--header-fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Dropdown ---------- */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 190px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease);
  z-index: 1000;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown a {
  display: block !important;
  width: 100% !important;
  padding: 0.15rem 0.75rem !important;
  text-align: left !important;
  color: var(--text) !important;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s var(--ease);
  white-space: nowrap;
}

.dropdown a::after {
  display: none !important;
}

.dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(1px);
}

.has-dropdown > a svg {
  transition: transform 0.2s var(--ease);
}

.has-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.header-cta {
  display: none;
}

.header-cta.btn-primary {
  min-height: 38px;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  background: var(--header-fg);
  color: var(--header-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-cta.btn-primary:hover {
  background: #FFFFFF;
  color: var(--header-bg);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--header-fg);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Mobile menu (dialog) ---------- */
.mobile-menu {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.mobile-menu::backdrop {
  background: rgba(31, 27, 22, 0.45);
  backdrop-filter: blur(4px);
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 1.25rem) var(--gutter) calc(env(safe-area-inset-bottom) + 1.25rem);
}

.menu-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 2rem;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.4rem;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--text);
  padding: 0.6rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
  margin-top: auto;
}

.mobile-action-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  border: none !important;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}

.mobile-action-btn:active {
  transform: scale(0.92);
}

.mobile-action-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
}

.mobile-action-btn.call {
  background: var(--accent);
  color: #FFFFFF !important;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding-block: 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 80% 20%, color-mix(in oklab, var(--accent-soft) 70%, transparent) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 80%, color-mix(in oklab, var(--accent-soft) 90%, transparent) 0%, transparent 60%),
    radial-gradient(120% 90% at 50% 110%, color-mix(in oklab, var(--accent) 8%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 50%, transparent) 0%,
      color-mix(in oklab, var(--bg) 60%, transparent) 100%);
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: -10% -5% -10% -5%;
  background-image:
    url("../img/avocat-bogdan-tanase.png");
  background-repeat: no-repeat;
  background-position: right 90%;
  background-size: contain;
  opacity: 0.25;
  filter: saturate(70%) contrast(92%);
  will-change: transform;
  display: none;
}

@media (min-width: 768px) {
  .hero-layer {
    opacity: 0.4;
    background-size: cover;
    background-position: 75% 90%;
    filter: saturate(70%) contrast(92%) blur(3px);
  }

  .hero-bg::after {
    background:
      linear-gradient(90deg,
        color-mix(in oklab, var(--bg) 85%, transparent) 0%,
        color-mix(in oklab, var(--bg) 50%, transparent) 55%,
        color-mix(in oklab, var(--bg) 15%, transparent) 100%);
  }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .hero {
    min-height: 100svh;
    padding-block: clamp(3rem, 10vh, 6rem);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-portrait {
  order: -1;
  width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-content {
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.hero-logo-inline {
  display: inline-block;
  vertical-align: middle;
  height: clamp(40px, 6.5vw, 75px);
  width: auto;
  max-width: 38%;
  flex-shrink: 0;
  object-fit: contain;
  transition: height 0.2s var(--ease);
}

.hero .eyebrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 0.6rem);
  font-size: clamp(0.62rem, 1.6vw, 0.76rem);
  letter-spacing: 0.08em;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero .eyebrow::before {
  display: none;
}

@media (min-width: 640px) {
  .hero .eyebrow {
    letter-spacing: 0.15em;
  }

  .hero .eyebrow::before {
    display: block;
    content: "";
    inline-size: 28px;
    block-size: 1px;
    background: currentColor;
    opacity: 0.7;
  }
}

.hero h1 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: color-mix(in oklab, var(--text) 82%, transparent);
  max-width: 60ch;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.6rem;
  border-top: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  padding-top: 1.4rem;
  max-width: 640px;
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta strong {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-portrait {
    width: min(100%, 460px);
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 2.25rem;
    transform: translateY(-24px);
  }

  .hero-portrait {
    order: 0;
    width: 100%;
    margin-inline: 0;
  }

  .hero-content {
    max-width: none;
  }
}

.scroll-indicator {
  position: absolute;
  inset-inline: 0;
  bottom: calc(env(safe-area-inset-bottom) + 1.2rem);
  margin-inline: auto;
  width: 28px;
  height: 44px;
  border-radius: 14px;
  border: 1.5px solid color-mix(in oklab, var(--text) 35%, transparent);
  display: none;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDown 1.8s var(--ease) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 8rem;
  }

  .scroll-indicator {
    display: block;
  }
}

@media (min-width: 960px) {
  .scroll-indicator {
    bottom: 7.5rem;
  }
}

/* ---------- Despre ---------- */
.despre {
  background: var(--surface);
}

.despre-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.despre-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.despre-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.despre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.despre-tags span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

@media (min-width: 960px) {
  .despre-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

/* ---------- Despre Extra (Read More on mobile) ---------- */
.despre-extra {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.btn-read-more {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1.5px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.btn-read-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .btn-read-more:hover {
    background: color-mix(in oklab, var(--accent-soft) 80%, var(--accent) 20%);
    transform: translateY(-1px);
  }
}

/* On mobile/tablet: hide the extra text and show the button */
@media (max-width: 959px) {
  .despre-extra {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
  }

  .despre-extra.is-expanded {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 1rem;
  }

  .btn-read-more {
    display: inline-flex;
  }
}

/* ---------- Domenii ---------- */
.domenii {
  background: var(--bg);
}

.cards {
  display: grid;
  gap: 1rem;
  container-type: inline-size;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

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

.card-wide {
  grid-column: 1 / -1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- De ce ---------- */
.alegere {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.values {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.value {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.value h3 {
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.value p {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--surface);
}

.faq-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .faq .section-head {
    text-align: left;
    margin: 0;
  }
}

.faq-logo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-top: 1.75rem;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
  transform: scale(1.2);
}

.faq-list details p {
  margin-top: 0.6rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 6fr 5fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-info h2 {
  margin-bottom: 0.6rem;
}

.contact-list {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.contact-list .ci {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-list .ci svg {
  width: 22px;
  height: 22px;
}

.contact-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.contact-list a {
  color: var(--accent-strong);
}

.contact-list a:hover {
  color: var(--accent);
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.9rem;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.form-help {
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form label>span {
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 48px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}

.contact-form .check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form .check input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.form-status {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.is-ok {
  color: var(--accent-strong);
}

.form-status.is-err {
  color: #B23A3A;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.08s linear;
  will-change: width;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ---------- Floating action buttons (call, WhatsApp) ---------- */
.fab-stack {
  position: fixed;
  right: calc(env(safe-area-inset-right) + 1rem);
  bottom: calc(env(safe-area-inset-bottom) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 40;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.fab-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.fab-whatsapp:hover {
  background: #1FB256;
  color: #FFFFFF;
}

.fab-call:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.fab:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .fab-stack {
    display: none;
  }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  padding: 1rem;
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(31, 27, 22, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--accent-strong);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .cookie-banner p {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #191918;
  color: #F5EFE3;
  border-top: 1px solid rgba(245, 239, 227, 0.1);
  padding-block: 4rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.site-footer p {
  color: #D1D1D1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: #D1D1D1;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0A0A0;
  font-size: 0.85rem;
}

.site-footer a {
  color: #D1D1D1;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: #FFFFFF;
}

.back-top {
  font-weight: 600;
  color: #FFFFFF !important;
}

/* ---------- Anchor scroll offsets ---------- */
section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Clickable cards (link variant) ---------- */
.card {
  position: relative;
}

.card h3 a.card-stretched {
  color: inherit;
  text-decoration: none;
}

.card h3 a.card-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.card h3 a.card-stretched:focus-visible {
  outline: none;
}

.card:has(a.card-stretched:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  position: relative;
  z-index: 0;
}

.card-link::after {
  content: "";
  display: inline-block;
  margin-inline-start: 0.5rem;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-link::after {
    width: 28px;
  }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--surface-2);
  border-block-end: 1px solid var(--border);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-list li+li::before {
  content: "/";
  color: color-mix(in oklab, var(--muted) 50%, transparent);
  margin-inline-end: 0.1rem;
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--accent-strong);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 480px at 50% -20%, color-mix(in oklab, var(--accent-soft) 80%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  border-block-end: 1px solid var(--border);
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}


.page-hero-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
}

.page-hero h1 span {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  margin-top: 0.8rem;
  color: color-mix(in oklab, var(--text) 85%, transparent);
  letter-spacing: -0.01em;
}

.page-hero .lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: color-mix(in oklab, var(--text) 82%, transparent);
  max-width: 65ch;
  margin-bottom: 1.4rem;
  font-weight: 400;
  margin-inline: auto;
}

.page-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Prose (long-form content) ---------- */
.page-hero + .section {
  padding-block-start: 0.5rem;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose>*+* {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

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

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.4rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose ol {
  counter-reset: item;
  list-style: none;
  padding-inline-start: 0;
}

.prose ol>li {
  position: relative;
  padding-inline-start: 2.4rem;
  margin-bottom: 0.9rem;
  counter-increment: item;
}

.prose ol>li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0.05em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Service CTA (bottom of detail pages) ---------- */
.service-cta {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.service-cta-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.service-cta h2 {
  margin-bottom: 0.6rem;
}

.service-cta p {
  margin-bottom: 1.6rem;
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- About Hero Layout ---------- */
.about-hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.about-hero::before {
  display: none !important;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.about-hero-portrait {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.about-hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.about-hero-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-hero-content {
  text-align: center;
  width: 100%;
}

.about-hero-content h1,
.about-hero-content .lede {
  text-align: center !important;
  margin-inline: auto !important;
  max-width: 100% !important;
}

@media (min-width: 768px) {
  .about-hero-inner {
    grid-template-columns: 280px 1fr;
  }

  .about-hero-content {
    text-align: left;
  }

  .about-hero-content h1,
  .about-hero-content .lede {
    text-align: left !important;
    margin-inline: 0 auto !important;
  }

  .about-hero-content .lede {
    max-width: 60ch !important;
  }
}

@media (min-width: 1024px) {
  .about-hero-inner {
    grid-template-columns: 320px 1fr;
  }
}

/* ---------- Floating Brand Logo (Bottom Right Monogram) ---------- */
.floating-logo {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 39;
  display: block;
  transition: transform 0.3s var(--ease);
  pointer-events: auto;
}

.floating-logo img {
  display: block;
  width: 92px;
  height: auto;
  opacity: 1;
  filter: var(--logo-filter, none);
}

.floating-logo:hover {
  transform: translateY(-3px);
}

/* Sibling combinator to shift FAB stack up when floating logo is present */
.floating-logo ~ .fab-stack {
  bottom: 112px;
  right: 16px;
}

@media (max-width: 768px) {
  .floating-logo {
    right: 10px;
    bottom: 10px;
  }

  .floating-logo img {
    width: 72px;
  }

  .floating-logo ~ .fab-stack {
    bottom: 92px;
    right: 10px;
  }
}

/* ---------- Service Horizontal Tabs (Service Pages) ---------- */
.service-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

/* Tab Navigation (Horizontal Scroll on Mobile, Wrapped Row on Desktop) */
.service-tabs-nav {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.service-tabs-nav::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.25s var(--ease);
}

.tab-btn .tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.tab-btn:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  color: var(--text);
  background: var(--surface-2);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.tab-btn.active .tab-icon {
  color: var(--on-accent);
}

/* Tab Content Window (Full width inside .prose) */
.service-tabs-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  min-height: 250px;
}

.tab-panel {
  display: none;
  outline: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.4s var(--ease) forwards;
}

.tab-panel h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.tab-panel p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.tab-panel ul {
  margin-bottom: 0;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet / Laptop layout: Horizontal top tab bar inside .prose */
@media (max-width: 767px) {
  .service-tabs-nav {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.5rem;
  }
  .tab-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}


/* Wide Desktop Breakout: Stacked buttons hang in the left margin, content aligns perfectly with prose */
@media (min-width: 1200px) {
  .service-tabs-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem; /* 48px */
    margin-left: -348px; /* 300px width + 48px gap */
    width: calc(100% + 348px);
    align-items: start;
  }

  .service-tabs-nav {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    position: sticky;
    top: 120px; /* aligns perfectly when scrolling */
    height: max-content;
    gap: 0.6rem;
  }

  .tab-btn {
    display: flex;
    width: 100%;
    padding: 1rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .tab-btn .tab-icon {
    width: 18px;
    height: 18px;
  }

  .service-tabs-content {
    padding: 2.5rem 3rem;
    min-height: 420px;
    box-shadow: var(--shadow-md);
  }
}



/* ---------- Print ---------- */
@media print {

  .site-header,
  .menu-toggle,
  .mobile-menu,
  .fab-stack,
  .scroll-indicator,
  .scroll-progress,
  .cookie-banner,
  .hero-bg,
  .hero-layer,
  .map,
  .contact-form,
  .back-top {
    display: none !important;
  }

  body {
    background: #FFF;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .site-footer {
    background: #FFF;
    border: 0;
  }
}