/* Patrick's Cleaning Company - Main Stylesheet */

/* ============================================
   CSS Variables / Color Scheme
   ============================================ */
:root {
  /* Primary - Light Blue */
  --primary-50: #F0F9FF;
  --primary-100: #E0F2FE;
  --primary-200: #BAE6FD;
  --primary-300: #7DD3FC;
  --primary-400: #38BDF8;
  --primary-500: #0EA5E9;
  --primary-600: #0284C7;
  --primary-700: #0369A1;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-pill: 9999px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-600);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-800);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
}

a:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background-color: var(--gray-50);
}

.section--primary {
  background-color: var(--primary-50);
}

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

.section-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background-color: var(--primary-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--white);
  color: var(--primary-600);
  border: 2px solid var(--primary-500);
}

.btn--secondary:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

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

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

.nav__link {
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-500);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--primary-600);
}

.nav__cta {
  display: none;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

.nav-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color 0.2s;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s;
}

.nav-toggle__icon::before {
  top: -7px;
}

.nav-toggle__icon::after {
  top: 7px;
}

/* Mobile nav open state */
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 50%, var(--primary-100) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero__text {
  max-width: 540px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--success-light);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__title span {
  color: var(--primary-500);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

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

.hero__image {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-200) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 1;
}

.hero__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-600);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card__description {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.service-card__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-600);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  font-weight: 500;
  margin-top: 1rem;
}

.service-card__link:hover {
  gap: 0.75rem;
}

/* ============================================
   Why Choose Us / Value Props
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.value-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card__description {
  color: var(--gray-500);
}

/* ============================================
   How It Works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-200), var(--primary-400), var(--primary-200));
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border: 3px solid var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.step__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step__description {
  color: var(--gray-500);
}

/* ============================================
   Booking Section
   ============================================ */
.booking-section {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--white);
}

.booking-section .section-header h2 {
  color: var(--white);
}

.booking-section .section-header p {
  color: var(--primary-100);
}

.booking-widget {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  min-height: 600px;
  box-shadow: var(--shadow-lg);
}

.booking-widget__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
  text-align: center;
  color: var(--gray-500);
}

.booking-widget__placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.booking-fallback {
  text-align: center;
  padding: 2rem;
  color: var(--primary-100);
}

.booking-fallback a {
  color: var(--white);
  text-decoration: underline;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.testimonial-card__stars {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background-color: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-600);
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--gray-800);
}

.testimonial-card__location {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: var(--white);
  text-align: center;
}

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

.cta-section p {
  color: var(--primary-100);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-section .btn--secondary {
  background-color: var(--white);
  color: var(--primary-600);
  border-color: var(--white);
}

.cta-section .btn--secondary:hover {
  background-color: var(--primary-50);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer__description {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background-color: var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: background-color 0.2s, color 0.2s;
}

.footer__social a:hover {
  background-color: var(--primary-500);
  color: var(--white);
}

.footer__heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.75rem;
}

.footer__links a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary-400);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.footer__contact-icon {
  color: var(--primary-400);
  margin-top: 0.25rem;
}

.footer__bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer__legal {
  display: flex;
  gap: 2rem;
}

.footer__legal a {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer__legal a:hover {
  color: var(--primary-400);
}

/* ============================================
   About Page Specific
   ============================================ */
.about-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-50), var(--white));
  text-align: center;
}

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

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* ============================================
   Services Page Specific
   ============================================ */
.services-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-50), var(--white));
  text-align: center;
}

.pricing-note {
  background-color: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-top: 2rem;
}

.pricing-note__title {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.service-area {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.service-area__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.service-area__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}

.service-area__item::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-hero {
  padding: 10rem 0 3rem;
  background-color: var(--gray-50);
  text-align: center;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav__list.is-active {
    display: flex;
  }

  .nav__link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav__cta {
    display: inline-flex;
  }

  .hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }

  .hero__image img {
    height: 300px;
  }

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

  .steps::before {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .booking-widget {
    padding: 1rem;
  }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-gray { color: var(--gray-500); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .booking-section,
  .cta-section {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
