/* ==========================================================================
   Ammons Mechanical LLC - Custom Styles
   Mobile-First Design with PRD Compliance
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Colors from PRD)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-charcoal: #222222;
  --color-white: #FFFFFF;
  --color-red: #D2232A;
  --color-blue: #0056B3;
  --color-light-grey: #F8F8F8;
  
  /* Functional Colors */
  --color-text-primary: #222222;
  --color-text-secondary: #555555;
  --color-text-muted: #777777;
  --color-border: #E0E0E0;
  --color-overlay: rgba(34, 34, 34, 0.7);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prefers Reduced Motion - disable animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

/* Desktop Typography */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-3xl) 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-red);
  margin: var(--spacing-sm) auto 0;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Scroll Progress Bar - MICRO-INTERACTION
   A thin bar showing page scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Buttons - MICRO-INTERACTION: Ripple effect on click
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Primary CTA Button - Brand Red background */
.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
}

/* MICRO-INTERACTION: Button hover - scale and color invert */
.btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-red);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

/* Secondary Button */
.btn-secondary {
  background-color: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
  transform: scale(1.02);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* MICRO-INTERACTION: Border ripple effect on button click */
.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-mobile {
  display: block;
}

.logo-desktop {
  display: none;
}

@media (min-width: 768px) {
  .logo img {
    height: 60px;
  }
  
  .logo-mobile {
    display: none;
  }
  
  .logo-desktop {
    display: block;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-charcoal);
  padding: var(--spacing-xs) 0;
  position: relative;
}

/* MICRO-INTERACTION: Nav link underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--transition-base);
}

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

.nav-link:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

/* Phone Link in Header */
.header-phone {
  display: none;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-red);
}

@media (min-width: 992px) {
  .header-phone {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-charcoal);
  margin: 3px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* MICRO-INTERACTION: Hamburger morphs to X on open */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 80px var(--spacing-lg) var(--spacing-lg);
  transition: right var(--transition-base);
  z-index: 999;
}

/* MICRO-INTERACTION: Mobile menu slides in from right */
.nav-mobile.active {
  right: 0;
}

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 998;
}

.nav-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.nav-mobile-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-charcoal);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.nav-mobile-link:hover {
  color: var(--color-red);
}

.nav-mobile-phone {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-light-grey);
  border-radius: var(--radius-md);
  text-align: center;
}

.nav-mobile-phone a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Hero Section - MICRO-INTERACTIONS: Parallax, fade-in, "Since 2013" badge
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-charcoal);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* MICRO-INTERACTION: Subtle parallax placeholder - controlled by JS */
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(34, 34, 34, 0.85) 0%,
    rgba(34, 34, 34, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-lg);
  max-width: 800px;
}

/* MICRO-INTERACTION: Hero text fade-in on load */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MICRO-INTERACTION: "Since 2013" badge animation */
.hero-badge {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  animation: badgeReveal 0.8s ease forwards 0.2s;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes badgeReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
  /* MICRO-INTERACTION: Subtle gradient text shadow for depth */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 1.25rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-phone {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.hero-phone svg {
  width: 24px;
  height: 24px;
}

/* Section Divider - MICRO-INTERACTION: Angled SVG shape */
.section-divider {
  height: 80px;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Services Section - MICRO-INTERACTION: Card lift on hover
   -------------------------------------------------------------------------- */
.services {
  background-color: var(--color-light-grey);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

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

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

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

/* MICRO-INTERACTION: Card lifts and shadow expands on hover */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.service-card-content {
  padding: var(--spacing-md);
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.service-card .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Process Section - MICRO-INTERACTION: Step icons pulse on hover
   -------------------------------------------------------------------------- */
.process {
  background-color: var(--color-white);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 50px;
  height: 50px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  transition: all var(--transition-base);
}

/* MICRO-INTERACTION: Step number pulse on hover */
.process-step:hover .process-step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(0, 86, 179, 0.2);
}

.process-step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  transition: transform var(--transition-base);
}

/* MICRO-INTERACTION: Icon subtle bounce on hover */
.process-step:hover .process-step-icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.process-step h3 {
  margin-bottom: var(--spacing-xs);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Connector lines between steps on desktop */
@media (min-width: 992px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
  }
}

/* --------------------------------------------------------------------------
   Testimonials Section - MICRO-INTERACTION: Carousel fade transition
   -------------------------------------------------------------------------- */
.testimonials {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.testimonials .section-title {
  color: var(--color-white);
}

.testimonials-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.testimonial-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: serif;
  color: var(--color-red);
  position: absolute;
  top: -20px;
  left: -30px;
  opacity: 0.5;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-red);
}

.testimonial-location {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Carousel Navigation */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

/* MICRO-INTERACTION: Arrow scale on hover */
.testimonial-arrow:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  transform: scale(1.1);
}

.testimonial-arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.testimonial-dots {
  display: flex;
  gap: var(--spacing-xs);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonial-dot.active,
.testimonial-dot:hover {
  background-color: var(--color-red);
}

/* --------------------------------------------------------------------------
   About Section Preview (on index)
   -------------------------------------------------------------------------- */
.about-preview {
  background-color: var(--color-light-grey);
}

.about-preview-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview-content {
    grid-template-columns: 1fr 1fr;
  }
}

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

.about-preview-image img {
  width: 100%;
  height: auto;
}

.about-preview-text h2 {
  margin-bottom: var(--spacing-md);
}

.about-preview-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   Blog Preview Section - MICRO-INTERACTION: Card hover effect
   -------------------------------------------------------------------------- */
.blog-preview {
  background-color: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

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

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--color-light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

/* MICRO-INTERACTION: Blog card lift and background change on hover */
.blog-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

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

.blog-card-content {
  padding: var(--spacing-md);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.blog-card .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-charcoal) 100%);
  color: var(--color-white);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.newsletter p {
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* MICRO-INTERACTION: Input border highlight on focus */
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

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

.footer-brand img {
  height: 50px;
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--color-red);
  margin-top: 3px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

/* MICRO-INTERACTION: Social icons scale and color change on hover */
.footer-social a:hover {
  background-color: var(--color-red);
  transform: scale(1.1);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   About Page Styles
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--color-charcoal);
  padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl);
  text-align: center;
}

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

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: var(--spacing-sm) auto 0;
}

.about-content {
  padding: var(--spacing-2xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

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

.about-text h2 {
  margin-bottom: var(--spacing-md);
}

/* Values Grid */
.values-section {
  background-color: var(--color-light-grey);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

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

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

.value-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.value-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

.value-card h3 {
  margin-bottom: var(--spacing-xs);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Services Page Styles
   -------------------------------------------------------------------------- */
.services-detailed {
  padding: var(--spacing-2xl) 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .service-detail:nth-child(even) .service-detail-image {
    order: 2;
  }
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.service-detail-content h2 {
  margin-bottom: var(--spacing-md);
}

.service-detail-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.service-features {
  margin-bottom: var(--spacing-md);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);
}

.service-features svg {
  width: 20px;
  height: 20px;
  fill: var(--color-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Contact Page Styles
   -------------------------------------------------------------------------- */
.contact-section {
  padding: var(--spacing-2xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

/* MICRO-INTERACTION: Form field border highlight on focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.contact-info-text h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.contact-info-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.contact-hours {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hours h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.contact-hours p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
}

/* --------------------------------------------------------------------------
   Animations & Micro-interactions Summary
   -------------------------------------------------------------------------- */

/* Counter animation for stats - controlled by JS */
.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-red);
  display: block;
}

/* Generic reveal animation class for scroll-triggered elements */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
