/* ============================================
   FARMACIA MARTA GRANDA LÓPEZ
   Styles — Emerald + Cream | Vibrant Modern
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --emerald-900: #022c22;
  --emerald-800: #042f2e;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --cream-50:  #fefdf8;
  --cream-100: #fefce8;
  --cream-200: #fef9c3;
  --cream-300: #fde68a;
  --cream-400: #fcd34d;
  --cream-500: #f59e0b;

  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --white: #ffffff;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream-50);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- DECORATIVE BACKGROUND SHAPES --- */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.06;
}

.shape--circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--emerald-600);
  top: -200px;
  right: -150px;
}

.shape--circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--emerald-400);
  bottom: 10%;
  left: -100px;
}

.shape--rect-1 {
  width: 200px;
  height: 200px;
  background: var(--cream-400);
  top: 40%;
  right: 5%;
  border-radius: var(--radius-lg);
  transform: rotate(30deg);
  opacity: 0.08;
}

.shape--rect-2 {
  width: 120px;
  height: 320px;
  background: var(--emerald-500);
  bottom: 5%;
  right: 15%;
  border-radius: var(--radius-xl);
  transform: rotate(-15deg);
}

.shape--triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 170px solid var(--emerald-300);
  top: 60%;
  left: 8%;
  opacity: 0.05;
}

.shape--dot {
  width: 16px;
  height: 16px;
  background: var(--emerald-500);
  border-radius: 50%;
  top: 30%;
  left: 3%;
  opacity: 0.15;
  box-shadow:
    40px 60px 0 var(--emerald-400),
    80px 20px 0 var(--cream-400),
    -30px 120px 0 var(--emerald-300),
    60px 180px 0 var(--cream-300);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(4, 120, 87, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--emerald-700);
}

.logo--light {
  color: var(--white);
}

.logo-icon {
  color: var(--emerald-600);
}

.logo--light .logo-icon {
  color: var(--emerald-300);
}

/* --- NAV --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.nav-link--cta {
  background: var(--emerald-700);
  color: var(--white) !important;
}

.nav-link--cta:hover {
  background: var(--emerald-600);
  color: var(--white) !important;
}

/* --- MENU TOGGLE --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--emerald-700);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active .menu-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(254, 253, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu-link:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.mobile-menu-link--cta {
  background: var(--emerald-700);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4, 120, 87, 0.85) 0%, rgba(4, 47, 46, 0.95) 60%, rgba(2, 44, 34, 1) 100%);
  z-index: 1;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  opacity: 0.15;
}

.hero-shape--circle {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 2px solid rgba(110, 231, 183, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: hero-rotate 30s linear infinite;
}

.hero-shape--square {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(253, 230, 138, 0.3);
  top: 10%;
  right: 10%;
  border-radius: var(--radius-lg);
  transform: rotate(45deg);
  animation: hero-float 6s ease-in-out infinite;
}

.hero-shape--ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(110, 231, 183, 0.2);
  bottom: 20%;
  left: 8%;
  animation: hero-float 8s ease-in-out infinite reverse;
}

.hero-shape--dots {
  width: 8px;
  height: 8px;
  background: var(--cream-300);
  border-radius: 50%;
  top: 25%;
  left: 15%;
  box-shadow:
    30px 40px 0 var(--cream-300),
    60px 10px 0 var(--emerald-300),
    -40px 80px 0 var(--cream-300),
    20px 120px 0 var(--emerald-300);
  animation: hero-twinkle 4s ease-in-out infinite;
}

@keyframes hero-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes hero-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--emerald-200);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-300) 0%, var(--cream-300) 50%, var(--emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-accent {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--emerald-200);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--white);
  color: var(--emerald-700);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--cream-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* --- SECTION COMMON --- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald-600);
  background: var(--emerald-100);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- SERVICES --- */
.services {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--cream-50);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(4, 120, 87, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon--emerald {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.service-icon--cream {
  background: var(--cream-200);
  color: var(--cream-500);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- ABOUT --- */
.about {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.about-floating-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.floating-card-icon {
  width: 48px;
  height: 48px;
  background: var(--emerald-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

.floating-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-700);
  line-height: 1;
}

.floating-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.value-icon {
  width: 36px;
  height: 36px;
  background: var(--emerald-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* --- HOURS --- */
.hours {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
  overflow: hidden;
}

.hours::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hours-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hours-content .section-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-300);
}

.hours-content .section-title {
  color: var(--white);
}

.hours-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 40px;
}

.schedule-table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-day {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.schedule-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.schedule-status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status--open {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
}

.status--closed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.schedule-row--closed .schedule-day,
.schedule-row--closed .schedule-time {
  color: rgba(255, 255, 255, 0.4);
}

.hours-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.hours-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hours-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 2px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hours-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.15);
  animation: hero-rotate 20s linear infinite;
}

.hours-center {
  color: var(--emerald-400);
}

.hours-dots {
  position: absolute;
  inset: 0;
}

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
  opacity: 0.5;
}

.dot--1 { top: 10%; left: 30%; animation: hero-twinkle 3s ease-in-out infinite; }
.dot--2 { top: 30%; right: 5%; animation: hero-twinkle 3s ease-in-out 0.5s infinite; }
.dot--3 { bottom: 20%; left: 10%; animation: hero-twinkle 3s ease-in-out 1s infinite; }
.dot--4 { bottom: 5%; right: 20%; animation: hero-twinkle 3s ease-in-out 1.5s infinite; }

/* --- CONTACT --- */
.contact {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(4, 120, 87, 0.06);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-200);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--emerald-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

.contact-item-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- CONTACT FORM --- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(4, 120, 87, 0.06);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-300), var(--cream-400));
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--emerald-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--emerald-600);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* --- MAP --- */
.map-section {
  position: relative;
  z-index: 1;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-pin svg {
  color: var(--emerald-600);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.map-pin-label {
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  margin-top: 4px;
  white-space: nowrap;
}

.map-section iframe {
  display: block;
  width: 100%;
  filter: saturate(0.8) contrast(1.05);
}

/* --- FOOTER --- */
.footer {
  background: var(--emerald-900);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-contact svg {
  color: var(--emerald-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--emerald-400);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    gap: 48px;
  }

  .hours-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hours-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .hero {
    padding: 100px 20px 80px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-floating-card {
    bottom: -16px;
    right: 16px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .schedule-row {
    grid-template-columns: 90px 1fr auto;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .service-card {
    padding: 28px 22px;
  }
}
