:root {
  --navy: #0a2540;
  --navy-2: #1e3a8a;
  --teal: #0d9488;
  --teal-soft: #14b8a6;
  --bg: #f8fafc;
  --card: #ffffff;
  --fg: #0f2033;
  --muted: #5b6b7d;
  --border: #e3e8ef;
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, var(--teal));
  --shadow-luxe: 0 24px 60px -28px rgba(10, 37, 64, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(10, 37, 64, 0.4);
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
main { flex: 1; }
.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at top, rgba(20,184,166,0.16), rgba(10,37,64,0.96));
  color: #fff; text-align: center; padding: 2rem;
}
.page-loader.is-hidden {
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.loader-heart {
  width: 5.8rem; height: 5.8rem; display: grid; place-items: center;
  color: var(--teal-soft); animation: heart-pulse 1.2s ease-in-out infinite;
}
.loader-heart svg {
  width: 100%; height: 100%; stroke: currentColor; fill: rgba(20,184,166,0.18);
}
.loader-bar { width: min(18rem, 70vw); height: 0.5rem; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; margin-top: 1.25rem; }
.loader-bar span {
  display: block; width: 40%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-soft), #fff);
  animation: loader-run 1.8s ease-in-out infinite;
}
.loader-text {
  margin-top: 1rem; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.site-shell { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.site-shell.is-ready { opacity: 1; visibility: visible; }
@keyframes heart-pulse {
  0%, 100% { transform: scale(0.95); }
  50% { transform: scale(1.08); }
}
@keyframes loader-run {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(140%); }
  100% { transform: translateX(300%); }
}
h1, h2, h3, h4, blockquote { font-family: var(--font-display); font-weight: 500; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 64rem; }
.mid { max-width: 72rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }
.eyebrow-light { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.6rem; border: 1px solid transparent; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; padding: 0.6rem 1.1rem;
  transition: all 0.2s ease; font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #123152; }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { background: #eef2f6; }
.btn-ghost-light { border-color: rgba(255,255,255,0.4); background: transparent; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
.btn-icon { padding: 0.55rem; }
.btn-block { width: 100%; }
.icon { width: 1rem; height: 1rem; flex: none; }
.icon-sm { width: 0.85rem; height: 0.85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-block: 0.4rem;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex: 0 0 auto; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto;
  height: auto;
  flex-shrink: 0;
}
.brand-logo img {
  display: block; width: clamp(4rem, 5.5vw, 4.6rem); height: clamp(4rem, 5.5vw, 4.6rem); object-fit: cover;
  border-radius: 50%; box-shadow: 0 4px 10px rgba(10, 37, 64, 0.12);
}
.brand-tagline {
  font-size: 24px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.brand-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; display: block; }
.brand-sub { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; min-width: 0; flex: 1 1 auto; }
.desktop-nav { display: flex; align-items: center; gap: 0.25rem; }
.desktop-nav a {
  position: relative; padding: 0.5rem 0.65rem; border-radius: 0.45rem;
  font-size: 16px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted); font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transition: color 0.2s ease, transform 0.2s ease;
}
.desktop-nav a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.35rem;
  height: 2px; background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease;
}
.desktop-nav a:hover {
  color: var(--navy); transform: translateY(-1px);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.mobile-nav a.active::after {
  transform: scaleX(1);
}
.desktop-nav a.active, .mobile-nav a.active { color: var(--teal); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; padding-block: 0.4rem; }
.mobile-nav a {
  position: relative; padding: 0.8rem 0; font-size: 0.95rem; font-weight: 600;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; border-bottom: 1px solid var(--border);
}
.mobile-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem;
  height: 2px; background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav a:hover::after { transform: scaleX(1); }
.only-mobile { display: none; }
.hide-mobile { display: inline-flex; }

@media (max-width: 1099px) {
  .desktop-nav { display: none; }
  .hide-mobile { display: none; }
  .only-mobile,
  .menu-btn { display: inline-flex; }
}

@media (min-width: 1100px) {
  .menu-btn { display: none; }
}

@media (max-width: 640px) {
  .header-row {
    height: 4rem;
    gap: 0.5rem;
    padding-block: 0.3rem;
  }
  .brand { gap: 0.45rem; }
  .brand-logo img { width: 3.35rem; height: 3.35rem; }
  .brand-tagline {
    max-width: 5.8rem;
    font-size: 0.52rem;
    line-height: 1.05;
  }
  .header-actions { gap: 0.35rem; }
  .btn-icon { padding: 0.48rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); color: #fff; }
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; padding-block: 4.5rem; }
@media (max-width: 640px) {
  .hero-grid { padding-block: 3.25rem; }
}
@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 22rem);
    gap: clamp(2rem, 5vw, 4rem);
  }
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25); padding: 0.28rem 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.pill-teal {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  background: rgba(13,148,136,0.1); color: var(--teal);
  padding: 0.28rem 0.8rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 6vw, 3.6rem); line-height: 1.08; }
.rotator { display: block; margin-top: 0.5rem; color: var(--teal-soft); }
.hero p.lead { margin-top: 1.5rem; max-width: 36rem; color: rgba(255,255,255,0.82); line-height: 1.7; font-size: 1.02rem; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.portrait-wrap { position: relative; justify-self: center; width: 100%; max-width: 22rem; }
@media (min-width: 820px) {
  .portrait-wrap { justify-self: end; }
}
.hero-portrait { width: 100%; height: auto; max-height: 32rem; object-fit: cover; object-position: center top; border-radius: 1.75rem; box-shadow: var(--shadow-luxe); }
.about-portrait { width: 100%; max-width: 30rem; height: auto; max-height: 34rem; object-fit: cover; object-position: center top; margin-inline: auto; }
.portrait-card {
  position: relative; margin-left: auto; margin-top: -2rem; width: fit-content;
  background: var(--card); color: var(--fg); border-radius: 0.75rem;
  padding: 0.7rem 1rem; box-shadow: var(--shadow-luxe);
}
.portrait-card p:first-child { font-family: var(--font-display); font-size: 1.05rem; }
.portrait-card p:last-child { font-size: 0.7rem; color: var(--muted); }

/* Sections */
section.pad { padding-block: 4.5rem; }
.page-head { background: var(--gradient-hero); color: #fff; padding-block: 4rem; }
.page-head h1 { margin-top: 1rem; font-size: clamp(2.1rem, 5vw, 3rem); }
.page-head p { margin-top: 1rem; color: rgba(255,255,255,0.82); max-width: 44rem; }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 58rem;
  margin: -1.5rem auto 0;
}
.stat {
  min-height: 5.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.85rem 0.7rem;
  text-align: center;
  box-shadow: 0 10px 24px -18px rgba(10, 37, 64, 0.35);
}
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; font-weight: 600; color: var(--navy); }
.stat span { display: block; margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.25; color: var(--muted); }
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 24rem;
    margin-top: 1rem;
  }
}

.grid3 { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; }
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-luxe); }
.card h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.card p { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.7; color: var(--muted); }

/* Credentials-specific layout: uniform square-like tiles */
.credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.credentials .card { border-radius: 0.6rem; padding: 1.25rem; min-height: 12rem; display: flex; flex-direction: column; gap: 0.5rem; }
.credentials .card h3 { margin-top: 0.6rem; font-size: 1.05rem; }
.credentials .card p { margin-top: 0.25rem; color: var(--muted); }
.icon-badge { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 0.75rem; background: rgba(13,148,136,0.1); color: var(--teal); }
.icon-badge svg { width: 1.25rem; height: 1.25rem; }

.home-expertise { max-width: 66rem; }
.section-intro { max-width: 34rem; }
.expertise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.expertise-grid .card {
  min-height: 12rem;
  border-radius: 0.7rem;
  padding: 1.15rem;
  box-shadow: 0 10px 24px -20px rgba(10, 37, 64, 0.3);
}
.expertise-grid .icon-badge {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
}
.expertise-grid .icon-badge svg { width: 1rem; height: 1rem; }
.expertise-grid .card h3 { margin-top: 0.9rem; font-size: 1.05rem; }
.expertise-grid .card p { font-size: 0.82rem; line-height: 1.55; }
.home-expertise .btn { padding: 0.52rem 0.9rem; font-size: 0.84rem; }

.band { background: rgba(226,232,240,0.55); }
.split { display: grid; gap: 3rem; align-items: center; }
.eera-band { padding-block: 3.4rem; }
.eera-split {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 66rem;
}
.eera-split h2 {
  max-width: 34rem;
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
  line-height: 1.15;
}
.feature-list { margin-top: 1.2rem; display: grid; gap: 0.55rem; font-size: 0.84rem; }
.feature-list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.feature-list svg { color: var(--teal); margin-top: 0.15rem; }
.eera-chat-card {
  justify-self: end;
  width: 100%;
  max-width: 24rem;
  border-radius: 0.75rem;
  box-shadow: 0 16px 38px -26px rgba(10, 37, 64, 0.55);
  overflow: hidden;
}
.eera-chat-card .chat { border-radius: 0.75rem; }
.eera-chat-card .chat-log { height: 17rem; padding: 0.8rem; gap: 0.75rem; }
.eera-chat-card .chat-head { padding: 0.6rem 0.8rem; }
.eera-chat-card .msg-eera .text,
.eera-chat-card .msg-user {
  font-size: 0.8rem;
  line-height: 1.55;
}
.eera-chat-card .chat-form { padding: 0.65rem; }
.eera-chat-card input { font-size: 0.82rem; }
@media (max-width: 820px) {
  .expertise-grid { grid-template-columns: 1fr; max-width: 24rem; }
  .eera-split { grid-template-columns: 1fr; max-width: 34rem; }
  .eera-chat-card { justify-self: start; max-width: 100%; }
}

.cta-panel { border-radius: 1.5rem; background: var(--gradient-hero); color: #fff; padding: 3.5rem 2rem; text-align: center; }
.cta-panel h2 { margin-top: 1rem; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.cta-panel p { margin: 1rem auto 0; max-width: 34rem; color: rgba(255,255,255,0.82); }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.soft-panel { margin-top: 3.5rem; border: 1px solid var(--border); background: rgba(226,232,240,0.5); border-radius: 1rem; padding: 2rem; text-align: center; }

/* About editorial */
.editorial { background: var(--card); }
.editorial-head { max-width: 56rem; margin-inline: auto; padding-block: 4.5rem 3rem; text-align: center; }
.editorial-head h1 { margin-top: 1.5rem; font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.editorial-head .quote { margin-top: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.editorial-grid { display: grid; gap: 3rem; max-width: 64rem; margin-inline: auto; padding-bottom: 4rem; }
@media (min-width: 860px) {
  .editorial-grid { grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); align-items: start; }
}
.about-photo-stack {
  width: 100%;
  max-width: 24rem;
  justify-self: center;
}
.about-main-photo {
  width: 100%;
  max-height: 26rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}
.about-image-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 30px;
}
.about-thumb {
   aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: 0.75rem; box-shadow: var(--shadow-soft);
}
.badges { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { border: 1px solid rgba(13,148,136,0.3); color: var(--teal); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.dropcap { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.6; }
.dropcap::first-letter { float: left; margin-right: 0.7rem; font-size: 4rem; line-height: 0.85; color: var(--navy); }
.body-text { font-size: 1.05rem; line-height: 1.9; color: var(--muted); }
blockquote.pull { border-left: 2px solid var(--teal); padding-left: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.7; }
.stack > * + * { margin-top: 1.75rem; }

/* Tabs & accordion */
.tabs { display: flex; gap: 0.25rem; background: #eef2f6; padding: 0.3rem; border-radius: 0.7rem; }
.tab { flex: 1; padding: 0.55rem 0.75rem; border: 0; background: transparent; border-radius: 0.5rem; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--muted); }
.tab[aria-selected="true"] { background: #fff; color: var(--fg); box-shadow: var(--shadow-soft); }
.tabpanel { margin-top: 2rem; }
.tabpanel[hidden] { display: none; }
.accordion { margin-top: 1.5rem; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding-inline: 1.25rem; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 0; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; color: inherit; padding: 1.1rem 0;
}
.acc-trigger .chev { transition: transform 0.25s ease; flex: none; }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.acc-panel p { padding-bottom: 1.1rem; font-size: 0.95rem; line-height: 1.75; color: var(--muted); }

/* Chat */
.chat { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.chat-head { display: flex; align-items: center; gap: 0.75rem; background: var(--navy); color: #fff; padding: 0.7rem 1rem; }
.chat-avatar { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--teal); flex: none; }
.chat-avatar .dot { position: absolute; top: -2px; right: -2px; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: var(--teal-soft); }
.glow-dot { animation: eera-pulse 2s infinite; }
@keyframes eera-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,184,166,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
.chat-head .name { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.chat-head .status { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; height: 26rem; }
.chat.compact .chat-log { height: 20rem; }
.msg-user { align-self: flex-end; max-width: 85%; background: var(--navy); color: #fff; border-radius: 1rem 1rem 0.25rem 1rem; padding: 0.6rem 1rem; font-size: 0.88rem; }
.msg-eera { display: grid; gap: 0.5rem; }
.topic-chip { justify-self: start; border-radius: 999px; background: rgba(13,148,136,0.12); color: var(--teal); padding: 0.1rem 0.6rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.msg-eera .text { max-width: 92%; font-size: 0.88rem; line-height: 1.7; }
.recommend { border: 1px solid rgba(13,148,136,0.25); background: rgba(13,148,136,0.06); border-radius: 0.75rem; padding: 0.75rem; }
.recommend p { font-size: 0.87rem; font-weight: 500; }
.recommend div { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestions button { border: 1px solid var(--border); background: none; border-radius: 999px; padding: 0.25rem 0.75rem; font: inherit; font-size: 0.75rem; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.suggestions button:hover { border-color: var(--teal); color: var(--teal); }
.typing { display: flex; gap: 0.35rem; align-items: center; }
.typing span { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(13,148,136,0.7); animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25%); } }
.chat-form { border-top: 1px solid var(--border); padding: 0.75rem; }
.chat-row { display: flex; gap: 0.5rem; align-items: center; }
.disclaimer { margin-top: 0.5rem; display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.7rem; line-height: 1.45; color: var(--muted); }

/* Forms */
label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 500; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 0.9rem; color: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.55rem; padding: 0.55rem 0.75rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(13,148,136,0.45); outline-offset: 1px; }
.field + .field, .form-grid + .field, .field + .form-grid, .form-grid + .form-grid { margin-top: 1rem; }
.form-grid { display: grid; gap: 1rem; }

/* Floating chat */
.floating { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.floating-panel { width: min(22rem, calc(100vw - 2.5rem)); box-shadow: var(--shadow-luxe); animation: headline-in 0.5s ease both; }
.floating-btn {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; border: 0;
  background: var(--navy); color: #fff; cursor: pointer; box-shadow: var(--shadow-luxe);
  transition: transform 0.2s ease; position: relative;
}
.floating-btn:hover { transform: scale(1.05); }
.floating-btn svg { width: 1.5rem; height: 1.5rem; }
.floating-btn .ping { position: absolute; top: 0.25rem; right: 0.25rem; width: 0.7rem; height: 0.7rem; border-radius: 999px; background: var(--teal-soft); }

/* Reviews */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 1rem; overflow: hidden; padding-bottom: 0.5rem; animation: marquee 32s linear infinite; scroll-snap-type: x mandatory; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; flex: 0 0 min(28rem, 100%); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft); min-width: 24rem; }
.review p.body { margin-top: 1rem; flex: 1; font-size: 0.88rem; line-height: 1.7; color: var(--muted); }
.review .who { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.1rem; }
.review .where { font-size: 0.75rem; color: var(--muted); }
.stars { display: flex; gap: 0.15rem; }
.stars svg { width: 1rem; height: 1rem; color: rgba(91,107,125,0.4); }
.stars svg.on { color: var(--teal); fill: var(--teal); }
.carousel-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.rating-input { display: flex; gap: 0.25rem; }
.rating-input button { background: none; border: 0; cursor: pointer; padding: 0; transition: transform 0.15s; }
.rating-input button:hover { transform: scale(1.1); }
.rating-input svg { width: 1.75rem; height: 1.75rem; color: rgba(91,107,125,0.4); }
.rating-input svg.on { color: var(--teal); fill: var(--teal); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(10,37,64,0.5); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 30rem; max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 1rem; padding: 1.5rem; text-align: left; box-shadow: var(--shadow-luxe); animation: headline-in 0.3s ease both; }
.modal-box h2 { font-size: 1.5rem; }
.modal-box .sub { margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.modal-close { position: absolute; }

/* Toasts */
.toasts { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 0.5rem; width: min(24rem, calc(100vw - 2rem)); }
.toast { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 0.7rem; padding: 0.8rem 1rem; box-shadow: var(--shadow-luxe); animation: headline-in 0.3s ease both; }
.toast.error { border-left-color: #dc2626; }
.toast strong { display: block; font-size: 0.9rem; }
.toast span { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }

.wa-float {
  position: fixed; right: 1rem; bottom: 5.2rem; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 16px 32px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(37, 211, 102, 0.32); }
.wa-float svg { width: 1.5rem; height: 1.5rem; }

/* Footer */
.site-footer { margin-top: 6rem; background: var(--navy); color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
.footer-grid a:hover { color: var(--teal-soft); }
.footer-title { font-family: var(--font-display); font-size: 1.5rem; }
.footer-lab { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.footer-list { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.87rem; color: rgba(255,255,255,0.8); }
.footer-line { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.6rem; font-size: 0.87rem; color: rgba(255,255,255,0.8); word-break: break-word; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-block: 1.25rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* Map */
.map { overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.map iframe { width: 100%; height: 18rem; border: 0; display: block; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal[data-visible="true"] { opacity: 1; transform: none; }
@keyframes headline-in {
  0% { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.animate-headline { animation: headline-in 0.7s cubic-bezier(0.16,1,0.3,1) both; }

/* Appointment hero */
.appt-hero { position: relative; overflow: hidden; }
.appt-hero img { height: 18rem; width: 100%; object-fit: cover; object-position: right; transform: scale(1.05); }
.appt-hero .veil { position: absolute; inset: 0; background: var(--gradient-hero); opacity: 0.96; }
.appt-hero .inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.appt-grid { display: grid; gap: 2.5rem; max-width: 76rem; margin-inline: auto; }
.detail-list { margin-top: 1.25rem; display: grid; gap: 1rem; font-size: 0.88rem; }
.detail-list li { display: flex; gap: 0.75rem; }
.detail-list svg { color: var(--teal); margin-top: 0.15rem; flex: none; }

@media (max-width: 860px) {
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .editorial-grid, .expertise-grid, .eera-split, .stats {
    grid-template-columns: 1fr;
  }
  .hero-actions, .feature-list, .carousel-nav, .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .portrait-card { margin-top: 1.5rem; }
  .carousel-track { animation: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .review { min-width: min(95vw, 24rem); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero p.lead { font-size: 0.95rem; }
  .page-head { padding-block: 3rem; }
  .stats { max-width: 100%; }
  .badges { justify-content: center; }
  .about-image-row { grid-template-columns: 1fr; }
  .review-count { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .credentials { grid-template-columns: 1fr; }
  .credentials .card { min-height: 10rem; }
  .header-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .brand { width: 100%; justify-content: space-between; }
  .desktop-nav { display: none; }
  .carousel { padding-inline: 0.5rem; }
  .carousel-track { gap: 0.9rem; }
}
