/* Variables */
:root {
  --primary-red: #D92323;
  --primary-red-dark: #C01E1E;
  --white: #FFFFFF;
  --dark-grey: #333333;
  --accent-blue: #4285F4;
  --accent-gold: #FFD700;
  --light-grey: #A0A0A0;
  --bg-color: #FAFAFA;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--dark-grey);
  background-color: var(--bg-color);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.text-center { text-align: center; }
.section-padding { padding: 5rem 1rem; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: var(--white);
  padding: 1rem 0;
  position: absolute;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
}

header.sticky {
  position: fixed;
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo-link img {
  max-height: 60px;
  width: auto;
}
header.sticky .logo-link img { max-height: 40px; }

/* Desktop Nav */
.main-nav {
  display: none;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary-red);
  transition: width var(--transition-fast);
}

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

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-subtle);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 100;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--dark-grey);
}
.dropdown-item:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary-red);
}

/* Header CTA */
.header-actions {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.phone-link {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background: var(--primary-red);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.btn:hover {
  background: var(--primary-red-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.98);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}
.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* Mobile Header */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mobile-phone, .hamburger-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-grey);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-phone { color: var(--primary-red); }

.mobile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}
.close-btn {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 2rem; cursor: pointer;
}
.mobile-nav-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
}
.mobile-phone-link { color: var(--primary-red); margin-bottom: 2rem; }

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset header */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
/* NO OVERLAY ALLOWED */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-content h1, .hero-content p {
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.pulse-hover:hover {
  animation: pulse 1s infinite;
}
.pulse-continuous {
  animation: pulse 2s infinite;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.service-card img {
  width: 100%;
  max-width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}
.service-card h3 { margin-bottom: 1rem; }
.service-card p { flex-grow: 1; }
.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-red);
  font-weight: 700;
}
.service-link:hover { text-decoration: underline; }

/* Value Proposition (Why Choose Us) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
}
.value-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: rgba(217, 35, 35, 0.1);
  color: var(--primary-red);
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

/* Call to Action Block */
.cta-block {
  background: var(--primary-red);
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
}
.cta-block h2, .cta-block p { color: var(--white); }
.cta-phone {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1.5rem 0;
}
.cta-btn-light {
  background: var(--white);
  color: var(--primary-red);
}
.cta-btn-light:hover { background: #f0f0f0; }

/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.testimonial-card {
  background: var(--white); padding: 2rem;
  border-radius: 8px; box-shadow: var(--shadow-subtle);
  position: relative;
}
.testimonial-card::before {
  content: '""'; font-size: 4rem; color: rgba(217,35,35,0.1);
  position: absolute; top: 10px; left: 10px; line-height: 1; font-family: serif;
}

/* Service Process */
.process-timeline {
  display: flex; flex-direction: column; gap: 2rem;
  position: relative; margin-top: 3rem;
}
.process-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.process-icon-wrap {
  width: 60px; height: 60px; flex-shrink: 0;
}
.process-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* Forms */
.contact-form {
  background: var(--white); padding: 2.5rem; border-radius: 8px;
  box-shadow: var(--shadow-subtle); max-width: 800px; margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--light-grey); border-radius: 4px;
  font-family: inherit; font-size: 1rem; transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #777; margin-top: 1rem; }

/* Contact Specific */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem;
}
.contact-info-list { list-style: none; }
.contact-info-list li { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.contact-info-list i { color: var(--primary-red); font-size: 1.25rem; }
.map-container { width: 100%; height: 350px; border-radius: 8px; overflow: hidden; background: #eee; }

/* Team Specific */
.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.team-card { text-align: center; }
.team-card img {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.5rem; border: 4px solid var(--white); box-shadow: var(--shadow-subtle);
}

/* Footer */
footer {
  background: var(--dark-grey); color: var(--white);
  padding: 4rem 1rem 1.5rem;
}
footer h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; }
footer a { color: #ccc; }
footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.footer-col { margin-bottom: 1.5rem; }
.footer-logo img { max-height: 50px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; flex-direction: column; text-align: center; gap: 1rem; font-size: 0.9rem; color: #999;
}
.footer-legal-links { display: flex; justify-content: center; gap: 1rem; }

/* Media Queries */
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { flex-direction: row; align-items: stretch; justify-content: space-between; }
  .process-step { flex-direction: column; align-items: center; text-align: center; flex: 1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 60vh; }
}

@media (min-width: 1024px) {
  .mobile-controls { display: none; }
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .hero { min-height: 80vh; }
}

@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;
  }
}
