:root {
  --color-dark: #2D3748;
  --color-accent: #FFD700;
  --color-primary: #4A90E2;
  --color-light: #F7F8F9;
  --color-mid: #E0E0E0;
  --font-primary: 'Roboto', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

/* Buttons & CTAs */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #3A7ADF;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Glow with accent color */
  transform: scale(1.02);
  outline: none;
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-primary);
  color: #fff;
  outline: none;
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 900;
  transition: all 0.3s ease-in-out;
}

.site-header.sticky {
  position: fixed;
  top: 0;
  box-shadow: rgba(0,0,0,0.1) 0px 2px 4px;
}

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

.site-header.sticky .header-inner {
  height: 50px;
}

.logo-link img {
  height: 40px;
  transition: filter 0.2s ease;
}

.logo-link:hover img {
  filter: brightness(1.2);
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

.nav-link:hover, .nav-link:focus {
  color: var(--color-primary);
  outline: none;
}

.nav-link:hover::after, .nav-link:focus::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-weight: 700;
}

/* Hamburger & Mobile Nav */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger-line:last-child { margin-bottom: 0; }

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}

.mobile-nav-overlay.active {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-dark);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 2.5rem;
  font-weight: 700;
}

.mobile-nav-footer {
  text-align: center;
  margin-top: 2rem;
}

.mobile-nav-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 55, 72, 0.7); /* dark overlay */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--color-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

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

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.service-content p {
  color: #555;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Why Choose Us */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.why-us-image img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.benefit-list {
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  color: var(--color-primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-section h2 {
  color: #fff;
}

.cta-section .btn {
  background-color: #fff;
  color: var(--color-primary);
  margin-top: 1.5rem;
}

.cta-section .btn:hover {
  background-color: var(--color-light);
  transform: scale(1.05);
}

/* Process Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.process-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Forms */
.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-mid);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4); /* Glow effect from PRD */
}

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

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 4rem 0 0 0;
  margin-top: auto;
}

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

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  max-width: 200px;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: #ccc;
}

.footer-list a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Utilities */
.bg-light { background-color: var(--color-light); }
.bg-white { background-color: #fff; }

/* Desktop Queries */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  .hero {
    min-height: 500px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    height: 80px;
  }
  .site-header.sticky .header-inner {
    height: 60px;
  }
  .mobile-menu-btn {
    display: none;
  }
  .main-nav {
    display: block;
  }
  .header-cta {
    display: flex;
  }
  
  .hero {
    min-height: 600px;
    background-attachment: fixed; /* Parallax effect */
  }
  .hero-content {
    text-align: left;
    margin: 0;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-timeline {
    flex-direction: row;
    justify-content: space-between;
    position: relative;
  }
  .process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--color-mid);
    z-index: 0;
  }
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    z-index: 1;
    background-color: var(--color-light); /* Or bg color to mask line */
    padding: 0 1rem;
  }
  .bg-white .process-step {
    background-color: #fff;
  }
  .contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@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;
  }
  .hero {
    background-attachment: scroll !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Added background pattern for some sections */
.bg-pattern {
  position: relative;
}
.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-mid) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.2;
  pointer-events: none;
}
