/*
Theme Name: Valleyside Mobile Medicine
Theme URI: https://valleysidemobilemedicine.com
Description: SEO-friendly, accessible WordPress theme for Valleyside Mobile Medicine - providing mobile medical care
Version: 1.0
Author: Valleyside Mobile Medicine
Author URI: https://valleysidemobilemedicine.com
Text Domain: valleyside
Tags: medical, healthcare, accessible, responsive, seo-optimized
*/

:root {
  /* Professional Medical Color Palette */
  --primary-navy: #1B3A57;        /* Professional, trustworthy navy */
  --accent-teal: #2A9D8F;         /* Medical teal - healing and care */
  --soft-blue: #4A90A4;           /* Calming blue */
  --warm-coral: #E76F51;          /* Warm accent for CTAs */
  --light-mint: #E9F5F3;          /* Soft background */
  --pure-white: #FFFFFF;
  --soft-grey: #F4F6F7;
  --border-grey: #DDE2E5;
  --text-dark: #2C3E50;
  --text-medium: #546E7A;
  --text-light: #78909C;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--pure-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - SEO Optimized */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.875rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-medium);
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--soft-blue);
}

/* Accessibility - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-navy);
  color: var(--pure-white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--warm-coral);
  outline-offset: 2px;
}

/* Screen Reader Only Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--soft-grey);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--primary-navy);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Header */
.site-header {
  background: var(--pure-white);
  padding: 1.25rem 0;
  box-shadow: 0 2px 15px rgba(27, 58, 87, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.site-title a {
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title span {
  color: var(--accent-teal);
}

.site-description {
  display: none;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, var(--warm-coral), #D55F44);
  color: var(--pure-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231, 111, 81, 0.35);
  background: linear-gradient(135deg, #D55F44, var(--warm-coral));
}

.header-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.menu-icon span {
  display: block;
  height: 3px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2D5375 100%);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(42, 157, 143, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 144, 164, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  color: var(--accent-teal);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: var(--pure-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--warm-coral);
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(231, 111, 81, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: #D55F44;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(231, 111, 81, 0.4);
  color: var(--pure-white);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

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

.hero-image {
  animation: fadeInRight 0.8s ease;
  position: relative;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--pure-white);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease;
}

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

.section-subtitle {
  color: var(--accent-teal);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

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

.section-header p {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--light-mint);
  padding: 2.5rem;
  border-radius: 15px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(42, 157, 143, 0.15);
  border-color: var(--accent-teal);
}

.about-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-teal), var(--soft-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Services Section */
.services-section {
  padding: var(--spacing-xl) 0;
  background: var(--soft-grey);
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--pure-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(27, 58, 87, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-grey);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), var(--soft-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(27, 58, 87, 0.15);
  border-color: var(--accent-teal);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-navy);
}

.service-list {
  list-style: none;
  margin-top: 1.25rem;
}

.service-list li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-medium);
  line-height: 1.6;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--accent-teal), var(--soft-blue));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--pure-white);
  margin-bottom: 1.25rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
  background: var(--pure-white);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-details li {
  padding: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border-grey);
}

.contact-details li:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-teal), var(--soft-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--accent-teal);
}

.contact-details a:hover {
  color: var(--soft-blue);
}

/* Footer */
.site-footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-section h3 {
  color: var(--pure-white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-teal);
}

.footer-links {
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--warm-coral);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 3;
  }
  
  .main-navigation {
    display: none;
    width: 100%;
    order: 4;
  }
  
  .main-navigation.active {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--border-grey);
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-md) 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .site-header,
  .hero-buttons,
  .mobile-menu-toggle,
  .skip-link,
  .cta-section {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}
