:root {
  /* Default colors – will be overridden by JS if sheet provides values */
  --primary-color: #0b7285;
  --secondary-color: #15aabf;
  --accent-color: #ffc078;
  --background-color: #ffffff;
  --text-color: #222222;
  --muted-bg: #f8f9fa;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#logo-container {
  flex-shrink: 0;
}

#site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#main-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

#main-nav a:hover {
  opacity: 0.8;
}

.btn-nav {
  background: var(--accent-color);
  color: #222;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero Section */
.section-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-heading {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent-color);
  color: #222;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--accent-color);
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.phone-icon:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.call-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

#hero-phone-number {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.hero-image-wrapper {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointment-time {
  text-align: center;
  background: white;
  color: var(--primary-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.appointment-time h3 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.appointment-time p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

/* Stats Section */
.section-stats {
  background: var(--muted-bg);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Section Headers */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--muted-bg);
}

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

.section-tag {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--primary-color);
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* About Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-text {
  margin: 0;
  font-weight: 500;
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-container {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.testimonial-card {
  min-width: 100%;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 2rem 0;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--muted-bg);
}

.testimonial-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.testimonial-info p {
  margin: 0.25rem 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

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

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
}

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

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--muted-bg);
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.blog-title a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 1rem 0;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 4rem 0 2rem;
}

.footer-newsletter {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #333;
}

.footer-newsletter h2 {
  color: white;
  font-size: 1.8rem;
  margin: 0 0 1.5rem 0;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

#newsletter-email {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.25rem;
  border: 2px solid #333;
  border-radius: 30px;
  background: #2a2a2a;
  color: white;
  font-size: 1rem;
}

#newsletter-email:focus {
  outline: none;
  border-color: var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links h3 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-social h3 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

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

.footer-map {
  min-height: 200px;
}

#footer-map-container iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Google Maps */
#google-maps-container iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  margin-top: 1rem;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-heading {
    font-size: 2rem;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  #main-nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  #newsletter-email {
    min-width: 100%;
  }
}
