/* =========================================================================
   ITSL — shared stylesheet
   ========================================================================= */
:root {
  --navy: #0d1b32;
  --navy-800: #13233f;
  --navy-700: #1a2e4d;
  --section-blue: #eaf2fc;
  --section-blue-dark: #d7e6fa;
  --charcoal: #1c2733;
  --accent: #1660d6;
  --accent-light: #4a8bff;
  --accent-soft: #e7f0ff;
  --ink: #101826;
  --muted: #5b6b82;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 50, 0.06);
  --shadow-md: 0 8px 30px rgba(13, 27, 50, 0.10);
  --shadow-lg: 0 20px 60px rgba(13, 27, 50, 0.16);
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--charcoal); }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }
ul { padding: 0; margin: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center-text { text-align: center; }

/* -------------------------------------------------------------------- */
/* Buttons                                                                */
/* -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(22,96,214,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,96,214,0.38); background: var(--accent-light); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* -------------------------------------------------------------------- */
/* Header / nav                                                          */
/* -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: 0.5px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; }
.nav-link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.chev { transition: transform 0.2s ease; }
.has-mega[class*="mega-open"] .chev,
.has-mega.mega-open .chev { transform: rotate(180deg); }

.mega-menu {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 26px;
  width: min(780px, 92vw);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}
.mega-menu-simple { width: max-content; max-width: 92vw; }
.has-mega.mega-open .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px 24px; max-height: 70vh; overflow-y: auto; }
.mega-col { min-width: 0; }
#services-mega-menu { width: min(880px, 92vw); }
#services-mega-menu .mega-menu-inner { grid-template-columns: repeat(4, 1fr) 1.4fr; }
#industries-mega-menu .mega-menu-inner { grid-template-columns: max-content; }
#company-mega-menu .mega-menu-inner { grid-template-columns: repeat(2, max-content); }
.mega-col h4 { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.mega-col-icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.mega-col ul li { margin-bottom: 6px; }
.mega-col ul li a { color: var(--navy); font-size: 0.92rem; font-weight: 500; display: block; padding: 4px 0; transition: color 0.15s; }
.mega-col ul li a:hover { color: var(--accent); }
.mega-col-cta { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 18px; }
.mega-col-cta p { font-size: 0.85rem; margin-bottom: 12px; }
.mega-col-cta .btn {
  display: flex;
  margin-bottom: 8px;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.call-link { display: none; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.call-link:hover { color: var(--accent); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }

@media (max-width: 980px) {
  .main-nav, .call-link { display: none; }
  .hamburger { display: flex; }
  .mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 150;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav-inner { padding: 20px 24px 100px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav-inner > a, .mobile-nav-inner details > summary {
    font-family: var(--font-head); font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--line);
    cursor: pointer; list-style: none; color: var(--navy);
  }
  .mobile-nav-inner details > summary::-webkit-details-marker { display: none; }
  .mobile-nav-inner details ul { padding-left: 10px; }
  .mobile-nav-inner details li a { display: block; padding: 8px 4px; color: var(--muted); font-size: 0.92rem; }
  .mobile-view-all { display: block; padding: 8px 4px; font-weight: 600; }
  .mobile-cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
}

/* -------------------------------------------------------------------- */
/* Hero                                                                   */
/* -------------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--section-blue) 0%, var(--section-blue-dark) 100%); }
.hero-inner { position: relative; z-index: 2; color: var(--navy); text-align: center; max-width: 780px; margin: 0 auto; }
.hero .hero-sub { color: var(--charcoal); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.hero .eyebrow { color: var(--accent); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 14px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .breadcrumb { justify-content: center; color: rgba(13,27,50,0.55); margin-bottom: 18px; }
.hero .breadcrumb a { color: rgba(13,27,50,0.75); }
.hero .btn-outline { border-color: rgba(13,27,50,0.25); color: var(--navy); }
.hero .btn-outline:hover { border-color: var(--accent); }

/* Split hero layout (text + illustration/medallion) */
.hero-inner.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; text-align: left; max-width: 1130px; }
.hero-grid .hero-sub { margin: 0 0 28px; }
.hero-grid .hero-actions, .hero-grid .breadcrumb { justify-content: flex-start; }
.hero-media { display: flex; justify-content: center; align-items: center; }
.illus-dashboard { width: 100%; max-width: 460px; height: auto; }
.illus-medallion { width: 100%; max-width: 240px; height: auto; }
@media (max-width: 860px) {
  .hero-inner.hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-actions, .hero-grid .breadcrumb { justify-content: center; }
  .hero-media { order: -1; max-width: 280px; margin: 0 auto 12px; }
}

.illus-badge { animation: badgeFloat 4s ease-in-out infinite; animation-delay: var(--badge-delay, 0s); transform-origin: center; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .illus-badge { animation: none; } }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.28; }
.blob1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: -160px; left: -100px; animation: float1 16s ease-in-out infinite; }
.blob2 { width: 340px; height: 340px; background: radial-gradient(circle, #2ee6c8 0%, transparent 70%); bottom: -140px; right: -80px; animation: float2 20s ease-in-out infinite; }
.blob3 { width: 260px; height: 260px; background: radial-gradient(circle, #4a8bff 0%, transparent 70%); top: 40%; right: 20%; animation: float3 22s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, -20px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* -------------------------------------------------------------------- */
/* Sections                                                               */
/* -------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section.alt-bg { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin-bottom: 32px; }
.lead-answer { font-size: 1.1rem; font-weight: 500; color: var(--navy-800); background: var(--accent-soft); padding: 18px 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--accent); }
.category-block { margin-bottom: 48px; }
.category-block:last-child { margin-bottom: 0; }

.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumb-sep { opacity: 0.5; }

/* -------------------------------------------------------------------- */
/* Reveal-on-scroll animation                                            */
/* -------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-hero { opacity: 0; animation: heroIn 0.8s ease forwards; }
@keyframes heroIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* -------------------------------------------------------------------- */
/* Cards / grids                                                         */
/* -------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card-grid-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.service-card, .industry-card, .case-card, .blog-card, .resource-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover, .industry-card:hover, .case-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.card-link { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.case-industry { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 8px; }
.blog-card time { font-size: 0.82rem; color: var(--muted); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.card-icon .icon { width: 24px; height: 24px; }
.service-card:hover .card-icon, .industry-card:hover .card-icon { background: var(--accent); color: #fff; }

.card-media {
  margin: -26px -26px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #eef6f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.card-media .illus-medallion { max-width: 150px; }
.resource-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.resource-form input { flex: 1; min-width: 160px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--font-body); }

/* -------------------------------------------------------------------- */
/* Benefits list / process steps                                         */
/* -------------------------------------------------------------------- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.benefits-grid li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--navy-800); }
.benefits-grid .check { flex-shrink: 0; margin-top: 2px; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }

/* -------------------------------------------------------------------- */
/* Why ITSL                                                               */
/* -------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.why-media { position: relative; height: 260px; }
.why-blob { position: absolute; inset: 0; border-radius: 32px; background: linear-gradient(135deg, var(--accent) 0%, #2ee6c8 100%); opacity: 0.15; }
.why-blob::after { content: ""; position: absolute; inset: 20px; border: 2px dashed var(--accent-light); border-radius: 24px; opacity: 0.4; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-media { display: none; } }

/* -------------------------------------------------------------------- */
/* Stats                                                                  */
/* -------------------------------------------------------------------- */
.stats-section { background: var(--section-blue); border-radius: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--navy); }
.stat-label { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------- */
/* Testimonials                                                          */
/* -------------------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; box-shadow: var(--shadow-sm); }
.testimonial-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial-author .avatar { flex-shrink: 0; }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.9rem; display: block; }
.testimonial-card .author-location { font-size: 0.82rem; color: var(--muted); }
.review-widget-placeholder { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 24px; background: var(--bg-alt); color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------------------------- */
/* Video section                                                         */
/* -------------------------------------------------------------------- */
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); max-width: 860px; margin: 0 auto; }
.video-wrap video { display: block; width: 100%; height: auto; }

/* -------------------------------------------------------------------- */
/* Pricing                                                                */
/* -------------------------------------------------------------------- */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card-featured { border-color: var(--accent); box-shadow: 0 12px 34px rgba(22,96,214,0.18); transform: scale(1.03); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--navy); margin: 10px 0; }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-best { color: var(--muted); font-size: 0.9rem; min-height: 44px; margin-bottom: 16px; }
.price-card .btn { width: 100%; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; background: #fff; }
.pricing-table th, .pricing-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.pricing-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); position: sticky; top: 0; }
.pricing-table thead tr:first-child th { font-size: 0.95rem; }
.pricing-table tbody th { font-weight: 600; color: var(--navy); background: var(--bg-alt); white-space: nowrap; }
.pricing-table .price-row td { font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.notes-list { padding-left: 20px; }
.notes-list li { margin-bottom: 10px; color: var(--muted); }

.tools-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.tools-list li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* -------------------------------------------------------------------- */
/* FAQ                                                                    */
/* -------------------------------------------------------------------- */
.faq-list { display: grid; gap: 14px; }
.faq-list-wide { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.faq-q { font-size: 1.02rem; margin-bottom: 8px; }
.faq-a { margin: 0; color: var(--charcoal); }
.faq-jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; scroll-margin-top: 90px; }
.faq-group { margin-bottom: 48px; scroll-margin-top: 90px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { margin-bottom: 20px; }

/* -------------------------------------------------------------------- */
/* CTA band                                                               */
/* -------------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--section-blue) 0%, var(--section-blue-dark) 100%); padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: var(--navy); margin-bottom: 4px; }
.cta-band p { opacity: 0.8; margin-bottom: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: rgba(13,27,50,0.3); color: var(--navy); }
.cta-band .btn-outline:hover { border-color: var(--accent); background: rgba(13,27,50,0.05); color: var(--accent); }

/* -------------------------------------------------------------------- */
/* Forms                                                                  */
/* -------------------------------------------------------------------- */
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-group { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.req { color: #e0453c; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }
.form-error { color: #d13a30; font-size: 0.88rem; min-height: 1.2em; margin: 4px 0 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin-bottom: 20px; }
.contact-list li { margin-bottom: 10px; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 1px solid var(--line); }
.or-call { margin-top: 16px; font-weight: 600; }

/* -------------------------------------------------------------------- */
/* Modal / dialog                                                        */
/* -------------------------------------------------------------------- */
dialog.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(560px, 92vw);
  max-height: 88vh;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, overlay 0.25s ease allow-discrete, display 0.25s ease allow-discrete;
}
dialog.modal[open] { opacity: 1; transform: scale(1) translateY(0); }
dialog.modal::backdrop { background: rgba(13,27,50,0.55); opacity: 0; transition: opacity 0.25s ease; }
dialog.modal[open]::backdrop { opacity: 1; }
@media (prefers-reduced-motion: reduce) { dialog.modal, dialog.modal::backdrop { transition: none; } }
.modal-body { padding: 32px; max-height: 88vh; overflow-y: auto; }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal-close { background: var(--bg-alt); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }
.modal-sub { color: var(--muted); margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success svg { color: #1ba35a; margin-bottom: 12px; }
.modal-success .btn { margin-top: 12px; }

/* -------------------------------------------------------------------- */
/* Footer                                                                 */
/* -------------------------------------------------------------------- */
.site-footer { background: var(--section-blue-dark); color: var(--charcoal); padding: 60px 0 0; border-top: 1px solid var(--line); }
.footer-top { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2.4fr repeat(6, 1fr); gap: 32px 20px; }
.footer-col h4 { color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; margin-top: 20px; }
.footer-col h4:first-child { margin-top: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:not(.social-btn) { color: rgba(13,27,50,0.68); font-size: 0.9rem; }
.footer-col a:not(.social-btn):hover { color: var(--accent); }
.footer-brand p { color: rgba(13,27,50,0.62); font-size: 0.9rem; margin: 16px 0; }
.footer-contact li { color: rgba(13,27,50,0.78); font-size: 0.9rem; }
.social-row { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { transform: translateY(-3px) scale(1.06); background: var(--accent); color: #fff; }
.social-btn-whatsapp:hover { background: #25d366; }
.footer-bottom { border-top: 1px solid rgba(13,27,50,0.12); margin-top: 40px; padding: 20px 24px; max-width: 1180px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(13,27,50,0.7); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(13,27,50,0.6); }
@media (max-width: 1180px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- */
/* Floating social/whatsapp bar                                          */
/* -------------------------------------------------------------------- */
.floating-social {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-md);
  border: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-whatsapp { background: #25d366; }
.floating-call { background: var(--accent); }
@media (max-width: 700px) {
  /* Mobile collapses to just the WhatsApp bubble; call & consult live in the mobile nav CTA row */
  .floating-call, .floating-consult { display: none; }
  .floating-social { right: 14px; bottom: 14px; gap: 10px; }
  .floating-btn { width: 48px; height: 48px; }
}

/* -------------------------------------------------------------------- */
/* Misc pages                                                             */
/* -------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.team-card .avatar { margin-bottom: 14px; }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.pull-quote { border-left: 4px solid var(--accent); padding: 16px 22px; font-size: 1.1rem; font-style: italic; color: var(--navy-800); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.pull-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.blog-date { color: var(--muted); font-size: 0.88rem; }
.blog-body h2 { margin-top: 1.6em; }
.legal-body h2 { margin-top: 1.4em; }
.not-found-section { padding: 140px 0; }
.center-cta { text-align: center; margin-top: 28px; }
