/* =================== GLOBAL STYLES =================== */
:root {
  --navy: #001f4d;
  --gold: #ffb703;
  --muted: #6b6b6b;
  --bg: #f7f9fb;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
  color: #333;
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  padding-top: 70px;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px 0;
  color: var(--navy);
}

p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* =================== HEADER & NAVIGATION =================== */
.header {
  background: var(--navy);
  color: var(--white);
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 70px;
  box-sizing: border-box;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 40px;
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-small {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.brand strong {
  font-size: 18px;
  color: var(--white);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--white);
  color: var(--navy);
}

.menu-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Navigation Links */
#navlinks {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Hide close button on desktop navbar - always hidden except in tablet modal */
.modal-close {
  display: none !important;
}

#navlinks a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#navlinks a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

/* =================== HERO SECTION =================== */
.hero {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 20px 0;
}

.hero .copy,
.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--navy);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero .card,
.hero-image {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.hero img,
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero .cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.hero .cta:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.muted {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* =================== SERVICES SECTION =================== */
.section-title {
  text-align: left;
  margin: 40px 0 30px;
  font-size: 3rem;
  font-weight: bold;
    color: var(--navy);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 200px;
}

.card h3 {
  font-size: 1.3rem;
  margin: 15px 0 10px;
  color: var(--navy);
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Service Sections with Sliders */
.service-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  scroll-margin-top: 90px; /* Offset for fixed navbar */
}

.service-section.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-text h3 {
  color: var(--navy);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  color: #555;
}

.service-slider {
  flex: 1;
  min-width: 300px;
}

/* Image Slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-height: 300px;
}

.slider .slide {
  width: 100%;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 1.2s ease-in-out, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  will-change: transform, opacity;
}

.slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 2;
}

.slider .slide.prev {
  z-index: 1;
}

.slider img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider .prev:hover,
.slider .next:hover {
  background-color: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider .prev {
  left: 15px;
}

.slider .next {
  right: 15px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* Client Grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 30px 0;
  align-items: center;
}

.client-grid .card {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.client-grid .card img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.team-card {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 4px solid var(--navy);
}

/* Map Styles */
.map-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =================== FOOTER =================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 25px 20px;
  margin-top: 60px;
  border-top: 3px solid var(--gold);
}

.footer .fgrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer span {
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.footer .social,
.footer div.social {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.footer .social img,
.footer div.social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.footer .social img:hover,
.footer div.social img:hover {
  transform: scale(1.15);
}

.footer .addresses,
.footer-addresses {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.footer .address-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--white);
  line-height: 1.6;
  font-size: 11px;
  white-space: normal;
  max-width: 300px;
  transition: all 0.3s ease;
  text-align: left;
}

.footer .address-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

/* =================== RESPONSIVE DESIGN =================== */

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

/* Tablets (768px to 992px) - Right Side Modal */
@media (min-width: 769px) and (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  #navlinks {
    display: none;
    position: fixed;
    top: 50%;
    right: -280px;
    transform: translateY(-50%);
    width: 240px;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 15px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    border-radius: 12px 0 0 12px;
    gap: 6px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
  }
  
  .header {
    min-height: 70px;
  }

  #navlinks.active {
    display: flex;
    right: 0;
  }

  /* Close button inside modal - only show when modal is active */
  .modal-close {
    display: none !important;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 1000;
    flex-shrink: 0;
  }

  #navlinks.active .modal-close {
    display: flex !important;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

  #navlinks a {
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    font-size: 15px;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: none;
  }

  #navlinks a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
  }

  #navlinks a:last-child {
    border-bottom: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero .card,
  .hero-image {
    max-width: 100%;
  }

  .service-section {
    flex-direction: column;
    text-align: center;
  }

  .service-section.reverse {
    flex-direction: column;
  }

  .service-text {
    text-align: center;
  }

  .service-text p {
    text-align: justify;
  }

  .footer .addresses,
  .footer-addresses {
    justify-content: center;
    text-align: center;
  }
}

/* Tablets (≤ 992px) - General styles */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero .card,
  .hero-image {
    max-width: 100%;
  }

  .service-section {
    flex-direction: column;
    text-align: center;
  }

  .service-section.reverse {
    flex-direction: column;
  }

  .service-text {
    text-align: center;
  }

  .service-text p {
    text-align: justify;
  }

  .footer .addresses,
  .footer-addresses {
    justify-content: center;
    text-align: center;
  }
}

/* Mobile Devices (≤ 768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .modal-close {
    display: none;
  }

  #navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-top: 2px solid rgba(255,255,255,0.1);
    gap: 0;
    z-index: 999;
  }
  
  .header {
    min-height: 70px;
  }

  #navlinks.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  #navlinks a {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
  }

  #navlinks a:last-child {
    border-bottom: none;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.6rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .map-wrap {
    grid-template-columns: 1fr;
  }

  .footer .fgrid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .addresses,
  .footer-addresses {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer .address-card {
    max-width: 100%;
    text-align: center;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 12px 15px;
  }

  .logo-small {
    height: 35px;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero {
    margin: 20px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .card {
    padding: 15px;
  }

  .slider .prev,
  .slider .next {
    padding: 8px 12px;
    font-size: 20px;
  }

  .slider .prev {
    left: 10px;
  }

  .slider .next {
    right: 10px;
  }
}

/* Large Screens (≥ 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .card-grid {
    gap: 30px;
  }
}
