/* ===== Base & Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #1b1b1b;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Swup Transition ===== */
.transition-fade {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

html.is-animating .transition-fade {
  opacity: 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 35, 126, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.navbar.page-nav {
  background: rgba(26, 35, 126, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b71c1c;
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Parallax Sections ===== */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: repeat;
  background-size: 400px;
}

/* iOS fallback — no fixed attachment */
@supports (-webkit-touch-callout: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #1a237e 0%, #0d1442 60%, #1b1b1b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/patterns/gear-bg.svg") repeat;
  background-size: 300px;
  opacity: 0.06;
  background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
  .hero::before {
    background-attachment: scroll;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero h1 .accent {
  color: #ef5350;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-weight: 400;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: #b71c1c;
  color: #fff;
}

.btn-primary:hover {
  background: #d32f2f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: #b71c1c;
  border: 2px solid #b71c1c;
}

.btn-outline:hover {
  background: #b71c1c;
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-light {
  background: #f5f5f5;
}

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

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

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #1a237e;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  display: block;
  width: 60px;
  height: 4px;
  background: #b71c1c;
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a237e, #283593);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #1b1b1b;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Parallax Divider ===== */
.parallax-divider {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.94), rgba(13, 20, 66, 0.96));
  position: relative;
  overflow: hidden;
}

.parallax-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/patterns/gear-bg.svg") repeat;
  background-size: 250px;
  opacity: 0.08;
  background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
  .parallax-divider::before {
    background-attachment: scroll;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-item .number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #ef5350;
}

.stat-item .label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ===== Quick Contact Strip ===== */
.contact-strip {
  padding: 3rem 1.5rem;
  background: #fff;
}

.contact-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-strip .btn {
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* ===== Page Header ===== */
.page-header {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/patterns/gear-bg.svg") repeat;
  background-size: 250px;
  opacity: 0.06;
  background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
  .page-header::before {
    background-attachment: scroll;
  }
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #1a237e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.director-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.director-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a237e, #283593);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
}

.director-card h3 {
  font-size: 1.35rem;
  color: #1b1b1b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.director-card .role {
  color: #b71c1c;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.director-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #b71c1c;
}

.value-card h4 {
  font-size: 1.05rem;
  color: #1a237e;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.value-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Contact Page ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: block;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.contact-card .card-icon.phone {
  background: linear-gradient(135deg, #1a237e, #283593);
}

.contact-card .card-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe57);
}

.contact-card .card-icon.email {
  background: linear-gradient(135deg, #b71c1c, #d32f2f);
}

.contact-card h3 {
  font-size: 1.15rem;
  color: #1b1b1b;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-card p {
  color: #6b7280;
  font-size: 0.95rem;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.address-block {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.address-block h3 {
  font-size: 1.25rem;
  color: #1a237e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.address-block p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.address-block .hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.address-block .hours h4 {
  color: #1b1b1b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: #0d1442;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.footer-brand-info h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand-info p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Floating Mobile CTA ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
}

.mobile-cta-bar .cta-row {
  display: flex;
  gap: 0.5rem;
}

.mobile-cta-bar .cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.mobile-cta-bar .cta-btn.call {
  background: #1a237e;
}

.mobile-cta-bar .cta-btn.wa {
  background: #25d366;
}

.mobile-cta-bar .cta-btn.mail {
  background: #b71c1c;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #b71c1c, #d32f2f);
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-secondary {
  border-color: #fff;
  font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0d1442;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .mobile-cta-bar {
    display: block;
  }

  /* Pad bottom for sticky CTA */
  .footer {
    padding-bottom: 5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Contact page address + map grid */
  .contact-map-grid {
    grid-template-columns: 1fr !important;
  }

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 1rem;
  }

  .page-header {
    padding: 7rem 1rem 3rem;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hide the icon that doesn't match current theme */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun  { display: block; }

/* ===== Dark Mode ===== */
html.dark body {
  background: #111;
  color: #e4e4e7;
}

html.dark .section-light {
  background: #1a1a1a;
}

html.dark .section-header h2 {
  color: #8e99f3;
}

html.dark .section-header p {
  color: #a1a1aa;
}

html.dark .service-card {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

html.dark .service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html.dark .service-card h3 {
  color: #e4e4e7;
}

html.dark .service-card p {
  color: #a1a1aa;
}

html.dark .director-card {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html.dark .director-card h3 {
  color: #e4e4e7;
}

html.dark .director-card p {
  color: #a1a1aa;
}

html.dark .about-text h3 {
  color: #8e99f3;
}

html.dark .about-text p {
  color: #a1a1aa;
}

html.dark .value-card {
  background: #1e1e1e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark .value-card h4 {
  color: #8e99f3;
}

html.dark .value-card p {
  color: #a1a1aa;
}

html.dark .contact-card {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  color: #e4e4e7;
}

html.dark .contact-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

html.dark .contact-card h3 {
  color: #e4e4e7;
}

html.dark .contact-card p {
  color: #a1a1aa;
}

html.dark .address-block {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .address-block h3 {
  color: #8e99f3;
}

html.dark .address-block p {
  color: #a1a1aa;
}

html.dark .address-block .hours {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark .address-block .hours h4 {
  color: #e4e4e7;
}

html.dark .map-container {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html.dark .contact-strip {
  background: #1a1a1a;
}

html.dark .btn-outline {
  color: #ef5350;
  border-color: #ef5350;
}

html.dark .btn-outline:hover {
  background: #ef5350;
  color: #fff;
}

html.dark .footer {
  background: #0a0a0a;
}

html.dark .mobile-cta-bar {
  background: #1e1e1e;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
}
