/* =====================
   CSS VARIABLES (THEME)
   ===================== */
@font-face {
  font-family: "TheSeasons";
  src: url("fonnts.com-The-Seasons-.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f8f4f0;
  --color-surface: #ffffff;
  --color-primary: #c89b6b;
  --color-primary-dark: #a07445;
  --color-accent: #f3d7b6;
  --color-text: #2b2620;
  --color-muted: #7a7165;

  --font-heading: "TheSeasons", "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* =====================
   RESET & BASE STYLES
   ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(243, 215, 182, 0.7), transparent 55%),
    radial-gradient(900px 600px at 85% 12%, rgba(200, 155, 107, 0.2), transparent 55%),
    linear-gradient(180deg, #fbf8f4 0%, var(--color-bg) 55%, #f6efe8 100%);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  word-wrap: break-word; /* Prevent text overflow */
}

@media (max-width: 767px) {
  body {
    font-size: 15px; /* Slightly smaller base font on mobile */
  }
}

body.nav-lock {
  overflow: hidden;
}

body.nav-lock::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

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

/* Prevent image overflow */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:where(a, button):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(200, 155, 107, 0.24);
  border-radius: 12px;
}

:where(a, button) {
  -webkit-tap-highlight-color: transparent;
}

.eyebrow {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

section,
footer[id] {
  scroll-margin-top: 90px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 155, 107, 0.18);
  border-left: 0;
  border-right: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  header {
    background: rgba(255, 255, 255, 0.95);
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 480px) {
  nav {
    padding: 0.65rem 0.75rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav-brand img {
  height: 40px;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

/* Mobile: center the brand while keeping hamburger on the right */
@media (max-width: 767px) {
  .nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    max-width: calc(100% - 120px); /* prevents overlap with hamburger */
    text-align: center;
  }

  .nav-brand-text {
    align-items: center;
  }

  .nav-brand img {
    height: 34px;
  }

  .nav-brand-title {
    font-size: 1.1rem;
  }
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav-brand-tagline {
  font-family: TheSeasons;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

@media (max-width: 420px) {
  .nav-brand-tagline {
    display: none;
  }
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: calc(100% + 10px);
  right: 1rem;
  width: min(320px, calc(100vw - 2rem));
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(200, 155, 107, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links a {
  font-weight: 500;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(243, 215, 182, 0.45);
}

.hamburger {
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.nav-open .nav-links {
  display: flex;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    position: static;
    width: auto;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(200, 155, 107, 0.18);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-links a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
  }

  .nav-links a:hover {
    background: rgba(243, 215, 182, 0.55);
  }
}

/* =====================
   SECTIONS - COMMON
   ===================== */
main section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  main section {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 480px) {
  main section {
    padding: 2rem 0.75rem;
  }
}

/* Blog posts should not inherit section padding */
main article.blog-post {
  padding: 3rem 1rem 4rem 1rem;
}

.section-lede {
  color: var(--color-muted);
  margin: -0.25rem 0 1.75rem 0;
  max-width: 70ch;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

@media (max-width: 767px) {
  .section-lede {
    margin: 0.25rem 0 1.5rem 0;
    text-align: center;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  h1 {
    line-height: 1.2;
  }
  
  h2 {
    line-height: 1.3;
  }
}

/* =====================
   HOME / HERO
   ===================== */
#home {
  display: grid;
  gap: 2rem;
}

.section--hero {
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}

@media (max-width: 767px) {
  .section--hero {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .section--hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(200, 155, 107, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Mobile: center hero CTA buttons */
@media (max-width: 767px) {
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
    max-width: 55ch;
  }

  .hero-content .eyebrow {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: min(360px, 100%);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  isolation: isolate;
  min-height: 44px; /* Touch target size */
  padding: 0.85rem 1.5rem;

  background: linear-gradient(
    135deg,
    rgba(200, 155, 107, 1) 0%,
    rgba(217, 177, 132, 1) 55%,
    rgba(160, 116, 69, 1) 100%
  );
  color: var(--color-surface);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(200, 155, 107, 0.32);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px 240px at 20% 15%,
    rgba(255, 255, 255, 0.5),
    transparent 60%
  );
  opacity: 0.75;
  mix-blend-mode: soft-light;
  z-index: -1;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(200, 155, 107, 0.38);
  filter: saturate(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 10px 22px rgba(200, 155, 107, 0.3);
  filter: brightness(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  min-height: 44px; /* Touch target size */
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(200, 155, 107, 0.75);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 200ms ease,
    background-color 200ms ease, border-color 200ms ease;
}

.btn-secondary:hover {
  background-color: rgba(243, 215, 182, 0.6);
  border-color: rgba(160, 116, 69, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  background-color: rgba(243, 215, 182, 0.75);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.hero-media {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-media--compact {
  gap: 0.75rem;
}

.hero-media--compact .hero-media-frame {
  height: clamp(220px, 34vw, 320px);
}

.hero-media--compact .hero-gallery img {
  height: 76px;
}

.hero-media--compact .hero-badge {
  font-size: 0.9rem;
}

.hero-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243, 215, 182, 0.9), rgba(200, 155, 107, 0.15));
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 155, 107, 0.18);
  position: relative;
  height: clamp(280px, 50vh, 520px);
  max-height: 520px;
}

@media (max-width: 767px) {
  .hero-media-frame {
    height: clamp(250px, 40vh, 400px);
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .hero-media-frame {
    height: clamp(220px, 35vh, 350px);
  }
}

.hero-media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.02);
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 520ms ease;
  will-change: opacity;
}

.hero-media-frame img.is-top {
  z-index: 1;
}

.hero-media-frame img.is-fade-in {
  opacity: 0;
}

.hero-media-frame img.is-fade-out {
  opacity: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 155, 107, 0.2);
  box-shadow: var(--shadow-sm);
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1;
}

.hero-badge i {
  font-size: 0.95rem;
  color: rgba(160, 116, 69, 0.95);
}

.hero-badge span {
  display: inline-block;
  line-height: 1.1;
}

.hero-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin;
}

@media (max-width: 767px) {
  .hero-gallery {
    gap: 0.5rem;
  }
}

.hero-gallery img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 107, 0.18);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease,
    opacity 180ms ease;
}

.hero-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.hero-gallery img.is-active {
  border-color: rgba(200, 155, 107, 0.75);
  box-shadow: 0 16px 36px rgba(200, 155, 107, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-frame img,
  .hero-gallery img,
  .btn-primary,
  .btn-secondary,
  .floating-btn {
    transition: none;
  }
}
@media (min-width: 768px) {
  #home {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* =====================
   TESTIMONIALS
   ===================== */
.reviews {
  margin-top: 2.5rem;
}

.reviews-stage {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 155, 107, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  padding: 1.15rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(140px, auto) auto;
  gap: 1rem;
}

.review-card {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.review-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(160, 116, 69, 1);
  background: rgba(243, 215, 182, 0.6);
  border: 1px solid rgba(200, 155, 107, 0.18);
  flex: 0 0 auto;
}

.review-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.review-source {
  color: var(--color-muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.review-stars {
  display: inline-flex;
  gap: 0.2rem;
  color: rgba(200, 155, 107, 1);
  flex: 0 0 auto;
}

.review-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.review-controls {
  grid-row: 2;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 155, 107, 0.12);
  margin-top: 0;
}

@media (max-width: 520px) {
  .review-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-text {
    font-size: 1.05rem;
  }
}

.review-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 107, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(160, 116, 69, 1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(200, 155, 107, 0.35);
}

.review-btn:active {
  transform: translateY(0) scale(0.98);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 107, 0.35);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, background-color 160ms ease, width 160ms ease;
}

.review-dot.is-active {
  background: rgba(200, 155, 107, 0.8);
  width: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .review-card,
  .review-btn,
  .review-dot {
    transition: none;
  }
}

/* =====================
   ABOUT SECTION
   ===================== */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.about-left {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.about-right {
  align-content: start;
}

.about-content {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

/* Doctor side card (image + details) */
.doctor-card {
  border-radius: 22px;
  border: 1px solid rgba(200, 155, 107, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
}

.doctor-card img {
  width: 180px;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: rgba(248, 244, 240, 1);
  border: 1px solid rgba(200, 155, 107, 0.14);
}

.doctor-tile {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  display: grid;
  gap: 0.6rem;
}

.doctor-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.doctor-tile-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.doctor-tile-sub {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.doctor-tile-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.doctor-tile-cred-card {
  border-radius: 18px;
  border: 1px solid rgba(200, 155, 107, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--color-muted);
}

.doctor-tile-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
}

.doctor-tile-row + .doctor-tile-row {
  border-top: 1px solid rgba(200, 155, 107, 0.12);
}

.doctor-tile-row i {
  color: rgba(160, 116, 69, 0.95);
}

@media (max-width: 520px) {
  .doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-card img {
    width: min(260px, 100%);
    height: 300px;
    margin: 0 auto;
  }

  .doctor-tile-head {
    justify-content: center;
  }
}

.media-caption {
  margin-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Doctor profile tile (image + details) */
.doctor-profile {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 107, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
}

.doctor-profile-media {
  background: rgba(248, 244, 240, 1);
}

/* Full portrait (no crop) */
.doctor-profile-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.doctor-profile-body {
  padding: 1rem 1.05rem 1.05rem 1.05rem;
  border-top: 1px solid rgba(200, 155, 107, 0.14);
  display: grid;
  gap: 0.75rem;
}

.doctor-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.doctor-profile-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.doctor-profile-sub {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.doctor-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(243, 215, 182, 0.7);
  border: 1px solid rgba(200, 155, 107, 0.18);
  color: rgba(120, 86, 52, 1);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.doctor-profile-cred {
  display: grid;
  gap: 0.5rem;
  color: var(--color-text);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 107, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.cred-item i {
  color: rgba(160, 116, 69, 0.95);
}

.doctor-profile-note {
  margin: 0;
  color: var(--color-muted);
}

.doctor-profile-cta {
  width: 100%;
}

@media (max-width: 520px) {
  .doctor-profile-body {
    padding: 0.9rem;
  }
  .doctor-profile-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.clinic-card img {
  width: 100%;
  height: clamp(180px, 26vw, 280px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.highlight {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 155, 107, 0.16);
  border-radius: 16px;
  padding: 0.75rem 0.8rem;
  box-shadow: var(--shadow-sm);
}

.highlight-kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.highlight-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.about-points {
  margin: 0.25rem 0 0.25rem 0;
  padding-left: 1.15rem;
}

.about-points li {
  margin: 0.45rem 0;
}

@media (max-width: 520px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

.slider {
  position: relative;
  background-color: var(--color-accent);
  height: 250px;
}

.slider-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

/* =====================
   SERVICES
   ===================== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .service-card {
    margin-bottom: 0.5rem;
  }
  
  .service-card .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

.service-card {
  background-color: var(--color-surface);
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 155, 107, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 220ms ease;
  display: grid;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

.service-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 107, 0.16);
  background: rgba(255, 255, 255, 0.75);
}

.service-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 520ms ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-desc {
  margin: 0;
  color: var(--color-muted);
}

.service-card ul {
  padding-left: 1.15rem;
  margin: 0.25rem 0 0.5rem 0;
}

.service-card .btn-primary {
  width: 100%;
}

/* =====================
   FORMS
   ===================== */
.appointment-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .appointment-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.form-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 155, 107, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

.form-card form {
  display: grid;
  gap: 1rem;
  max-width: none;
}

.input-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .input-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .form-card {
    padding: 1rem;
  }
  
  .form-card form {
    gap: 0.85rem;
  }
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.input-wrap {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  min-height: 44px; /* Touch target size */
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 155, 107, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition: box-shadow 200ms ease, border-color 200ms ease,
    transform 160ms ease;
}

@media (max-width: 480px) {
  .input-wrap {
    padding: 0.75rem 0.85rem;
  }
}

.input-wrap i {
  color: rgba(160, 116, 69, 0.9);
}

.input-control {
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: clamp(16px, 4vw, 1rem); /* Prevent zoom on iOS */
  min-width: 0;
  width: 100%;
}

@media (max-width: 480px) {
  .input-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

.input-wrap--textarea {
  align-items: start;
}

.input-wrap--textarea i {
  margin-top: 0.15rem;
}

.input-wrap textarea.input-control {
  min-height: 110px;
  resize: vertical;
}

.input-wrap:focus-within {
  border-color: rgba(200, 155, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 155, 107, 0.18), 0 16px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.input-control.field-error {
  outline: none;
}

.field-error {
  border: 2px solid #c43b3b !important;
}

.success-message {
  background: rgba(243, 215, 182, 0.7);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 107, 0.22);
}

/* Contact tiles beside the form */
.contact-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(200, 155, 107, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  position: sticky;
  top: 92px;
}

@media (max-width: 899px) {
  .contact-card {
    position: static;
  }
}

.contact-lede {
  color: var(--color-muted);
  margin: 0.25rem 0 1rem 0;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-tile {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  min-height: 44px; /* Touch target size */
  border-radius: 18px;
  border: 1px solid rgba(200, 155, 107, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 220ms ease,
    border-color 200ms ease;
}

.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(200, 155, 107, 0.35);
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(243, 215, 182, 0.6);
  color: rgba(160, 116, 69, 1);
}

.contact-label {
  font-weight: 600;
}

.contact-note {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-muted);
  margin-top: 1rem;
}

/* =====================
   BLOG
   ===================== */
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .blog-card {
    margin-bottom: 0.5rem;
  }
}

.blog-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 155, 107, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 180ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

.blog-media {
  height: 160px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 520ms ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.06);
}

.blog-body {
  padding: 1rem 1rem 1.1rem 1rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.blog-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-title {
  margin: 0;
}

.blog-excerpt {
  margin: 0;
  color: var(--color-muted);
}

.blog-link {
  margin-top: 0.35rem;
  font-weight: 700;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
  color: rgba(160, 116, 69, 1);
  transition: transform 180ms ease, color 180ms ease;
}

.blog-link:hover {
  transform: translateX(2px);
  color: rgba(120, 86, 52, 1);
}

/* =====================
   BLOG POST PAGES
   ===================== */
main {
  min-height: calc(100vh - 200px);
}

.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem 1rem;
}

.blog-post-header {
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 180ms ease, transform 180ms ease;
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--color-primary);
  transform: translateX(-2px);
}

.blog-back-link i {
  font-size: 0.85rem;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-post-category {
  color: var(--color-primary);
  font-weight: 600;
}

.blog-post-date {
  color: var(--color-muted);
}

.blog-post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.blog-post-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

.blog-post-hero {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.5);
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  transition: transform 520ms ease;
}

.blog-post-hero:hover img {
  transform: scale(1.02);
}

.blog-post-content {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1rem;
}

.blog-lead {
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 2.5rem 0;
  font-weight: 400;
}

.blog-post-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  color: var(--color-text);
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.blog-post-content h2:first-of-type {
  margin-top: 0;
}

.blog-post-content h2 + p {
  margin-top: 1.25rem;
}

.blog-post-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
  color: var(--color-text);
  line-height: 1.4;
}

.blog-post-content p {
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 1.25rem 0;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

.blog-post-content p strong {
  color: var(--color-text);
  font-weight: 600;
}

.blog-list {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.blog-list li {
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.blog-list li:last-child {
  margin-bottom: 0;
}

.blog-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.8;
}

.blog-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

.blog-post-cta {
  background: linear-gradient(135deg, rgba(243, 215, 182, 0.4), rgba(200, 155, 107, 0.15));
  border: 1px solid rgba(200, 155, 107, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0 0 0;
  text-align: center;
}

.blog-post-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
}

.blog-post-cta p {
  margin: 0 0 1.5rem 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.5vw, 1rem);
}

.blog-post-cta .btn-primary {
  margin: 0;
}

@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 2rem 5rem 2rem;
  }

  .blog-post-header {
    padding-top: 2rem;
  }

  .blog-post-hero {
    margin: 3rem 0;
  }

  .blog-post-hero img {
    max-height: 600px;
  }

  .blog-post-content {
    padding-top: 1.5rem;
  }

  .blog-post-meta {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-post {
    padding: 5rem 2rem 6rem 2rem;
  }

  .blog-post-content {
    font-size: 1.05rem;
  }
}

@media (max-width: 767px) {
  .blog-post {
    padding: 2rem 1rem 3rem 1rem;
  }

  .blog-post-header {
    padding-top: 0.5rem;
  }

  .blog-post-hero {
    margin: 2rem 0;
    border-radius: var(--radius-md);
  }

  .blog-post-meta {
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  .blog-post-title {
    margin-bottom: 0.75rem;
  }

  .blog-post-subtitle {
    font-size: 1rem;
  }

  .blog-lead {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .blog-post-content h2 {
    margin-top: 2rem;
  }

  .blog-post-content h3 {
    margin-top: 1.5rem;
  }

  .blog-post-cta {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .blog-back-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .blog-post {
    padding: 1.5rem 0.75rem 2.5rem 0.75rem;
  }
  
  .blog-post-content p {
    font-size: 0.95rem;
  }
  
  .blog-list li {
    font-size: 0.95rem;
    padding-left: 1.25rem;
  }
  
  .blog-post-hero img {
    max-height: 250px;
  }
  
  /* Ensure images don't overflow */
  .blog-post-content img {
    max-width: 100%;
    height: auto;
  }
}

/* =====================
   FOOTER & CONTACT
   ===================== */
.site-footer {
  padding: 3.5rem 1rem 1.5rem 1rem;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(243, 215, 182, 0.65), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(200, 155, 107, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 244, 240, 0.9) 100%);
  border-top: 1px solid rgba(200, 155, 107, 0.18);
}

@media (max-width: 767px) {
  .site-footer {
    padding: 2.5rem 1rem 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 0.75rem 1rem 0.75rem;
  }
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.footer-top > * {
  width: 100%;
  min-width: 0;
}

/* Tablet layout: Brand + Quick Links side-by-side, Contact full width */
@media (min-width: 640px) and (max-width: 899px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
  }
}

.footer-brand {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(200, 155, 107, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
}

.footer-brand-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

.footer-blurb {
  margin: 0.9rem 0 1rem 0;
  color: var(--color-muted);
  max-width: 62ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(200, 155, 107, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(160, 116, 69, 1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.footer-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(200, 155, 107, 0.35);
}

.footer-title {
  margin: 0 0 0.75rem 0;
}

.footer-links,
.footer-contact {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(200, 155, 107, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  margin: 0;
  max-width: none;
}

.footer-links .footer-title {
  grid-column: 1 / -1;
}

/* Make Quick Links feel balanced: use 2 columns when there’s room */
@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .footer-links a {
    padding: 0.6rem 0.65rem;
  }
}

.footer-links a {
  color: var(--color-text);
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  background: rgba(243, 215, 182, 0.55);
  transform: translateX(1px);
}

.footer-contact {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-contact-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--color-text);
}

.footer-contact-item i {
  color: rgba(160, 116, 69, 0.95);
}

.footer-link {
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(200, 155, 107, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.footer-link:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 155, 107, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.footer-map {
  margin-top: 0.5rem;
}

.footer-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.footer-map-title {
  font-weight: 800;
}

.footer-map-note {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 107, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.footer-map-frame iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
  max-width: 100%;
}

@media (max-width: 767px) {
  .footer-map-frame iframe {
    height: 200px;
  }
  
  .footer-map-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .footer-map-frame iframe {
    height: 180px;
  }
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 155, 107, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-bottom-sep {
    display: none;
  }
}

.footer-bottom-link {
  font-weight: 700;
  color: rgba(160, 116, 69, 1);
}

.footer-bottom-link:hover {
  color: rgba(120, 86, 52, 1);
}

.footer-bottom-sep {
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .footer-icon,
  .footer-links a,
  .footer-link,
  .floating-tip {
    transition: none;
  }
}

/* =====================
   FLOATING BUTTONS
   ===================== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 155, 107, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

@media (max-width: 767px) {
  .floating-actions {
    bottom: 15px;
    right: 15px;
    padding: 0.45rem;
  }
}

@media (max-width: 480px) {
  .floating-actions {
    bottom: 10px;
    right: 10px;
  }
  
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(200, 155, 107, 1) 0%,
    rgba(217, 177, 132, 1) 55%,
    rgba(160, 116, 69, 1) 100%
  );
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  position: relative;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.floating-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 155, 107, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-btn:hover .floating-tip,
.floating-btn:focus-visible .floating-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
  filter: saturate(1.02);
}

.floating-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  filter: brightness(0.98);
}


