:root {
  --orange: #FE7F03;
  --orange-dark: #E56800;
  --navy: #002D66;
  --navy-light: #0A3C7D;
  --cream: #FDEEDD;
  --white: #FFFFFF;
  --gray: #5B6B7C;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.55;
  background: var(--white);
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: 0.5px; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}

.brand-logo { display: block; width: auto; height: 36px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--orange-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 2px;
  height: 64px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.scroll-indicator .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--orange);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator, .scroll-indicator .line::after { animation: none; }
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 110%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/isec-cover.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,20,50,0.72) 0%, rgba(0,20,50,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
  color: var(--white);
  text-align: center;
}

.hero-content .brand-mark { width: auto; height: 64px; margin: 0 auto 18px; display: block; }

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--orange);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-content p.tagline {
  font-size: 1.25rem;
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 34px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 26px;
  border-radius: 40px;
  flex-wrap: wrap;
}

.contact-pill span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }

.hero-buttons { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-content .hero-buttons { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 50px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Section generic */
section { padding: 90px 0; }

.section-head {
  max-width: 680px;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 10px;
  color: var(--navy);
}

.section-head p { margin-top: 16px; color: var(--gray); font-size: 1.05rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about p { color: var(--gray); margin-bottom: 18px; font-size: 1.05rem; }

.about-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.about-card h3 { color: var(--orange); font-size: 1.6rem; margin-bottom: 12px; }
.about-card p { color: var(--navy); font-weight: 600; }

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mv-card {
  background: var(--orange);
  color: var(--white);
  padding: 44px;
  border-radius: 20px;
}

.mv-card h3 { font-size: 1.7rem; margin-bottom: 18px; }
.mv-card:nth-child(2) { background: var(--navy); }
.mv-card p { font-size: 1rem; opacity: 0.95; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 30px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.value-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.value-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 0.95rem; }

/* Services */
.services { background: var(--navy); color: var(--white); }
.services .section-head h2 { color: var(--white); }
.services .section-head p { color: #B9C6DA; }
.services .eyebrow { color: var(--orange); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 30px;
}

.service-card h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--orange);
}

.service-card ul { list-style: none; }

.service-card li {
  font-size: 0.92rem;
  color: #D6DEEA;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.team-card { text-align: center; }

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 3rem;
  font-weight: 800;
  border: 4px solid var(--orange);
}

.team-card h4 { font-size: 1.1rem; }
.team-card p { color: var(--gray); font-size: 0.9rem; }

.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 200;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #087f40;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:hover { background: #066934; }
.whatsapp-float:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }

/* Map */
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* CTA */
.cta {
  background: var(--orange);
  color: var(--white);
  text-align: center;
}

.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.cta p { font-size: 1.1rem; margin-bottom: 34px; opacity: 0.95; }
.cta .btn-outline { border-color: var(--white); }
.cta .btn-outline:hover { background: var(--white); color: var(--orange); }

/* Footer */
footer {
  background: var(--navy);
  color: #B9C6DA;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand .brand-mark { width: auto; height: 30px; }

footer h5 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 0.92rem; }
footer li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8697AE;
}

/* Responsive */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* Contact form */
.contact-form { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 14px;
  font: inherit;
  color: #111;
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.btn-form { background: var(--navy); color: var(--white); border: 0; cursor: pointer; align-self: center; font-family: inherit; }
.btn-form:hover { background: var(--navy-light); }
.btn-form:disabled { opacity: 0.6; cursor: wait; }
.cta .form-status { margin: 0; min-height: 1.4em; font-size: 1rem; font-weight: 600; text-align: center; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* Icons */
.value-icon { color: var(--orange); }
footer li .fa-location-dot { color: var(--orange); margin-right: 6px; }

/* Footer credit */
.pensanta-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 16px;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 0.875rem;
  font-weight: 500;
  color: #B9C6DA;
  transition: all 0.3s ease;
}
.pensanta-credit:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); border-color: var(--orange); }
.pensanta-credit svg { flex-shrink: 0; color: var(--orange); }
.pensanta-credit a { color: var(--white); font-weight: 600; transition: color 0.2s ease; }
.pensanta-credit a:hover { color: var(--orange); }
