/* ============================================
   Four Wings Cleaning Company - Main Stylesheet
   Professional Blue + White + Light Green Theme
   ============================================ */

/* CSS Variables */
:root {
  --primary-blue: #1e5f8a;
  --primary-blue-dark: #164a6e;
  --primary-blue-light: #2d7ab5;
  --white: #ffffff;
  --off-white: #f8fafb;
  --light-green: #7cb342;
  --light-green-dark: #558b2f;
  --light-green-light: #9ccc65;
  --text-dark: #2c3e50;
  --text-muted: #5a6c7d;
  --gray-light: #e8eef2;
  --shadow: 0 4px 20px rgba(30, 95, 138, 0.12);
  --shadow-hover: 0 8px 30px rgba(30, 95, 138, 0.18);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-blue-dark);
}

ul {
  list-style: none;
}

/* ============================================
   Sticky Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.logo span {
  color: var(--light-green);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--light-green);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Utility Classes & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--light-green);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--light-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 95, 138, 0.85) 0%, rgba(124, 179, 66, 0.75) 100%),
    url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  margin-top: 0;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-buttons .btn {
  min-width: 160px;
}

.hero-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.hero-buttons .btn-primary:hover {
  background: var(--off-white);
  color: var(--primary-blue-dark);
}

.hero-buttons .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-buttons .btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* ============================================
   Services Overview (Home)
   ============================================ */
.services-overview {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-choose {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-item i {
  font-size: 2.25rem;
  color: var(--light-green);
  margin-bottom: 1rem;
}

.why-item h3 {
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--light-green);
}

.testimonial-card p {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn-secondary {
  background: var(--light-green);
}

.cta-banner .btn-secondary:hover {
  background: var(--light-green-dark);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
}

.footer a:hover {
  color: var(--light-green-light);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-contact a[href^="tel"] {
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--light-green);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ============================================
   Page Headers (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  margin-top: 0;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.95;
  font-size: 1.05rem;
}

/* ============================================
   About Page
   ============================================ */
.about-story,
.about-mission,
.about-values,
.about-team,
.about-area {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.about-story h2,
.about-mission h2,
.about-values h2,
.about-team h2,
.about-area h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-values ul {
  margin-top: 1rem;
}

.about-values li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-values li i {
  color: var(--light-green);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.about-team p,
.about-area p {
  color: var(--text-muted);
}

/* ============================================
   Services Page - Detailed Cards
   ============================================ */
.services-detail {
  background: var(--off-white);
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-hover);
}

.service-detail-card .card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.service-detail-card .card-body {
  padding: 2rem;
}

.service-detail-card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-detail-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-detail-card ul {
  margin-bottom: 1.5rem;
}

.service-detail-card ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.service-detail-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--light-green);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-info p,
.contact-info a {
  margin-bottom: 0.75rem;
  display: block;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 138, 0.15);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #c62828;
}

.contact-form .error-message {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.business-hours {
  margin-top: 1.5rem;
}

.business-hours h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.business-hours p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Terms & Privacy (legal pages)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-content h2 {
  color: var(--primary-blue);
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.legal-content p,
.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
  list-style: disc;
}

/* ============================================
   Subscribe / Unsubscribe Pages
   ============================================ */
.subscribe-page,
.unsubscribe-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--off-white);
}

.subscribe-box,
.unsubscribe-box {
  background: var(--white);
  max-width: 440px;
  width: 100%;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.subscribe-box h1,
.unsubscribe-box h1 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.subscribe-box p,
.unsubscribe-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.subscribe-box input,
.unsubscribe-box input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.subscribe-box input:focus,
.unsubscribe-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.subscribe-box .btn,
.unsubscribe-box .btn {
  width: 100%;
  padding: 0.85rem;
}

.success-message,
.error-message-box {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  display: none;
}

.success-message {
  background: #e8f5e9;
  color: var(--light-green-dark);
  border: 1px solid var(--light-green);
}

.error-message-box {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.success-message.show,
.error-message-box.show {
  display: block;
}

/* ============================================
   Scroll animations (CSS only)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-card .card-image {
    height: 180px;
  }

  .hero {
    min-height: 75vh;
    padding: 5rem 1rem 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

@media (min-width: 769px) {
  .service-detail-card {
    grid-template-columns: 320px 1fr;
  }

  .service-detail-card:nth-child(even) .card-image {
    order: 2;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .subscribe-box,
  .unsubscribe-box {
    padding: 1.5rem;
  }
}
