/* Gulf Coast Commercial Cleaning - Professional Styles */
/* Wave 1: Foundation Styles */

/* ========================================
   CSS VARIABLES - Brand Colors & Typography
   ======================================== */

:root {
  /* PRIMARY - Clean & Professional */
  --primary: #1a4d7a;      /* Deep ocean blue */
  --accent: #ff9500;        /* Vibrant orange */

  /* SECONDARY */
  --neutral-dark: #2c3e50;  /* Charcoal */
  --neutral-mid: #7f8c8d;   /* Steel gray */
  --neutral-light: #ecf0f1; /* Light gray */
  --white: #ffffff;

  /* STATUS COLORS */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;

  /* TYPOGRAPHY */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* TEXT SIZES */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* SPACING */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* LAYOUT */
  --container-max: 1200px;
  --header-height: 80px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--neutral-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background-color: var(--neutral-light);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.sticky-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  min-height: var(--header-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: var(--neutral-light);
  color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--neutral-dark);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: var(--neutral-dark);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-md);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: var(--space-sm);
}

.mobile-nav a {
  display: block;
  padding: var(--space-sm);
  color: var(--neutral-dark);
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background-color: var(--neutral-light);
  color: var(--primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d6fa1 100%);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: var(--text-4xl);
}

.hero p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */

.cta-button,
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 200px;
  font-size: var(--text-base);
}

.cta-button,
.cta-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.cta-button:hover,
.cta-primary:hover {
  background-color: #e68600;
  border-color: #e68600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

.cta-header {
  background-color: var(--accent);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.cta-header:hover {
  background-color: #e68600;
  color: var(--white);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.location-card {
  background-color: var(--neutral-light);
  padding: var(--space-md);
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.location-card h3 {
  color: var(--primary);
  font-size: var(--text-xl);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-nap {
  margin-top: var(--space-sm);
}

.footer-nap p {
  margin-bottom: var(--space-xs);
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
  max-width: 600px;
  margin: var(--space-lg) auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--neutral-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--neutral-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.bg-light {
  background-color: var(--neutral-light);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .mobile-nav {
    display: none;
  }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: var(--space-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
