/* =============================================
   IPAS Intermedia — Global Stylesheet
   Swap the tokens below when the final brand
   colours are confirmed.
   ============================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --blue:        #1a5fce;
  --blue-hover:  #1048a0;
  --navy:        #071430;
  --charcoal:    #1c2b40;
  --text:        #1a2030;
  --bg:          #f4f7ff;
  --surface:     #ffffff;
  --border:      #cddaf0;
  --muted:       #5a6a80;
  --radius:      6px;
  --transition:  0.25s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy); color: #e8edf8; }
.section--dark h2, .section--dark h3 { color: #ffffff; }

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--navy);
}
.btn--white:hover {
  background: var(--bg);
  color: var(--navy);
}

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo-img { height: 22px; width: auto; display: block; }
.nav-logo-text { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  display: block;
  padding: 0 1.1rem;
  height: 64px;
  line-height: 64px;
  color: #c8d8f0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 0 1.4rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--blue-hover) !important; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  height: auto;
  line-height: normal;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--blue); background: rgba(26,95,206,0.05); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--navy);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 999;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); border-left-color: var(--blue); }
.mobile-nav .mobile-nav-section { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); padding: 1rem 1.5rem 0.4rem; }
.mobile-nav a.mobile-sub { padding-left: 2.25rem; font-size: 0.88rem; font-weight: 500; }
.mobile-nav .nav-cta { margin: 0.75rem 1.5rem; display: inline-block; padding: 0.6rem 1.4rem !important; height: auto; line-height: normal; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}

/* ---------- HERO SLIDESHOW ---------- */
.hero {
  position: relative;
  height: 540px;
  min-height: 540px;
  overflow: hidden;
  margin-top: 64px;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
}
.hero-slide.active { transform: translateX(0); z-index: 2; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,20,48,0.78) 0%,
    rgba(7,20,48,0.42) 60%,
    rgba(7,20,48,0.18) 100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hero-content .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 60px;
}
.hero-text {
  background: rgba(7,20,48,0.92);
  max-width: 620px;
  width: 100%;
  height: 420px;
  padding: 40px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-content .container { padding: 0 24px; }
  .hero-text { height: auto; overflow: visible; padding: 32px 28px; max-width: 100%; }
}
.hero-label {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}
.hero-text h1 { color: #fff; margin-bottom: 0.75rem; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Motion blur keyframes */
@keyframes heroSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes heroSlideOut {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.hero-slide.entering { animation: heroSlideIn 0.85s cubic-bezier(0.4,0,0.2,1) forwards; z-index: 2; }
.hero-slide.leaving  { animation: heroSlideOut 0.85s cubic-bezier(0.4,0,0.2,1) forwards; z-index: 1; }

/* ---------- SECTION HEADING ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-heading h2 { margin-bottom: 0.75rem; }
.section-heading p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,95,206,0.12);
}
.service-card__image {
  height: 200px;
  background: var(--charcoal);
  background-size: cover;
  background-position: center;
}
.service-card__body { padding: 1.5rem; }
.service-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.service-card .arrow-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}
.service-card .arrow-link::after { content: ' →'; }

/* ---------- STATS BAND ---------- */
.stats-band {
  background: var(--blue);
  color: #fff;
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

/* ---------- ABOUT STRIP ---------- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-strip__image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  background: var(--border);
  background-size: cover;
  background-position: center;
}
.about-strip__text .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.about-strip__text h2 { margin-bottom: 1rem; }
.about-strip__text p { color: var(--muted); }
.client-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.client-logos span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--charcoal);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .about-strip { grid-template-columns: 1fr; gap: 2rem; }
  .about-strip__image { height: 260px; }
}

/* ---------- SERVICE PAGE LAYOUT ---------- */
.page-hero {
  position: relative;
  height: 440px;
  background: var(--charcoal) center/cover no-repeat;
  margin-top: 64px;
  display: flex;
  align-items: flex-end;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,48,0.85) 0%, rgba(7,20,48,0.3) 60%, transparent 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: 2.5rem;
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}
.page-hero__content .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.5rem;
}
.page-hero__content h1 { color: #fff; }

/* Content + sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding: 64px 0;
}
.content-body h2 { margin: 2rem 0 0.75rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body ul { color: var(--muted); }

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 84px;
}
.sidebar-card h4 { margin-bottom: 0.75rem; color: var(--charcoal); }
.sidebar-card .btn { display: block; text-align: center; margin-bottom: 0.75rem; }
.related-links { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.related-links li { border-top: 1px solid var(--border); padding: 0.6rem 0; font-size: 0.9rem; }
.related-links a::before { content: '→ '; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg); padding: 64px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 1.1rem; color: var(--muted); }

/* ---------- CONTACT SECTION ---------- */
.contact-section { background: var(--surface); padding: 64px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.contact-detail .icon {
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail .label { font-size: 0.78rem; color: var(--muted); }
.contact-detail .value { font-weight: 600; }

.contact-form { background: var(--bg); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.honey { display: none !important; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- THANK-YOU OVERLAY ---------- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,20,48,0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.overlay.show { display: flex; animation: fadeIn 0.35s ease; }
.overlay-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
}
.overlay-box h3 { margin-bottom: 0.75rem; }
.overlay-box p { color: var(--muted); margin-bottom: 1.5rem; }
.overlay-box .overlay-redirect { font-size: 0.85rem; font-style: italic; color: var(--muted); margin-top: -1rem; margin-bottom: 1.5rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,95,206,0.1); }
.blog-card__image { height: 180px; background: var(--border) center/cover; }
.blog-card__body { padding: 1.25rem; }
.blog-card__meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-text { font-size: 1.05rem; font-weight: 800; color: var(--blue); } .footer-logo-img { height: 20px; width: auto; display: block; }
.footer-brand p { font-size: 0.88rem; margin-top: 0.75rem; }
.footer-col h5 { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { height: 90vh; }
}

/* ---------- EVALUATION PAGE ---------- */
.eval-page { margin-top: 64px; min-height: 100vh; background: var(--bg); padding: 64px 0; }
.eval-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.rating-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.rating-grid label {
  flex: 1;
  min-width: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.rating-grid input { display: none; }
.rating-grid input:checked + span,
.rating-grid label:has(input:checked) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar-wrap { background: var(--border); border-radius: 4px; height: 4px; margin-top: 1.5rem; overflow: hidden; display: none; }
.progress-bar { height: 100%; background: var(--blue); width: 0; transition: width 5s linear; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 0.4rem; }
