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

:root {
  --primary-blue: #1F3B60;
  --white: #FFFFFF;
  --accent-red: #D32F2F;
  --bg-light: #E0E0E0;
  --text-dark: #4A4A4A;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
  p { font-size: 1.125rem; }
}

header {
  transition: all 0.3s ease-out;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: 80%; /* Roughly reduces by 20% compared to original size, though better to use padding */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-red);
  transition: width 0.3s ease;
}

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

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-red);
  color: var(--white) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-out;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.primary-button:hover {
  background-color: #B02727;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary-blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary-blue);
  border-radius: 0.375rem;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.secondary-button:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.secondary-button.light {
  color: var(--white);
  border-color: var(--white);
}

.secondary-button.light:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

.phone-link {
  color: var(--primary-blue);
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--accent-red);
}

#mobile-menu-overlay {
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

#mobile-menu-overlay.open {
  transform: translateX(0);
}

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.hover-scale {
  transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.svg-icon {
  transition: transform 0.2s ease;
}

.svg-icon:hover {
  transform: translateY(-2px);
}

.bg-texture {
  background-color: var(--bg-light);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='none'/%3E%3Cpath d='M1 1h2v2H1z' fill='%23000' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.accordion-item .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.open .content {
  max-height: 500px;
}

.accordion-item .icon {
  transition: transform 0.3s ease;
}

.accordion-item.open .icon {
  transform: rotate(180deg);
}

.parallax-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .parallax-bg {
    background-attachment: fixed;
  }
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(31, 59, 96, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}