/**
 * Macduke Onepage — Stylesheet
 * Mirrors the Alvi Nursing Home React design
 */

/* =================== VARIABLES =================== */
:root {
  --bg: hsl(214, 47%, 97%);
  --fg: hsl(211, 40%, 12%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(211, 79%, 42%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(174, 100%, 27%);
  --secondary-fg: hsl(0, 0%, 100%);
  --muted: hsl(214, 30%, 93%);
  --muted-fg: hsl(211, 15%, 45%);
  --emergency: hsl(1, 76%, 55%);
  --emergency-fg: hsl(0, 0%, 100%);
  --border: hsl(214, 25%, 90%);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow: 0 8px 40px hsla(211, 79%, 42%, 0.06);
  --shadow-lg: 0 16px 60px hsla(211, 79%, 42%, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =================== RESET =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }

/* =================== UTILITY =================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.desktop-only { display: none !important; }
@media (min-width: 768px) { .desktop-only { display: inline-flex !important; } }
.mobile-only { display: flex; }
@media (min-width: 768px) { .mobile-only { display: none !important; } }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Scroll Reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: var(--radius-lg); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.875rem; transition: all 0.3s ease; white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-emergency { background: var(--emergency); color: var(--emergency-fg); }
.btn-emergency:hover { opacity: 0.9; }
.btn-glass {
  background: hsla(0,0%,100%,0.15); color: var(--primary-fg);
  border: 1px solid hsla(0,0%,100%,0.25); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: hsla(0,0%,100%,0.25); }

/* =================== SOCIAL TOP BAR =================== */
.social-top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--primary); color: var(--primary-fg); height: 32px;
  transition: height 0.5s, opacity 0.5s; overflow: hidden;
}
.social-top-bar.hidden-bar { height: 0; opacity: 0; }
.social-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.social-bar-text { font-size: 0.75rem; display: none; }
@media (min-width: 640px) { .social-bar-text { display: block; } }
.social-icons { display: flex; gap: 1rem; margin: 0 auto; }
@media (min-width: 640px) { .social-icons { margin: 0; } }
.social-icons a { color: var(--primary-fg); opacity: 0.8; transition: opacity 0.2s; }
.social-icons a:hover { opacity: 1; }

/* =================== HEADER =================== */
.site-header {
  position: fixed; left: 0; right: 0; z-index: 90; top: 32px;
  transition: top 0.5s, background 0.5s, box-shadow 0.5s;
}
.site-header.scrolled {
  top: 0; background: hsla(0,0%,100%,0.85); backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px hsla(0,0%,0%,0.08); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .header-inner { height: 80px; } }

.site-brand { display: flex; flex-direction: column; }
.brand-primary { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--primary-fg); transition: color 0.3s; }
.brand-secondary { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: hsla(0,0%,100%,0.8); transition: color 0.3s; }
.brand-sub { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.05em; color: hsla(0,0%,100%,0.6); transition: color 0.3s; }
.scrolled .brand-primary { color: var(--primary); }
.scrolled .brand-secondary { color: var(--fg); }
.scrolled .brand-sub { color: var(--secondary); }

.desktop-nav { display: none; gap: 2rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }
.desktop-nav a { font-size: 0.875rem; font-weight: 500; color: hsla(0,0%,100%,0.9); transition: color 0.3s; }
.desktop-nav a:hover { color: var(--primary); }
.scrolled .desktop-nav a { color: var(--fg); }
.scrolled .desktop-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.mobile-toggle { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-fg); transition: all 0.3s; border-radius: 2px; }
.scrolled .mobile-toggle span { background: var(--fg); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Scroll progress */
.scroll-progress { height: 2px; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.15s; }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: hsla(0,0%,100%,0.97);
  backdrop-filter: blur(20px); padding: 5rem 1.5rem 2rem;
  transform: translateY(-100%); opacity: 0; transition: all 0.4s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--fg); }
.mobile-nav a:hover { color: var(--primary); }

/* =================== HERO =================== */
.hero-section {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); background-size: cover; background-position: center;
  padding: 6rem 1rem 4rem; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(211,79%,42%,0.9), hsla(211,79%,42%,0.75), hsla(174,100%,27%,0.6));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 9999px;
  background: hsla(0,0%,100%,0.15); border: 1px solid hsla(0,0%,100%,0.2);
  color: hsla(0,0%,100%,0.9); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-title { font-size: 2.5rem; font-weight: 700; color: var(--primary-fg); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.text-highlight { color: hsla(0,0%,100%,0.85); }
.hero-desc { font-size: 1.125rem; color: hsla(0,0%,100%,0.8); max-width: 560px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 1rem; }
.highlight-chip {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg); background: hsla(0,0%,100%,0.1);
  border: 1px solid hsla(0,0%,100%,0.15); color: var(--primary-fg); font-size: 0.875rem; font-weight: 500;
}

/* =================== TRUST BAR =================== */
.trust-bar { position: relative; z-index: 20; margin-top: -4rem; padding: 0 1rem; }
@media (min-width: 768px) { .trust-bar { padding: 0 2rem; } }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px);
  border: 1px solid hsla(214,25%,90%,0.5); border-radius: var(--radius-xl);
  padding: 2rem; box-shadow: var(--shadow); max-width: 1280px; margin: 0 auto;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); padding: 3rem; } }
.trust-item { text-align: center; }
.trust-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-lg); background: hsla(211,79%,42%,0.1); margin: 0 auto 0.75rem; }
.trust-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); display: inline; }
@media (min-width: 768px) { .trust-value { font-size: 2.25rem; } }
.trust-suffix { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); display: inline; }
.trust-label { font-size: 0.875rem; color: var(--muted-fg); font-weight: 500; margin-top: 0.25rem; }

/* =================== SECTIONS =================== */
.section { padding: 5rem 1rem; }
@media (min-width: 768px) { .section { padding: 7rem 2rem; } }
.section-alt { background: hsla(214,30%,93%,0.5); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.15em; }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--fg); margin-top: 0.75rem; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

/* =================== ABOUT =================== */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-image-wrap { position: relative; }
.about-img { width: 100%; height: 500px; object-fit: cover; object-position: top; border-radius: var(--radius-xl); box-shadow: 0 20px 60px hsla(0,0%,0%,0.15); }
.about-img-placeholder { width: 100%; height: 500px; border-radius: var(--radius-xl); background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.about-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, hsla(211,79%,42%,0.8), transparent); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.about-img-overlay h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary-fg); }
.about-img-overlay p { color: hsla(0,0%,100%,0.8); }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -0.5rem;
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px); border: 1px solid var(--border);
  padding: 1rem 1.5rem; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow); animation: float 3s ease-in-out infinite;
}
@media (min-width: 768px) { .about-badge { right: -2rem; } }
.about-badge strong { font-family: var(--font-heading); font-size: 0.875rem; color: var(--fg); }
.about-badge small { font-size: 0.75rem; color: var(--muted-fg); }
.badge-icon { font-size: 1.5rem; }
.about-content .section-eyebrow { display: block; margin-bottom: 0.5rem; }
.about-text { font-size: 1.125rem; color: var(--muted-fg); line-height: 1.7; margin-bottom: 2rem; }
.about-features { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); background: hsla(211,79%,42%,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.feature-item strong { font-family: var(--font-heading); font-size: 0.9375rem; color: var(--fg); }
.feature-item p { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =================== SERVICES =================== */
.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px); border: 1px solid hsla(214,25%,90%,0.5);
  padding: 1.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 2rem; width: 56px; height: 56px; border-radius: var(--radius-lg); background: hsla(211,79%,42%,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.5; }

/* =================== EMERGENCY BANNER =================== */
.emergency-banner {
  background: linear-gradient(135deg, var(--emergency), hsla(1,76%,55%,0.85));
  padding: 4rem 1rem; text-align: center; position: relative; overflow: hidden;
}
.emergency-inner { position: relative; z-index: 2; }
.emergency-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
  border-radius: 9999px; background: hsla(0,0%,100%,0.15); border: 1px solid hsla(0,0%,100%,0.2);
  font-size: 0.875rem; font-weight: 500; color: var(--emergency-fg); margin-bottom: 1.5rem;
}
.emergency-banner h2 { font-size: 1.875rem; font-weight: 700; color: var(--emergency-fg); margin-bottom: 1rem; }
@media (min-width: 768px) { .emergency-banner h2 { font-size: 3rem; } }
.emergency-banner p { font-size: 1.125rem; color: hsla(0,0%,100%,0.8); max-width: 560px; margin: 0 auto 2rem; }

/* =================== DOCTORS =================== */
.doctors-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .doctors-grid { grid-template-columns: repeat(3, 1fr); } }
.doctor-card {
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px); border: 1px solid hsla(214,25%,90%,0.5);
  padding: 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.doctor-card:hover { transform: scale(1.02); }
.doctor-icon { font-size: 2rem; width: 64px; height: 64px; border-radius: var(--radius-lg); background: hsla(211,79%,42%,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.doctor-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--fg); margin-bottom: 0.25rem; }
.doctor-qual { font-size: 0.875rem; font-weight: 500; color: var(--primary); margin-bottom: 0.75rem; }
.doctor-spec { font-size: 0.875rem; color: var(--muted-fg); }

/* =================== FACILITIES =================== */
.facilities-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .facilities-grid { grid-template-columns: repeat(3, 1fr); } }

.facility-card{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.5s, transform 0.5s;
}
.facility-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.facility-card img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}
.facility-card:hover img{ transform: scale(1.05); }

.facility-placeholder{
  width: 100%;
  height: 300px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.facility-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.5rem;
  z-index: 2;
  /* always visible text */
  pointer-events: none;
}

.facility-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, hsla(211,79%,42%,0.85) 0%, hsla(211,79%,42%,0.0) 65%);
}

.facility-overlay h3{
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.facility-overlay p{
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* =================== TESTIMONIALS =================== */
.testimonials-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px); border: 1px solid hsla(214,25%,90%,0.5);
  padding: 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.stars { margin-bottom: 1rem; font-size: 0.875rem; }
.testimonial-text { color: hsla(211,40%,12%,0.8); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: hsla(211,79%,42%,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.875rem;
}
.testimonial-author span { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; color: var(--fg); }

/* =================== PROCESS =================== */
.process-grid { display: grid; gap: 2rem; position: relative; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; }
.step-circle {
  width: 96px; height: 96px; border-radius: 50%; background: var(--card);
  border: 4px solid hsla(211,79%,42%,0.2); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; position: relative; box-shadow: var(--shadow);
}
.step-icon { font-size: 2.5rem; }
.step-num {
  position: absolute; top: -0.5rem; right: -0.5rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
}
.process-step h3 { font-size: 1.125rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--muted-fg); max-width: 220px; margin: 0 auto; }

/* =================== FAQ =================== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; font-family: var(--font-heading); font-weight: 600;
  font-size: 1rem; color: var(--fg); text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-toggle { font-size: 1.25rem; font-weight: 700; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 1000px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.6; }

/* =================== CONTACT =================== */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: hsla(0,0%,100%,0.7); backdrop-filter: blur(20px); border: 1px solid hsla(214,25%,90%,0.5);
  padding: 1.5rem; border-radius: var(--radius-xl); display: flex; gap: 1.25rem; box-shadow: var(--shadow);
}
.contact-icon { font-size: 1.75rem; width: 56px; height: 56px; border-radius: var(--radius-lg); background: hsla(211,79%,42%,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card strong { font-family: var(--font-heading); font-size: 1rem; color: var(--fg); display: block; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.875rem; color: var(--muted-fg); }
.contact-card a { color: var(--primary); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9375rem; background: var(--card); color: var(--fg);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-feedback { font-size: 0.875rem; margin-top: 0.5rem; font-weight: 500; }
.form-feedback.success { color: hsl(122, 46%, 33%); }
.form-feedback.error { color: var(--emergency); }
.form-feedback.sending { color: var(--muted-fg); }

/* Map */
.contact-map { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); min-height: 350px; }
.map-placeholder { width: 100%; height: 100%; min-height: 350px; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--muted-fg); }

/* =================== FOOTER =================== */
.site-footer { background: var(--fg); color: hsla(0,0%,100%,0.8); padding: 4rem 1rem 6rem; }
@media (min-width: 768px) { .site-footer { padding: 4rem 2rem 2rem; } }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: white; margin-bottom: 1rem; }
.footer-sub { font-size: 0.875rem; color: hsla(0,0%,100%,0.6); margin-bottom: 1rem; line-height: 1.5; }
.footer-phone a { color: hsla(0,0%,100%,0.8); transition: color 0.2s; }
.footer-phone a:hover { color: white; }
.site-footer h4 { font-family: var(--font-heading); font-weight: 600; color: white; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: hsla(0,0%,100%,0.6); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-address { font-size: 0.75rem; color: hsla(0,0%,100%,0.5); margin-top: 1.5rem; }
.footer-bottom { border-top: 1px solid hsla(0,0%,100%,0.1); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.75rem; color: hsla(0,0%,100%,0.4); }
.footer-disclaimer { font-size: 0.75rem; color: hsla(0,0%,100%,0.3); margin-top: 1rem; text-align: center; }

/* =================== FLOATING ELEMENTS =================== */
.floating-call {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 80;
  width: 64px; height: 64px; border-radius: 50%; background: var(--emergency); color: var(--emergency-fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px hsla(1,76%,55%,0.4); transition: transform 0.3s;
  animation: pulse-glow 2s ease-in-out infinite;
}
.floating-call:hover { transform: scale(1.1); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px hsla(1,76%,55%,0.4); }
  50% { box-shadow: 0 4px 40px hsla(1,76%,55%,0.6); }
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: hsla(0,0%,100%,0.9); backdrop-filter: blur(20px);
  border-top: 1px solid hsla(214,25%,90%,0.5); padding: 0.75rem 1rem;
  gap: 0.75rem; display: flex;
}
.mobile-bottom-bar .btn { flex: 1; font-size: 0.8rem; padding: 0.875rem 0.5rem; }

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: hsla(211,79%,42%,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsla(211,79%,42%,0.5); }
