/*
 * Utah Basement Finishing - Main Stylesheet
 * Premium custom theme styles
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* CSS Custom Properties - Brand System */
:root {
  /* Brand Colors */
  --primary-orange: #FF9029;
  --primary-orange-hover: #FFB875;
  --accent-green: #33843F;
  --text-dark: #333333;
  --pure-white: #FFFFFF;
  --dark-section: #1a1a1a;
  --dark-section-alt: #222222;
  
  /* Extended Palette */
  --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;
  
  /* Utah-inspired Accent Colors */
  --utah-sky: #87CEEB;
  --utah-stone: #8B7D6B;
  --utah-sunset: #FF7F50;
  
  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

/* 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: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--pure-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
}

h6 {
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-lg);
  color: var(--gray-700);
  font-size: 1.125rem;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.6;
}

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

/* Links */
a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Container System */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--primary-orange-hover);
  border-color: var(--primary-orange-hover);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: #2a6f33;
  border-color: #2a6f33;
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary-orange);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-md);
}

/* .header-top { */
/*   background-color: var(--dark-section); */
/*   color: var(--pure-white); */
/*   padding: var(--space-xs) 0; */
/*   font-size: 0.875rem; */
/* } */

/* .header-top .container { */
/*   display: flex; */
/*   justify-content: space-between; */
/*   align-items: center; */
/* } */

.header-contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.phone-number {
  font-weight: 600;
  color: var(--primary-orange);
}

.business-hours {
  color: var(--gray-300);
}

.header-main {
  padding: var(--space-md) 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--primary-orange);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-navigation a {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.main-navigation a:hover {
  color: var(--primary-orange);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-orange);
  transition: width var(--transition-normal);
}

.main-navigation a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--pure-white);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-content {
  padding: var(--space-2xl) var(--space-lg);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: var(--space-lg);
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Navigation Contact Section */
.mobile-contact {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

.mobile-phone:hover {
  color: var(--accent-green);
}

.mobile-contact .btn {
  width: 100%;
  margin-bottom: var(--space-lg);
}

.mobile-hours {
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.mobile-hours strong {
  color: var(--text-dark);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-section) 0%, var(--dark-section-alt) 100%);
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 144, 41, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(51, 132, 63, 0.1) 0%, transparent 50%);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  color: var(--pure-white);
  margin-bottom: var(--space-lg);
  font-size: clamp(3rem, 6vw, 5rem);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--gray-300);
  margin-bottom: var(--space-2xl);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.hero-phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Trust Bar */
.trust-bar {
  background-color: var(--gray-50);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.trust-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  line-height: 1;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Spacing */
.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Component */
.card {
  background-color: var(--pure-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-xl);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
  color: var(--pure-white);
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--pure-white);
  margin-bottom: var(--space-lg);
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

/* Footer */
.site-footer {
  background-color: var(--dark-section);
  color: var(--pure-white);
  padding: var(--space-4xl) 0 var(--space-xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--pure-white);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-orange);
}

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

.footer-copyright {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer-badge {
  background-color: var(--gray-700);
  color: var(--pure-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Header - Clean layout with just logo + hamburger */
  .header-cta .phone-cta,
  .header-cta .btn {
    display: none; /* Hide phone and quote button from header on mobile */
  }
  
  .site-logo {
    font-size: 1.2rem; /* Smaller logo on mobile */
  }
  
  .header-content {
    justify-content: space-between; /* Logo left, hamburger right */
  }
  
  /* Mobile Hero Adjustments */
  .hero-section {
    min-height: 70vh; /* Reduce from 80vh to 70vh on mobile */
    padding: var(--space-3xl) 0 var(--space-2xl) 0; /* Less padding below */
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem); /* Smaller hero title on mobile */
    margin-bottom: var(--space-md);
  }
  
  .hero-subtitle {
    font-size: 1rem; /* Smaller subtitle */
    margin-bottom: var(--space-lg);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%; /* Full-width buttons on mobile */
    justify-content: center;
  }
  
  /* Section Spacing */
  .section {
    padding: var(--space-3xl) 0; /* Reduced from --space-5xl */
  }
  
  /* Card Grid Responsive - Services: 2x3 on tablet, 1 column on mobile */
  .services-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
  
  /* General Grid Adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--space-lg);
  }
  
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  /* Ensure single column layout on small mobile */
  .services-grid.grid-3,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr; /* Force single column */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem; /* At least 1rem padding on sides */
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Even tighter spacing on very small screens */
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero-section {
    padding: var(--space-2xl) 0 var(--space-xl) 0;
  }
}

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

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .mobile-nav,
  .cta-banner,
  .site-footer {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
}
/* Service Card Images */
.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card .service-icon {
    display: none;
}

.service-card {
    padding: 0 !important;
    overflow: hidden;
}

.service-card .service-content {
    padding: var(--space-xl);
}

/* Featured Project Cards */
.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-card {
    overflow: hidden;
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: var(--space-xl);
    color: white;
}

/* ============================================
