/* style.css - Design System for Neuvera Rehab */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
  /* Light Theme */
  --bg-primary: #F8FAF9;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EEF2F0;
  --text-primary: #12211E;
  --text-secondary: #485E5A;
  --text-light: #7E9692;
  --primary: #0A4D44;
  --primary-hover: #073831;
  --primary-light: #E6F0EE;
  --accent: #E07A5F;
  --accent-hover: #C9664D;
  --accent-light: #FDF1EE;
  --border-color: #E0E7E5;
  --shadow-color: rgba(10, 77, 68, 0.06);
  --shadow-hover: rgba(10, 77, 68, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #070F0D;
  --bg-secondary: #0D1B18;
  --bg-tertiary: #142724;
  --text-primary: #E6ECEB;
  --text-secondary: #A3B5B2;
  --text-light: #738A86;
  --primary: #2DD4BF;
  --primary-hover: #14B8A6;
  --primary-light: #0B2B26;
  --accent: #FFA07A;
  --accent-hover: #FF8C69;
  --accent-light: #2D1E1A;
  --border-color: #1A302C;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* Typography utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(10, 77, 68, 0.1);
}

[data-theme="dark"] .badge {
  border: 1px solid rgba(45, 212, 191, 0.2);
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 10px 30px var(--shadow-color);
  background: rgba(248, 250, 249, 0.95);
}

[data-theme="dark"] header {
  background: rgba(7, 15, 13, 0.8);
}
[data-theme="dark"] header.scrolled {
  background: rgba(7, 15, 13, 0.95);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-secondary) !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 77, 68, 0.2);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF !important;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(224, 122, 95, 0.3);
}

/* Dark Mode Toggle */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  display: flex;
  align-items: center;
  min-height: 90vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-hover);
  aspect-ratio: 4/3;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-container:hover img {
  transform: scale(1.05);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

[data-theme="dark"] .floating-card {
  background: rgba(13, 27, 24, 0.85);
  border: 1px solid rgba(26, 48, 44, 0.5);
}

.floating-card-1 {
  bottom: 2rem;
  left: -2rem;
}

.floating-card-2 {
  top: 2rem;
  right: -2rem;
  animation-delay: 2s;
}

.floating-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.floating-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.floating-card-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

/* Services Grid Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-hover);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--bg-secondary);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Interactive Pain Area Selector Widget */
.pain-selector-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pain-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 480px;
}

.human-silhouette-svg {
  height: 100%;
  width: auto;
}

.pain-node {
  cursor: pointer;
  transition: var(--transition-smooth);
  fill: var(--text-light);
  opacity: 0.35;
}

.pain-node:hover, .pain-node.active {
  fill: var(--accent);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(224, 122, 95, 0.6));
}

.pain-selector-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pain-btns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pain-tab-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pain-tab-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--primary);
}

.pain-tab-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pain-tab-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.pain-tab-btn.active .pain-tab-btn-icon {
  background-color: var(--primary);
  color: var(--bg-secondary);
}

.pain-tab-btn-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.pain-tab-btn-text p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.pain-info-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1rem;
  transition: var(--transition-smooth);
}

.pain-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pain-info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pain-specs {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.spec-info h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spec-info p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
}

/* About / Story & Tech Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-hover);
  aspect-ratio: 4/5;
}

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

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  gap: 1rem;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.about-feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Testimonials / Slider Section */
.testimonials-section {
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.testimonial-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track-wrapper {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
  text-align: center;
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 3rem 3rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-light);
  line-height: 1;
  font-family: var(--font-heading);
  position: absolute;
  top: 1.5rem;
  left: 3rem;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  color: #FFD700;
  margin-bottom: 1.5rem;
}

.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.testimonial-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--primary);
}

.user-details h4 {
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.user-details p {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: normal;
  margin-bottom: 0;
  text-align: left;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--primary);
}

/* Appointment Booking Form Section */
.booking-section {
  background-color: var(--bg-secondary);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: flex-start;
}

.booking-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.booking-details p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.booking-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-info-text h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.booking-info-text p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-primary);
}

.booking-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 30px var(--shadow-color);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 77, 68, 0.1);
}

[data-theme="dark"] .form-control:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.booking-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Form Validation styling */
.error-msg {
  font-size: 0.75rem;
  color: #E07A5F;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: #E07A5F;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Custom Date Picker Styles */
.custom-date-picker {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 0.25rem;
}

.date-scroll-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch;
}

.date-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  min-width: 78px;
  text-align: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.date-card:hover {
  border-color: var(--primary);
  background-color: var(--bg-tertiary);
  transform: translateY(-1px);
}

.date-card.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px var(--shadow-hover);
  transform: translateY(-2px);
}

.date-card-day {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  transition: var(--transition-smooth);
}

.date-card-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
  transition: var(--transition-smooth);
}

.date-card-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.25rem;
  transition: var(--transition-smooth);
}

.date-card.selected .date-card-day,
.date-card.selected .date-card-month {
  color: rgba(255, 255, 255, 0.85);
}

.date-card.selected .date-card-num {
  color: #FFFFFF;
}

/* Red border style if the group is invalid */
.form-group.has-error .date-card {
  border-color: #E07A5F;
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 33, 30, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-modal {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .success-modal {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.success-modal h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.success-modal p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Contact / Location & Map Section */
.contact-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.map-container {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
  box-shadow: 0 15px 30px var(--shadow-color);
  position: relative;
}

.map-placeholder-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.map-mock-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(10, 77, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 77, 68, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
}

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

.map-mock-road {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

[data-theme="dark"] .map-mock-road {
  background-color: #172C28;
}

.road-1 { top: 30%; left: 0; width: 100%; height: 24px; transform: rotate(-5deg); }
.road-2 { top: 0; left: 60%; width: 28px; height: 100%; transform: rotate(10deg); }
.road-3 { top: 65%; left: 0; width: 100%; height: 35px; } /* Tonk Road */

.map-mock-river {
  position: absolute;
  top: 0;
  left: 20%;
  width: 40px;
  height: 100%;
  background-color: rgba(173, 216, 230, 0.3);
  transform: skewX(-15deg);
  border-radius: 20px;
  z-index: 2;
}

.map-mock-pin {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  top: 50%;
  left: 55%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 4px 10px rgba(0,0,0,0.25);
  animation: pulse-pin 1.5s infinite alternate;
}

.map-mock-pin::after {
  content: '';
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transform: rotate(45deg);
}

.map-mock-pin-shadow {
  width: 20px;
  height: 6px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 50%;
  position: absolute;
  top: calc(50% + 30px);
  left: calc(55% + 15px);
  z-index: 4;
  animation: pulse-shadow 1.5s infinite alternate;
}

@keyframes pulse-pin {
  0% { transform: translate(0, 0) rotate(-45deg); }
  100% { transform: translate(0, -8px) rotate(-45deg); }
}

@keyframes pulse-shadow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(0.7); opacity: 0.2; }
}

.map-pin-label {
  position: absolute;
  top: calc(50% - 45px);
  left: 55%;
  transform: translateX(-40%);
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 6;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.map-label-sub {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Footer Section */
footer {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] footer {
  border-top: 1px solid var(--bg-tertiary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h3 {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-newsletter h3 {
  margin-bottom: 1.5rem;
}

.footer-newsletter p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #FFFFFF;
}

.newsletter-form .form-control::placeholder {
  color: var(--text-light);
}

.newsletter-form .form-control:focus {
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Animations on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-grid, 
  .pain-grid, 
  .about-grid, 
  .booking-grid, 
  .contact-grid {
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 2rem;
  }
}

@media (max-width: 991px) {
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 7rem 0 4rem;
    min-height: auto;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .floating-card-1 {
    left: -1rem;
  }
  
  .floating-card-2 {
    right: -1rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pain-map-container {
    height: 400px;
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-container {
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 4/3;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .map-container {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile menu */
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 280px;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 30px var(--shadow-hover);
    flex-direction: column;
    align-items: flex-start;
    padding: 8rem 2.5rem 2rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-actions {
    margin-right: 2.5rem;
  }

  #header-cta-button {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .pain-btns-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-card {
    padding: 1.75rem;
    border-radius: 20px;
  }

  footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-brand .logo {
    margin-bottom: 0;
  }

  .footer-brand p,
  .footer-newsletter {
    display: none !important;
  }

  .footer-col h3 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .footer-col h3::after {
    bottom: -4px;
    width: 20px;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .form-group-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }

  .floating-card {
    padding: 0.75rem;
  }

  .floating-card-1 {
    left: 0;
    bottom: 1rem;
  }

  .floating-card-2 {
    right: 0;
    top: 1rem;
  }

  .pain-btns-grid {
    grid-template-columns: 1fr;
  }



  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
