/* ===== CSS Variables / Design Tokens ===== */
:root {
  /* Colors - FreshStep Brand */
  --primary: #0ea5e9;        /* Blue */
  --primary-dark: #0284c7;
  --secondary: #65a30d;      /* Green */
  --secondary-dark: #4d7c0f;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem;
  
  /* Borders & Shadows */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.15);
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo img {
  height: 3rem;
  width: auto;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
}

.mobile-menu {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
}

.mobile-menu a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem 1rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

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

/* Quote Form Card */
.quote-form-card {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

.quote-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.form-group textarea {
  resize: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--secondary);
}

.form-success svg {
  margin: 0 auto 1rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.form-success p {
  color: var(--gray-500);
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .quote-form-card {
    margin-left: auto;
    margin-right: 0;
  }
}

/* ===== Services Section ===== */
.services {
  padding: var(--section-padding) 0;
  background-color: var(--gray-50);
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

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

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

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

.service-image {
  height: 12rem;
  background-color: rgba(14,165,233,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(14,165,233,0.4);
  overflow: hidden;
}

.service-image.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image.has-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(14,165,233,0.1);
  color: var(--primary);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--gray-500);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* ===== Why Choose Us Section ===== */
.why-us {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.why-us-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.image-glow {
  position: absolute;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.image-glow.green {
  background-color: var(--secondary);
  bottom: -1.5rem;
  right: -1.5rem;
}

.image-glow.blue {
  background-color: var(--primary);
  top: -1.5rem;
  left: -1.5rem;
  opacity: 0.3;
}

.why-us-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

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

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(101,163,13,0.1);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
}

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--gray-500);
}

@media (min-width: 1024px) {
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-us-content h2 {
    font-size: 2.5rem;
  }
}

/* ===== Footer ===== */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-300);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0 2rem;
}

.footer-logo {
  background-color: var(--white);
  padding: 0.5rem;
  width: fit-content;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 2.5rem;
  width: auto;
}

.footer-brand p {
  max-width: 280px;
  color: var(--gray-400);
}

.footer h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-hours ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-700);
}

.footer-hours li.closed {
  color: var(--gray-500);
  border-bottom: none;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tags span {
  padding: 0.375rem 0.75rem;
  background-color: var(--gray-700);
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.area-tags span:hover {
  background-color: var(--gray-600);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
