/* =============================================
   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 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: block;
  padding: 0 1.1rem;
  height: 64px;
  line-height: 64px;
  color: #c8d8f0;
  font-size: 0.9rem;
  font-weight: 500;
  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; }

/* 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);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { height: auto; line-height: 1; padding: 0.75rem 1.5rem; }
  .nav-cta { margin: 0.5rem 1.5rem; border-radius: var(--radius); }
}

/* ---------- HERO SLIDESHOW ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 64px;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.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-text {
  max-width: 640px;
  color: #fff;
}
.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: 1.2rem;
}
.hero-text h1 { color: #fff; margin-bottom: 1rem; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}
.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 slideInRight {
  from { transform: translateX(6%) scale(1.04); filter: blur(4px); opacity: 0; }
  to   { transform: translateX(0) scale(1);    filter: blur(0);  opacity: 1; }
}
@keyframes slideOutLeft {
  from { transform: translateX(0) scale(1);    filter: blur(0);  opacity: 1; }
  to   { transform: translateX(-6%) scale(0.97); filter: blur(4px); opacity: 0; }
}
.hero-slide.entering { animation: slideInRight 0.85s ease forwards; }
.hero-slide.leaving  { animation: slideOutLeft 0.85s ease forwards; }

/* ---------- 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; }
}

/* ---------- CLIENTS LOGO BAR ---------- */
.clients-bar { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-bar__label { text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.clients-bar__logos { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.clients-bar__logos span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* ---------- 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 .checkmark { font-size: 3rem; margin-bottom: 1rem; }
.overlay-box h3 { margin-bottom: 0.75rem; }
.overlay-box p { color: var(--muted); 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 { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-brand .logo span { color: var(--blue); }
.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; }
