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

:root {
  --primary-color: #2B3C73;
  --accent-color: #F0F0F0;
  --bg-color: #FFFFFF;
  --highlight-color: #FFD700;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --header-height: 80px;
}

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

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="none"/%3E%3Cpath d="M0 20L20 0" stroke="%23000" stroke-opacity="0.03" stroke-width="1"/%3E%3C/svg%3E');
}

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

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

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

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: height 0.3s, padding 0.3s;
}

header.scrolled {
  height: 60px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  transition: height 0.3s;
}

header.scrolled .logo-container img {
  height: 40px;
}

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

.nav-links li a {
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--highlight-color);
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
  left: 0;
}

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

.primary-cta {
  background-color: var(--highlight-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 0 rgba(255, 215, 0, 0);
}

.primary-cta:hover, .primary-cta:focus {
  background-color: #e6c200;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.secondary-cta {
  background-color: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  font-weight: 600;
}

.secondary-cta:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

.mobile-phone-icon {
  display: none;
  background: var(--highlight-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Hero Sections */
.hero {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color); /* Fallback */
}

/* NO COLOR OVERLAYS ALLOWED - Images displayed exactly as they are */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroPan 8s infinite alternate ease-in-out;
}

.hero-mobile-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroPan 8s infinite alternate ease-in-out;
}

@keyframes heroPan {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img, .hero-mobile-img {
    animation: none;
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.95); /* Solid box behind text so text is readable without overlaying image */
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Pulse animation for CTA */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
.pulse-btn {
  animation: pulse 2s infinite;
}
.pulse-btn:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-btn { animation: none; }
}

/* Sections Global */
section {
  padding: 5rem 5%;
}

.section-bg-light {
  background-color: var(--accent-color);
}

.section-bg-dark {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.section-bg-dark h2,
.section-bg-dark p {
  color: var(--bg-color);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Cards (Features, Services, Testimonials) */
.card {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon {
  transform: translateY(-10px) scale(1.1);
}

/* specific background for service cards as per PRD */
.service-card {
  background-color: var(--accent-color);
  display: flex;
  flex-direction: column;
}
.service-card p {
  flex-grow: 1;
}
.service-icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

/* Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  background-color: #fafafa;
  transition: border-color 0.3s, background-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--highlight-color);
  background-color: #fff;
}

.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--highlight-color);
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

.contact-form input:focus + .form-group::after,
.contact-form textarea:focus + .form-group::after {
  transform: scaleX(1);
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-item {
  text-align: center;
}
.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 5% 2rem;
}

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

.footer-col h4 {
  color: var(--highlight-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

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

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

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--highlight-color);
  padding-left: 5px;
}

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

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--text-light);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  background-color: var(--highlight-color);
  color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial Star Rating */
.star-rating {
  color: var(--highlight-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* About Layout */
.team-member {
  text-align: center;
}
.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}
.team-member:hover img {
  transform: scale(1.05);
}

/* Commitment List */
.commitment-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}
.commitment-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.commitment-list i {
  color: var(--highlight-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}
.mobile-nav-links {
  list-style: none;
  text-align: center;
  margin-bottom: 2rem;
}
.mobile-nav-links li {
  margin-bottom: 1.5rem;
}
.mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1023px) {
  .nav-links, .header-ctas {
    display: none;
  }
  .menu-toggle, .mobile-phone-icon {
    display: flex;
  }
  .hero {
    height: 70vh;
  }
  .hero-bg-img {
    display: none;
  }
  .hero-mobile-img {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-tagline {
    font-size: 1.2rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .hero-content {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
