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

:root {
  --primary-blue: #003399;
  --white: #FFFFFF;
  --black: #000000;
  --light-grey: #F0F0F0;
  --secondary-light-blue: #C2DFFC;
  --dark-bg: #1A1A1A;
  --bg-gradient: #F7FCFF;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  margin: 0;
  padding: 0;
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; }

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

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

/* Base Layout & Micro Details */
.subtle-bg {
  background: var(--bg-gradient);
  background-image: linear-gradient(135deg, var(--white) 0%, var(--bg-gradient) 100%);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
header.scrolled {
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(5px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
}

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

.mobile-phone {
  background: var(--primary-blue);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  right: 0;
}
.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-blue);
  cursor: pointer;
  margin-bottom: 2rem;
}
.mobile-menu nav a {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

/* Desktop Header */
@media (min-width: 768px) {
  .logo img { height: 50px; }
  .hamburger { display: none; }
  .mobile-phone { display: none; }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-links a {
    color: var(--black);
    font-weight: 600;
    position: relative;
  }
  
  .nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
  }
  
  .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
  }

  .desktop-phone {
    font-weight: 700;
    color: var(--primary-blue);
  }
}

/* Buttons (CTAs) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: #1A47B8;
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,51,153,0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: scale(1.05);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}
@keyframes ripple-animation {
  to { transform: scale(4); opacity: 0; }
}

/* Hero Sections */
.hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  /* NO overlay on hero images per requirements - so text might need text-shadow to be readable */
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
}

/* Generic Section Padding */
section {
  padding: 4rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--light-grey);
  transition: all 0.2s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.service-card:hover .icon {
  transform: rotate(10deg) scale(1.1);
}
.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.service-card p {
  flex-grow: 1;
  color: #555;
  font-size: 0.95rem;
}
.service-card .cta-link {
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}
.service-card .cta-link:hover {
  text-decoration: underline;
}

/* Feature/Why Choose Us Blocks */
.feature-block {
  text-align: center;
}
.feature-block .icon {
  width: 64px;
  height: 64px;
  color: var(--primary-blue);
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}
.feature-block:hover .icon {
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-blue);
  color: var(--white);
  text-align: center;
  padding: 5rem 1rem;
}
.cta-section h2 {
  color: var(--white);
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .image-gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .image-gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 0;
}
.testimonial blockquote {
  font-style: italic;
  margin: 0 0 1rem;
  color: #555;
}
.testimonial cite {
  font-weight: 700;
  color: var(--primary-blue);
  font-style: normal;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.5rem;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #CCC;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}
@media (min-width: 768px) {
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Contact Info Layout */
.contact-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-block .icon {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 4rem 1rem 1rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col a {
  color: var(--white);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--secondary-light-blue);
  text-decoration: underline;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons a {
  display: inline-block;
  width: 24px;
  height: 24px;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.back-to-top {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex-grow: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
}
.newsletter-form button {
  padding: 0.5rem 1rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Modals/Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
