/* ============================================
   KAPSTONE TITLE — Main Stylesheet
   Navy #1a3060 | Gold #c4a468 | White #ffffff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy:       #1a3060;
  --navy-dark:  #0f1e3d;
  --navy-mid:   #243570;
  --gold:       #c4a468;
  --gold-light: #d9bc8a;
  --gold-pale:  #f7f0e3;
  --white:      #ffffff;
  --off-white:  #f8f6f2;
  --gray-light: #e8e4de;
  --gray-mid:   #9a9690;
  --text-dark:  #1a2030;
  --text-mid:   #4a5060;
  --radius:     3px;
  --transition: 0.25s ease;
  --shadow-sm:  0 2px 8px rgba(26,48,96,0.08);
  --shadow-md:  0 6px 24px rgba(26,48,96,0.12);
  --shadow-lg:  0 16px 48px rgba(26,48,96,0.16);
  --font-heading: 'Cinzel', serif;
  --font-body:    'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.05rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-mid); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.btn-gold  { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,164,104,0.35); }
.btn-navy  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }

/* ── Section Labels ── */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.section-title { color: var(--navy); margin-bottom: 16px; }
.section-title.white { color: var(--white); }
.section-intro { font-size: 1.05rem; color: var(--text-mid); max-width: 600px; line-height: 1.8; }
.section-intro.white { color: rgba(255,255,255,0.75); }
.gold-rule { width: 56px; height: 3px; background: var(--gold); margin: 20px 0; }
.gold-rule.centered { margin: 20px auto; }
.text-center { text-align: center; }
.text-center .gold-rule { margin: 20px auto; }
.text-center .section-intro { margin: 0 auto; }
.text-center .section-label { justify-content: center; }

/* ── LOGO ── */
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-shield { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.logo-kapstone { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); line-height: 1; }
.logo-title-row { display: flex; align-items: center; gap: 6px; }
.logo-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.logo-title-text { font-family: 'Cinzel', serif; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); opacity: 0.85; }

/* ── NAVBAR ── */
.navbar {
  background: var(--navy) !important;
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 20px rgba(0,0,0,0.25);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 10px 14px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.88); transition: color var(--transition); position: relative;
}
.nav-menu > li > a::after { content: ''; position: absolute; bottom: 6px; left: 14px; right: 14px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--white); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown { display: none; position: absolute; top: calc(100% + 3px); left: 0; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 12px 32px rgba(26,48,96,0.18); min-width: 200px; z-index: 100; list-style: none; padding: 8px 0; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 20px; font-size: 0.88rem; font-weight: 600; color: var(--navy); transition: all var(--transition); border-left: 3px solid transparent; }
.dropdown li a:hover { background: var(--gold-pale); color: var(--navy-dark); border-left-color: var(--gold); padding-left: 24px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; padding: 7px 14px; cursor: pointer; transition: all var(--transition); border-radius: 20px; display: flex; align-items: center; gap: 6px; }
.lang-toggle:hover { background: rgba(255,255,255,0.2); }

/* ── HERO ── */
.hero { min-height: 80vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%); display: flex; align-items: center; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4a468' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.hero-trust-icon { color: var(--gold); font-size: 1rem; }
.hero-spanish { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; background: rgba(196,164,104,0.12); border: 1px solid rgba(196,164,104,0.3); padding: 8px 16px; font-size: 0.82rem; color: var(--gold-light); font-weight: 600; letter-spacing: 0.06em; }

/* ── STATS BAR ── */
.stats-bar { background: var(--gold); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(26,48,96,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--navy-dark); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(26,48,96,0.65); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 52px; }
.card { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 36px 28px; transition: all var(--transition); position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-icon { width: 58px; height: 58px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 0.9rem; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.82rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; transition: gap var(--transition); }
.card-link:hover { gap: 10px; }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%); padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4a468' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
.breadcrumb a { color: var(--gold-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 600px; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 52px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px; background: var(--gray-light); }
.step { text-align: center; padding: 0 20px; }
.step-num { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--gold); background: var(--white); position: relative; z-index: 1; }
.step h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.88rem; }

/* ── NAVY SECTION ── */
.section-navy { background: var(--navy); }
.section-navy .section-title { color: var(--white); }
.section-navy .section-intro { color: rgba(255,255,255,0.72); }
.section-navy p { color: rgba(255,255,255,0.72); }
.section-alt { background: var(--off-white); }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: var(--navy-dark); margin-bottom: 14px; }
.cta-banner p { color: rgba(26,48,96,0.75); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 70px 0 0; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.75; margin-top: 18px; max-width: 280px; }
.footer-spanish { display: inline-block; margin-top: 12px; font-size: 0.78rem; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; border: 1px solid rgba(196,164,104,0.3); padding: 5px 10px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(196,164,104,0.2); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-contact-item a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-contact-icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 20px; list-style: none; }
.footer-bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ── TEAM CARDS ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 52px; }
.team-card { background: var(--white); border: 1px solid var(--gray-light); overflow: hidden; transition: all var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(196,164,104,0.35); }
.team-info { padding: 20px; border-top: 3px solid var(--gold); }
.team-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.team-info p { font-size: 0.8rem; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: var(--gold-pale); border-left: 4px solid var(--gold); padding: 24px 28px; margin: 28px 0; }
.highlight-box p { color: var(--text-dark); font-size: 0.95rem; }

/* ── SPANISH OVERRIDE ── */
body.es [data-en] { display: none; }
body:not(.es) [data-es] { display: none; }

/* ── ACCORDION ── */
.accordion { margin-top: 40px; }
.accordion-item { border-bottom: 1px solid var(--gray-light); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--navy); text-align: left; }
.accordion-trigger span { color: var(--gold); font-size: 1.4rem; transition: transform var(--transition); }
.accordion-trigger.open span { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body p { padding: 0 0 20px; font-size: 0.95rem; }

/* ── SIDEBAR ── */
.content-with-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 56px; }
.sidebar { position: sticky; top: 108px; height: fit-content; }
.sidebar-nav { background: var(--off-white); padding: 28px; border-left: 3px solid var(--gold); }
.sidebar-nav h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav ul li a { display: block; padding: 9px 14px; font-size: 0.9rem; font-weight: 600; color: var(--text-mid); border-radius: var(--radius); transition: all var(--transition); }
.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active { background: var(--navy); color: var(--white); padding-left: 18px; }

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet — 1024px and below */
@media (max-width: 1024px) {
  .navbar .container { height: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet — 768px and below */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* NAV — mobile */
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    z-index: 999;
    border-top: 3px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 24px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-menu > li > a::after { display: none; }
  .dropdown { display: none !important; position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,0.04); padding: 4px 0; }
  .has-dropdown.open .dropdown { display: block !important; }
  .dropdown li a { padding: 10px 24px 10px 36px; font-size: 0.85rem; color: rgba(255,255,255,0.65); border-left: none; }
  .dropdown li a:hover { background: rgba(196,164,104,0.1); color: var(--gold-light); padding-left: 40px; }
  .nav-right .btn { display: none; }
  .lang-toggle { font-size: 0.72rem; padding: 6px 10px; }

  /* STATS */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(26,48,96,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(26,48,96,0.15); }

  /* GRIDS — stack on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* HERO */
  .hero { min-height: auto; padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 14px; }

  /* PAGE HERO */
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* CARDS */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  footer { padding: 48px 0 0; }

  /* CTA */
  .cta-banner { padding: 56px 0; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
  .cta-banner-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* CONTENT SIDEBAR */
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  /* STEPS */
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
  section { padding: 44px 0; }
  .container { padding: 0 16px; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.5rem; }

  .steps-grid { grid-template-columns: 1fr; }

  /* Action cards on homepage */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:14px"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:12px"] {
    grid-template-columns: 1fr !important;
  }

  .btn { padding: 13px 20px; font-size: 0.82rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 1.5rem; }

  .cta-banner { padding: 44px 0; }
}


/* ============================================
   MOBILE POLISH PATCH — APR 2026
   ============================================ */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

.navbar .container { gap: 16px; }
.nav-right { flex-shrink: 0; }
.nav-menu a, .btn, .lang-toggle, .hamburger { touch-action: manipulation; }

@media (max-width: 768px) {
  body.nav-open { overflow: hidden; }
  .navbar .container {
    height: auto;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
  .logo-wrap { min-width: 0; flex: 1; }
  .logo-shield { width: 42px; height: auto; }
  .logo-kapstone { font-size: 1rem !important; }
  .logo-title-text { font-size: 0.5rem !important; }
  .nav-right { gap: 8px; }
  .lang-toggle {
    min-height: 40px;
    white-space: nowrap;
  }
  .hamburger {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
  }
  .hamburger span { width: 18px; }
  .nav-menu {
    top: 72px;
    max-height: calc(100vh - 72px);
    padding-bottom: 40px;
  }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
  }
  .has-dropdown.open > a {
    color: var(--gold-light);
    background: rgba(196,164,104,0.08);
  }
  .has-dropdown > a::before {
    content: '+';
    order: 2;
    margin-left: 12px;
    font-size: 1.1rem;
    color: var(--gold);
  }
  .has-dropdown.open > a::before { content: '−'; }
  .nav-menu > li:not(.has-dropdown) > a::before { content: ''; margin: 0; }
  .dropdown li a {
    min-height: 42px;
    display: flex;
    align-items: center;
    line-height: 1.4;
  }

  .page-hero-content,
  .breadcrumb { overflow-wrap: anywhere; }

  [style*="display:flex;gap:20px;align-items:flex-start"],
  [style*="display:flex; gap:20px; align-items:flex-start"],
  [style*="display:flex;justify-content:space-between;align-items:center"],
  [style*="display:flex; justify-content:space-between; align-items:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  [style*="padding:48px"],
  [style*="padding: 48px"],
  [style*="padding:56px"],
  [style*="padding: 56px"] {
    padding: 28px !important;
  }

  .values-grid-3,
  .team-cards,
  .about-block,
  .about-block.reverse,
  .card-grid,
  .footer-contact-item {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .lang-toggle .lang-label { display: none; }
  .nav-right { margin-left: auto; }
  .logo-shield { width: 38px; }
  .logo-kapstone { font-size: 0.9rem !important; }
  .logo-title-text { font-size: 0.46rem !important; }

  .values-grid-3 { grid-template-columns: 1fr !important; }
  .about-hero,
  .page-hero,
  .hero { min-height: auto !important; }

  [style*="font-size:clamp(2rem,4vw,3.2rem)"],
  [style*="font-size: clamp(2rem, 4vw, 3.2rem)"] {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
  }

  [style*="font-size:1.05rem;color:var(--text-mid)"],
  [style*="font-size: 1.05rem; color: var(--text-mid)"],
  .about-hero p {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  .card,
  .step,
  .value-item,
  .team-card-item,
  .sidebar-nav,
  .highlight-box { padding-left: 20px !important; padding-right: 20px !important; }

  .footer-contact-item { gap: 8px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item,
  .stat-item:nth-child(odd) {
    border-right: none;
  }
  .stat-item:last-child { border-bottom: none; }

  .btn,
  .lang-toggle {
    min-height: 42px;
  }

  [style*="width:32px;height:32px;background:var(--navy)"],
  [style*="width: 32px; height: 32px; background: var(--navy)"] {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }

  [style*="max-width:620px"],
  [style*="max-width: 620px"] {
    max-width: 100% !important;
  }

  [style*="padding:20px"],
  [style*="padding: 20px"] {
    padding: 16px !important;
  }
}

/* ── HOMEPAGE IMAGE SLIDER ── */
.home-hero-slider {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slider-track,
.hero-slider-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-overlay {
  background: linear-gradient(
    180deg,
    rgba(11,31,75,0.58) 0%,
    rgba(11,31,75,0.48) 35%,
    rgba(11,31,75,0.52) 65%,
    rgba(11,31,75,0.60) 100%
  );
  z-index: 1;
}

.hero-slider-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-slider-copy {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 110px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-slider-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
  text-align: center;
}

.hero-slider-label::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.hero-slider-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 1200px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.hero-slider-text {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.hero-slider-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .home-hero-slider {
    min-height: 680px;
    align-items: center;
  }

  .hero-slider-overlay {
    background: linear-gradient(
      180deg,
      rgba(11,31,75,0.46) 0%,
      rgba(11,31,75,0.62) 38%,
      rgba(11,31,75,0.82) 100%
    );
  }

  .hero-slider-copy {
    max-width: 100%;
    padding: 70px 0 90px;
  }

  .hero-slider-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
  }

  .hero-slider-title {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.35;
    max-width: 95%;
    margin-bottom: 20px;
  }

  .hero-slider-text {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 92%;
  }

  .hero-slider-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-slider-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-hero-slider {
    min-height: 620px;
  }

  .hero-slider-copy {
    padding: 56px 0 84px;
  }

  .hero-slider-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-slider-dots {
    bottom: 18px;
  }
}