/* RESET & BASE */
:root {
  --primary: #0f172a;
  --secondary: #0055a4;
  --accent: #d32f2f;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-main: #334155;
  --text-light: #64748b;
  --border: #cbd5e1;
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
  overflow-x: hidden;
}

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

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

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

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--surface-alt);
}

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

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

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

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

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

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

.btn-accent:hover {
  background-color: #b71c1c;
  color: white;
}

/* HEADER & NAVIGATION */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link:focus {
  color: var(--secondary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  padding: 1rem 0;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-main);
}

.dropdown-link:hover {
  background: var(--surface-alt);
  color: var(--secondary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-cta {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* HERO SECTION */
.hero {
  padding: 6rem 0;
  background-color: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
}

.hero-subtitle {
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

/* CONTENT SECTIONS */
.content-wrapper {
  max-width: 800px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

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

.service-card h3 {
  color: var(--secondary);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer a {
  color: #cbd5e1;
}

.footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* MOBILE STICKY CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  padding: 1rem;
  text-align: center;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-sticky-cta a {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-wrapper {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: var(--surface);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-wrapper.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 2rem;
    align-items: flex-start;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--surface-alt);
    margin-top: 1rem;
    display: none;
  }
  
  .nav-item.active .dropdown-menu {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .mobile-sticky-cta {
    display: block;
  }
  
  body {
    padding-bottom: 60px; /* Space for sticky CTA */
  }
}
