/* ==========================================================================
   WAG MOORE DOG WALKING - STYLESHEET
   ========================================================================== */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Body and overall page styling with modern image format */
body {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #a4d7b0 url('../images/backgrounds/subtle-pattern.webp') repeat;
  background-attachment: fixed;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Main headings - using Nunito and Baloo 2 for friendly, approachable feel */
h1,
h2 {
  font-family: 'Nunito', 'Baloo 2', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Header subtitle styling - cursive font */
.subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  font-weight: 400;
  color: #4a4a4a;
  text-align: center;
  margin: 5px auto 0;
  font-style: normal;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Header section with logo */
header {
  text-align: center;
  padding: 0;
}

/* Logo styling - responsive and centered */
header img {
  width: 70%;
  max-width: 500px;
  height: auto;
  margin: 20px auto;
  display: block;
}

/* Header tagline styling */
.tagline {
  font-family: 'Nunito', 'Baloo 2', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2d5a3d;
  text-align: center;
  margin: 10px auto 20px;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Main content sections */
section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 20px;
  background: #f8f8f8 url('../images/backgrounds/subtle-pattern.webp') repeat;
  color: #777;
}

/* ==========================================================================
   NAVIGATION & LISTS
   ========================================================================== */

/* Service list styling */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

/* ==========================================================================
   CONTACT FORM STYLES
   ========================================================================== */

/* Main form container - glass morphism design */
.contact-form {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.03);
  margin-top: 25px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Form input fields and textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  box-sizing: border-box;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

/* Focus states for form fields */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 
    0 2px 8px rgba(76, 175, 80, 0.08),
    0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Placeholder text styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a0a0;
  font-weight: 400;
}

/* Textarea specific styling */
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Submit button styling */
.contact-form button {
  background: linear-gradient(135deg, #4CAF50, #5cbf60);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 180px;
  margin: 10px auto 0;
  display: block;
}

/* Button hover effects */
.contact-form button:hover {
  background: linear-gradient(135deg, #45a049, #52b358);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(76, 175, 80, 0.25);
}

/* Button active/pressed state */
.contact-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* ==========================================================================
   SOCIAL MEDIA COMPONENTS
   ========================================================================== */

/* Social media follow text section */
.follow-text {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
  font-weight: 500;
  color: #555;
  text-align: center;
}

/* Social media link styling */
.social-link {
  text-decoration: none;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #333;
  font-weight: 500;
}

/* Social link hover effects */
.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Social media icon alignment */
.social-link svg {
  vertical-align: middle;
  margin-right: 6px;
}

/* Header social media section */
.header-social {
  margin-top: 15px;
  text-align: center;
}

.header-social p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-social-link:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-social-link svg {
  margin-right: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   ACCESSIBILITY UTILITIES
   ========================================================================== */

/* Screen reader only content */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

/* Services grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.service-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
  font-family: 'Nunito', 'Baloo 2', Arial, sans-serif;
  color: #2d5a3d;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.service-item p:first-of-type {
  color: #4CAF50;
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 8px;
}

/* Features grid layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(76, 175, 80, 0.1);
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.feature-item h3 {
  font-family: 'Nunito', 'Baloo 2', Arial, sans-serif;
  color: #2d5a3d;
  margin-bottom: 12px;
  font-size: 1.1em;
}

/* Service areas list styling */
.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.service-areas li {
  background: rgba(76, 175, 80, 0.1);
  padding: 8px 15px;
  border-radius: 6px;
  color: #2d5a3d;
  font-weight: 500;
}

/* Enhanced typography for content sections */
section p {
  color: #333;
  margin-bottom: 16px;
  line-height: 1.7;
}

section p em {
  color: #666;
  font-style: italic;
}

section p strong {
  color: #2d5a3d;
  font-weight: 600;
}

/* ==========================================================================
   FEATURED DOG PHOTO SECTION
   ========================================================================== */

/* Featured dog section container */
.featured-dog-section {
  padding: 40px 20px;
  margin: 0 auto;
  background: transparent;
  border-bottom: 0px solid rgba(76, 175, 80, 0.1);
  max-width: 800px;
}

.featured-dog-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Featured dog photo styling */
.featured-dog-photo {
  position: relative;
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f8f8f8;
  /* Fallback for older browsers */
  height: 300px;
  /* Prevent layout shift with aspect ratio */
  aspect-ratio: 500/300;
}

/* Override height when aspect-ratio is supported */
@supports (aspect-ratio: 1) {
  .featured-dog-photo {
    height: auto;
  }
}

.featured-dog-photo:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.1);
}

.featured-dog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  display: block;
}

/* Photo overlay for captions */
.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 30px 20px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.featured-dog-photo:hover .photo-overlay {
  transform: translateY(0);
}

.dog-caption {
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Rotation indicators */
.rotation-indicators {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(76, 175, 80, 0.6);
  transform: scale(1.1);
}

.indicator.active {
  background: #4CAF50;
  border-color: rgba(76, 175, 80, 0.3);
  transform: scale(1.2);
}

/* Responsive design for featured dog section */
@media (max-width: 768px) {
  .featured-dog-container {
    padding: 30px 15px;
  }
  
  .featured-dog-photo {
    max-width: 100%;
    margin: 0 auto;
    /* Maintain aspect ratio on mobile */
    aspect-ratio: 500/300;
  }
  
  .featured-dog-photo img {
    height: 100%;
  }
  
  .dog-caption {
    font-size: 14px;
  }
  
  .rotation-indicators {
    margin-top: 15px;
  }
}

/* ==========================================================================
   SERVICE AREAS MAP STYLING
   ========================================================================== */

/* Service areas map container */
.service-areas-map-container {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  padding: 0 10px;
}

/* Service areas map styling */
.service-areas-map {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f8f8f8;
  border: 2px solid rgba(76, 175, 80, 0.1);
  /* Prevent layout shift with correct aspect ratio */
  aspect-ratio: 1200/607;
}

.service-areas-map:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive design for service areas map */
@media (max-width: 768px) {
  .service-areas-map-container {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  .service-areas-map {
    border-radius: 12px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .service-areas-map {
    border-radius: 10px;
  }
}
