/* =========================================================
   Dr. Vinod Methil — Consultant Diabetologist Portfolio
   Bitrix24-inspired design system
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Primary */
  --color-primary:       #0071BD;   /* Primary blue: CTAs, links, active nav */
  --color-primary-dark:  #38659F;   /* Hover state blue */
  --color-deep-navy:     #212529;   /* Headings, strong emphasis */

  /* Accent */
  --color-lime:          #BDF300;   /* Lime green: primary CTA */
  --color-lime-hover:    #A3C600;   /* Lime hover */
  --color-lime-active:   #8FA500;   /* Lime active */
  --color-cyan:          #00AEEF;   /* Cyan accent */
  --color-light-cyan:    #55D0E0;   /* Light cyan */
  --color-sky-blue:      #4393D0;   /* Sky blue */
  --color-medium-blue:   #349ED0;   /* Medium blue */

  /* Neutral */
  --color-charcoal:      #262626;   /* Primary text */
  --color-black:         #000000;   /* Maximum contrast */
  --color-off-black:     #333333;   /* Secondary text */
  --color-gray:          #7B8691;   /* Disabled, muted */
  --color-light-gray:    #EBEFF2;   /* Borders, dividers */
  --color-off-white:     #F8F9FA;   /* Secondary surfaces */
  --color-almost-white:  #212121;

  /* Semantic */
  --color-error:         #BB2244;
  --color-danger:        #DC3545;
  --color-warning:       #BDF300;

  /* Surfaces */
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #F8F9FA;

  /* Shadows (Bitrix24 elevation) */
  --shadow-l1: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
  --shadow-l2: 0px 8px 12px 0px rgba(0, 0, 0, 0.15);
  --shadow-l3: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
  --shadow-l4: 0px 16px 24px 0px rgba(0, 0, 0, 0.25);

  /* Border radius */
  --radius-xs: 4px;    /* Minimal inputs, subtle UI */
  --radius-sm: 8px;    /* Dropdowns, tooltips */
  --radius-md: 10px;   /* Feature cards, icon containers */
  --radius-lg: 12px;   /* Buttons, primary containers */
  --radius-xl: 20px;   /* Large cards, hero containers */
  --radius-round: 30px;/* Rounded inputs */
  --radius-full: 35px; /* Full-rounded inputs */

  --container-max: 1200px;
  --header-height: 83px;

  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-caption: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-smooth: 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-bg);
  line-height: 25px;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 400;
  font-size: 16px;
  line-height: 28.8px;
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--color-deep-navy);
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: 60px; line-height: 72px; }
h2 { font-size: 36px; line-height: 43px; font-weight: 600; }
h3 { font-size: 28px; line-height: 36px; }
h4 { font-size: 18px; line-height: 25px; font-weight: 700; }

p { margin: 0 0 1em; color: var(--color-charcoal); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* Scroll progress indicator */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-lime), var(--color-cyan));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  transition: transform 0.1s linear;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

/* Primary button (Lime Green) */
.btn-primary {
  background: var(--color-lime);
  color: var(--color-charcoal);
  border: none;
}
.btn-primary:hover {
  background: var(--color-lime-hover);
  color: var(--color-charcoal);
  transform: translateY(-2px);
}
.btn-primary:active {
  background: var(--color-lime-active);
}

/* Secondary button (outlined) */
.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: #F0F7FF;
  color: var(--color-primary);
  transform: translateY(-2px);
}
.btn-outline:active {
  background: #E0EEFF;
  border-color: var(--color-primary-dark);
}

.btn-block { width: 100%; }

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: #fff;
  z-index: 1000;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px 0px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base);
}
.header.scrolled {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--color-charcoal);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28.8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--color-primary);
  background: rgba(0, 113, 189, 0.05);
}
.nav-link.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ========== HERO ========== */
.hero {
  padding: calc(var(--header-height) + 80px) 0 180px;
  background:
    linear-gradient(135deg, rgba(0, 40, 80, 0.82) 0%, rgba(0, 80, 160, 0.75) 50%, rgba(0, 113, 189, 0.68) 100%),
    url('hand holding a blood droplet.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 243, 0, 0.08) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float-shape 18s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation: float-shape 14s ease-in-out infinite reverse;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -25px); }
  66% { transform: translate(-15px, 15px); }
}

/* Floating dots */
.hero-dots {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.hero-dots span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: twinkle var(--duration, 4s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(189, 243, 0, 0.9);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189, 243, 0, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(189, 243, 0, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 72px);
  line-height: 84px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  opacity: 0;
  animation: slide-up 0.8s 0.2s ease forwards;
}
.hero-title .accent {
  color: var(--color-lime);
  position: relative;
  white-space: nowrap;
}
.hero-title .accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0.05em;
  height: 0.35em;
  background: rgba(189, 243, 0, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-text {
  font-size: 18px;
  line-height: 28.8px;
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  opacity: 0;
  animation: slide-up 0.8s 0.4s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: slide-up 0.8s 0.6s ease forwards;
}

/* Hero secondary button override */
.hero-actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: slide-up 0.8s 0.8s ease forwards;
}
.stat {
  display: block;
}
.stat-number {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.plus {
  font-size: 1.25rem;
  color: var(--color-lime);
  font-weight: 700;
  vertical-align: super;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 400;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero image — kept for about section reuse */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: slide-up 1s 0.5s ease forwards;
}
.image-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: gentle-float 6s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Decorative ring */
.image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: calc(var(--radius-xl) + 4px);
  animation: ring-pulse 4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.image-wrap::after {
  content: '';
  position: absolute;
  inset: -22px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-xl) + 10px);
  animation: ring-pulse 6s 1s ease-in-out infinite;
}

.doctor-photo {
  width: 100%; height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l3);
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.image-wrap .doctor-photo-overlay {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 113, 189, 0.05) 0%, rgba(189, 243, 0, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-l2);
  font-size: 14px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-card strong {
  display: block;
  color: var(--color-deep-navy);
  font-size: 14px;
  font-weight: 600;
}
.floating-card small {
  color: var(--color-gray);
  font-size: 12px;
}
.card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(0, 113, 189, 0.08);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon.green {
  background: rgba(189, 243, 0, 0.15);
  color: var(--color-lime);
}
.card-cert { top: 38%; left: -8%; }
.card-rating { bottom: 8%; right: -8%; animation-delay: 1.5s; }

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 40px; display: block; }

/* ========== SECTIONS ========== */
.section { padding: 48px 0; }
.section-alt { background: var(--color-off-white); }

.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-header::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--color-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(0, 113, 189, 0.08);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 36px);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 18px;
  line-height: 28.8px;
  color: var(--color-gray);
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  font-size: 18px;
  line-height: 28.8px;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  float: left;
  line-height: 1;
  margin-right: 8px;
  margin-top: 4px;
}

.about-highlights {
  margin: 24px 0 32px;
  display: grid;
  gap: 16px;
}
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 16px;
  line-height: 25px;
  transition: transform var(--transition-base);
}
.about-highlights li:hover { transform: translateX(6px); }

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.about-highlights li:hover .check {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0, 113, 189, 0.3);
}

/* About photo */
.about-photo-block {
  margin-top: 32px;
  text-align: center;
}
.about-photo {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l2);
  border: 3px solid var(--color-light-gray);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.about-photo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-l3);
}
.about-photo-caption {
  margin-top: 12px;
}
.about-photo-caption strong {
  display: block;
  font-size: 16px;
  color: var(--color-deep-navy);
  font-weight: 600;
}
.about-photo-caption span {
  font-size: 13px;
  color: var(--color-gray);
  font-family: var(--font-caption);
}

/* About cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
  border: none;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l2);
}

.info-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}
.info-card:hover .info-icon { transform: scale(1.1) rotate(-5deg); }

.info-card h3 {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 8px;
  font-weight: 700;
}
.info-card p {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  color: var(--color-off-black);
}

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

.service-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
}
.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: 16px; right: 20px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 113, 189, 0.06);
  line-height: 1;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l2);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h3 {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 8px;
  font-weight: 700;
}
.service-card p {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  color: var(--color-off-black);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-cyan), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem; top: 6px;
  width: 20px; height: 20px;
  background: #fff;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 113, 189, 0.1);
  transition: transform var(--transition-base);
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(0, 113, 189, 0.15);
}

.timeline-item:first-child .timeline-dot::after {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
}
.timeline-content:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-l2);
}

.timeline-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.timeline-content h3 {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 4px;
  font-weight: 700;
}
.timeline-org {
  color: var(--color-charcoal);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}
.timeline-content p:last-child {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  color: var(--color-off-black);
}

/* ========== PUBLICATIONS ========== */
.publications-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.publication-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--color-primary);
}
.publication-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-l2);
}

.pub-meta { margin-bottom: 8px; }
.pub-venue {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0, 113, 189, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
}
.pub-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  color: var(--color-charcoal);
  margin: 0;
}

/* ========== CARE TIPS ========== */
.care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.care-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
}
.care-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}
.care-card:hover::before { transform: scaleX(1); }
.care-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l2);
}

.care-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}
.care-card:hover .care-icon { transform: scale(1.1) rotate(-5deg); }

.care-card h3 {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 8px;
  font-weight: 700;
}
.care-card p {
  font-size: 16px;
  line-height: 25px;
  margin: 0 0 12px;
  color: var(--color-off-black);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info { display: grid; gap: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  transition: all var(--transition-smooth);
}
.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-l2);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.contact-item:hover .contact-icon { transform: scale(1.1); }

.contact-item h4 {
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-item p {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  color: var(--color-off-black);
}

.contact-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-l1);
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-lime), var(--color-primary), var(--color-cyan));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-field label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 8px;
  display: block;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-round);
  background: var(--color-off-white);
  color: var(--color-charcoal);
  transition: all var(--transition-base);
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-gray);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 189, 0.2);
  background: #fff;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: var(--radius-lg);
}
.form-field input.invalid,
.form-field textarea.invalid {
  border: 1px solid var(--color-error);
  box-shadow: 0 0 0 3px rgba(187, 34, 68, 0.2);
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  min-height: 1.5em;
}
.form-status.success { color: #10B981; }
.form-status.error { color: var(--color-error); }

/* ========== FOOTER ========== */
.footer {
  background: var(--color-deep-navy);
  color: var(--color-gray);
  padding: 48px 0 24px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan), var(--color-lime));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.footer-logo { color: #fff; margin-bottom: 12px; }
.footer-logo .logo-mark {
  background: var(--color-primary);
}
.footer-tagline {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 25px;
}

.footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
}
.footer h5::after {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: var(--color-primary);
  margin-top: 8px;
  border-radius: 2px;
}

.footer ul { display: grid; gap: 8px; }
.footer ul li {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 25px;
}
.footer a { color: var(--color-gray); }
.footer a:hover { color: #fff; }

.social { display: flex; gap: 12px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gray);
  transition: all var(--transition-base);
}
.social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 14px;
  color: var(--color-gray);
  position: relative;
  z-index: 1;
}
.footer-bottom p { margin: 0; color: inherit; }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-l3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition-smooth);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.05);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-30px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { transform: translateX(30px); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { transform: scale(0.92); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* ========== RESPONSIVE ========== */
@media (min-width: 600px) {
  .container { padding: 0 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .about-photo { width: 220px; height: 220px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 24px) 24px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-l3);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-link {
    display: block; width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
  .nav-link.active { border-bottom: none; border-left: 3px solid var(--color-primary); }
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 12px 24px !important;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 48px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .about-cards { grid-template-columns: 1fr; }
  .card-cert, .card-rating { transform: scale(0.85); }
  .card-cert { left: 0; }
  .card-rating { right: 0; }
  .service-card, .care-card, .contact-form { padding: 20px; }
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 34px; }
  .btn { font-size: 16px; padding: 10px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none;
  }
}
