/* Seasonal announcement bar */
.announcement-bar {
  background: #ff7a00; /*We're keeping it orange*/
  color: #ffffff;
  padding: 0.5rem 0;
  margin: 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.announcement-bar .announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  position: relative; /* allow right-aligned close button */
}
.announcement-bar .announcement-icon {
  font-size: 1.1rem;
}
.announcement-bar .announcement-text {
  flex: 0 1 auto;
}
.announcement-bar .announcement-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
}
.announcement-bar .announcement-close:hover {
  color: #dad6d6;
}
/* Home */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/branding/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changed from fixed for iOS compatibility */
  color: var(--white);
  padding: 70px 1rem 1rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  transition: transform var(--anim-duration) ease;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 35, 149, 0.5), transparent);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero .btn {
  padding: 1rem 2.5rem;
  min-width: 180px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--card-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--anim-duration) ease,
    box-shadow var(--anim-duration) ease;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--anim-duration) ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.service-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-top: 1rem;
}

.text-center {
  text-align: center;
  margin: 2rem 0;
}

.lead-text {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

#lead {
  background: var(--gray-100);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 35, 149, 0.06) 0%,
    rgba(0, 35, 149, 0.12) 100%
  );
  z-index: 1;
}

#lead .container {
  position: relative;
  z-index: 2;
}

#quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}

#quote-form input,
#quote-form textarea {
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--anim-duration) ease;
  background: var(--gray-100);
  color: var(--gray-800);
}

#quote-form textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: span 2;
}

#quote-form input:focus,
#quote-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 35, 149, 0.12);
}

#quote-form .btn {
  grid-column: span 2;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-preview {
  background: var(--gray-100);
  padding: 6rem 0;
  margin: 4rem 0;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-preview-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--gray-800);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.achievement {
  text-align: center;
}

.achievement strong {
  display: block;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.achievement span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}

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

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* center the stacked buttons */
  }

  .hero .btn {
    width: auto; /* prevent full-width on mobile */
    max-width: 300px;
    margin: 0 auto; /* center each button */
  }

  /* iOS Safari: fixed backgrounds often glitch; use scroll */
  .hero {
    background-attachment: scroll;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #quote-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  #quote-form textarea,
  #quote-form .btn {
    grid-column: span 1;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Center About Us button in the About preview on mobile */
  .about-preview-content .btn {
    display: block;
    margin: 1rem auto 0;
    max-width: 280px;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 425px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    gap: 0.75rem;
    align-items: center;
  }
  .hero .btn {
    width: auto;
    max-width: 260px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
  }
}

/* Find Us Section */
.find-us-section {
  background: var(--gray-100);
  padding: 5rem 0 6rem;
  position: relative;
}
.find-us-title {
  margin: 0 0 2.5rem;
  text-align: left;
  color: var(--primary);
  font-size: 2.25rem;
}
.find-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}
.find-us-map .map-frame {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}
.find-us-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.1) contrast(1.05) brightness(0.95);
}
.find-us-map .map-note {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  color: var(--gray-600);
  text-align: left;
}
.find-us-card {
  background: var(--white);
  padding: 2.25rem 2.25rem 2.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}
.find-us-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 35, 149, 0.06),
    rgba(0, 35, 149, 0)
  );
  pointer-events: none;
  border-radius: inherit;
}
.find-us-card h3.company-name {
  margin: 0;
  font-size: 1.6rem;
  color: var(--primary);
}
.find-us-card .address {
  font-style: normal;
  line-height: 1.5;
  color: var(--gray-800);
}
.find-us-card .contact-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.find-us-card .contact-links a:hover {
  text-decoration: underline;
}
.find-us-card .hours h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-600);
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.hours-list li strong {
  color: var(--primary);
  font-weight: 600;
}
.cta-row {
  margin-top: 0.5rem;
}
.whatsapp-btn {
  background: #ff7a00;
  color: var(--white);
}
.whatsapp-btn:hover {
  background: #ff9933;
  color: var(--white);
}

@media (max-width: 1024px) {
  .find-us-grid {
    grid-template-columns: 1fr;
  }
  .find-us-map .map-frame {
    aspect-ratio: 16/10;
  }
}
@media (max-width: 640px) {
  .find-us-card {
    padding: 1.75rem 1.5rem 2.25rem;
  }
  .find-us-title {
    font-size: 2rem;
  }
}
