/* -----------------------------
   Global Styles
------------------------------ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px; 
  margin: auto;
}

/* -----------------------------
   Header
------------------------------ */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0; 
}

.logo {
  text-align: center;
}

.logo img {
  height: auto;
  max-width: 600px;  /* full size on desktop */
  margin-bottom: 1rem;
}

/* Desktop — show links, hide toggle */
.nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-toggle {
  display: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  padding: 8px;
}

/* -----------------------------
   Hero Section
------------------------------ */

.hero {
  text-align: center;
  padding: 110px 0 50px 0;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #1f3a5f;
}

.hero-subtitle {
  max-width: 640px;
  margin: auto;
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

/* -----------------------------
   CTA Buttons
------------------------------ */

.cta-button {
  background: #1f3a5f;
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background: #2d4d73;
  transform: translateY(-2px);
}

/* -----------------------------
   Floating CTA
------------------------------ */

.floating-cta {
  position: fixed;
  bottom: 50px;                 
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 58, 95, 0.85); 
  color: white;
  padding: 10px 20px;           
  border-radius: 24px;          
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-cta:hover {
  background: rgba(45, 77, 115, 0.95);
  transform: translateX(-50%) translateY(-2px);
}

.floating-cta.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.floating-cta.scrolling {
  opacity: 0.6;
}

/* -----------------------------
   Sections
------------------------------ */

.section {
  padding: 80px 0;
}

.section-light {
  background: #f6f8fb;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1f3a5f;
}

.section-text {
  max-width: 850px;
  margin: auto;
  text-align: center;
  font-size: 17px;
  color: #444;
}

/* -----------------------------
   Services Grid
------------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px; 
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #eee;
  text-align: center; 
}

.service-card h3 {
  color: #1f3a5f;
  margin-bottom: 12px;
}

.service-card p {
  color: #555;
}

/* -----------------------------
   Final CTA
------------------------------ */

.final-cta {
  padding: 90px 0;
  text-align: center;
  background: #1f3a5f;
  color: white;
}

.final-cta h2 {
  margin-bottom: 20px;
}

.final-cta p {
  max-width: 650px;
  margin: auto;
  margin-bottom: 35px;
}

.final-cta .cta-button {
  background: #ffffff;
  color: #1f3a5f;
  justify-content: center;
  align-items: center;   
}

.final-cta .cta-button:hover {
  background: #e9eef5;
}

/* -----------------------------
   Footer
------------------------------ */

.floating-cta.avoid-footer {
  bottom: 80px;   /* or whatever offset clears your footer */
}

.site-footer {
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* -----------------------------
   Mobile Adjustments
------------------------------ */

@media (max-width: 768px) {
  .logo img {
    max-width: 280px;
    display: block;
    margin: 0 auto 1rem auto;
  }

  .hero {
    padding: 60px 1rem 40px 1rem;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  .section-text {
    max-width: 100%;
    padding: 0 2rem;
    font-size: 16px;
    text-align: center;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f3a5f;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding: 8px;
}

  .nav-links {
	display: none !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
  }

  .nav-links.open {
    display: flex !important;
  }
  
  .nav-links a {
	  text-decoration: none;
	  color: #1f3a5f;
	  font-weight: 500;
   }
   
   .nav-links a:hover {
	   text-decoration: underline;
   }

  .floating-cta {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1f3a5f;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 8px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  /* your existing 480px rules below */
  .hero-subtitle {
    font-size: 15px;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .floating-cta {
    padding: 8px 14px;
    font-size: 12px;
  }
}
/* ---------------------------
   Consultation Form Styling
--------------------------- */

.modal {
  opacity: 0;
  transition: opacity 0.25s ease;	
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;  
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;          
  max-width: 320px;     
  align-items: center;  
}

.modal button {
  display: block;
  width: auto;          
  margin: 10px auto 0;  
  padding: 12px 24px;
  max-width: 250px;
}

.modal input,
.modal textarea {
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border: 2px solid #1f3a5f;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal.show {
  display: flex;
  opacity: 1;  
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal input,
.modal textarea {
  width: 100%;
  max-width: 100%;
}

input.error,
textarea.error {
  border: 2px solid #d9534f;
  background: #fff5f5;
}

.modal button {
  margin-top: 10px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}