/* ==========================================================================
   Edventa Study Abroad — stylesheet

   The palette is taken straight from the logo: an indigo-violet wordmark,
   a cyan accent and a neutral grey sub-line. Change these values and the
   whole site follows.
   ========================================================================== */

:root {
  --brand:        #5A43E9;   /* logo violet */
  --brand-dark:   #2F2196;   /* deep violet — header bar, footer */
  --brand-light:  #7B67F2;   /* lighter violet — links, hovers */
  --accent:       #29B2E5;   /* logo cyan */
  --accent-dark:  #1B94C4;

  --ink:          #1B1B2B;
  --ink-soft:     #545469;
  --ink-faint:    #808285;   /* logo grey */
  --line:         #e7e4f5;
  --bg:           #ffffff;
  --bg-soft:      #f8f7fd;
  --bg-tint:      #eeebfd;

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(40,26,110,.06), 0 2px 8px rgba(40,26,110,.05);
  --shadow:       0 4px 12px rgba(40,26,110,.08), 0 14px 34px rgba(40,26,110,.09);
  --shadow-lg:    0 10px 24px rgba(40,26,110,.10), 0 30px 60px rgba(40,26,110,.14);

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 22px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.icon { flex: none; vertical-align: -.15em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------------------------------------- structure -- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: clamp(38px, 5vw, 64px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--brand-dark); color: #e3ddfa; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.stack > * + * { margin-top: 1rem; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--ink-soft); }
.section-dark .lead { color: #c0b4ee; }
.display { font-size: clamp(3rem, 8vw, 5rem); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .95rem/1 var(--sans); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-primary { --btn-bg: var(--brand); --btn-bd: var(--brand); }
.btn-primary:hover { --btn-bg: var(--brand-dark); --btn-bd: var(--brand-dark); }
.btn-accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #04283a; }
.btn-accent:hover { --btn-bg: var(--accent-dark); --btn-bd: var(--accent-dark); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--line); }
.btn-outline:hover { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn-ghost-light:hover { --btn-bg: rgba(255,255,255,.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------- glass header */
/* One floating, frosted panel holding the branch-numbers bar and the main
   navigation. It overlaps the violet hero / page banner so the blur shows. */
:root { --hdr-h: 134px; --hdr-top: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--hdr-h); margin-bottom: calc(-1 * var(--hdr-h));
  padding-top: var(--hdr-top); pointer-events: none;
}
.glass-bar {
  pointer-events: auto; position: relative;
  color: #fff; border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, rgba(41,178,229,.10)),
    rgba(37, 25, 120, .42);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 34px rgba(20, 12, 70, .22), inset 0 1px 0 rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  transition: background .25s ease, box-shadow .25s ease;
}
/* Scrolled over white content: deepen the glass so text stays readable. */
.site-header.is-stuck .glass-bar,
body:not(:has(.hero, .page-head)) .glass-bar {
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 55%, rgba(41,178,229,.08)),
    rgba(37, 25, 120, .80);
  box-shadow: 0 12px 36px rgba(20, 12, 70, .30), inset 0 1px 0 rgba(255,255,255,.18);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-bar { background: rgba(37, 25, 120, .92); }
}
.glass-bar a { color: #fff; }

/* Branch numbers bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 46px; padding: 0 22px; font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.topbar-contact { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.88); white-space: nowrap; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact .icon { color: var(--accent); flex: none; }
.tb-phone span:last-child { font-weight: 600; color: #fff; letter-spacing: .01em; }
.branch-tag {
  display: inline-grid; place-items: center; min-width: 36px; height: 20px; padding: 0 6px;
  border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; line-height: 1;
  color: #1c1360; background: linear-gradient(135deg, #8fe0ff, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.topbar-socials { display: flex; gap: 8px; flex: none; }
.topbar-socials a {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
}
.topbar-socials a:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Navigation row */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 0 16px 0 22px; }

/* Brand lockup — a stand-in that follows the logo's violet / cyan / grey
   system. Drop a real logo-light.svg into assets/img/ and it is used instead. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand-logo { height: 44px; width: auto; }
.brand-mark { display: grid; place-items: center; color: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-text strong {
  font-size: 1.55rem; font-weight: 700; letter-spacing: -.025em;
  color: #fff; text-transform: lowercase; white-space: nowrap;
}
.brand-text strong .e-accent { position: relative; display: inline-block; }
/* The cyan half-dome that sits inside the counter of the "e". */
.brand-text strong .e-accent::after {
  content: ""; position: absolute; left: 50%; top: .34em;
  width: .30em; height: .15em; transform: translateX(-50%);
  background: var(--accent); border-radius: .30em .30em 0 0;
  pointer-events: none;
}
.brand-text small {
  margin-top: 4px; font-size: .56rem; font-weight: 700;
  letter-spacing: .21em; text-transform: uppercase; color: rgba(255,255,255,.66);
}

.primary-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 11px;
  font-size: .93rem; font-weight: 600; color: #fff;
  transition: background .16s ease, color .16s ease;
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { background: rgba(255,255,255,.14); color: #fff; }
.nav-list > li.is-active > a { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.caret { width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 30;
  min-width: 240px; max-height: 70vh; overflow-y: auto; padding: 8px; margin: 0; list-style: none;
  background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.glass-bar .dropdown a { display: block; padding: 9px 13px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.glass-bar .dropdown a:hover { background: var(--bg-tint); color: var(--brand); }

.btn-glass {
  --btn-bg: rgba(255,255,255,.16); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-glass:hover { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }

.header-phones { display: grid; gap: 5px; flex: none; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); }
.header-phones a { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.header-phones .icon { color: var(--accent); }
.header-phones .branch-tag { min-width: 32px; height: 18px; font-size: .6rem; }

.nav-toggle { display: none; width: 44px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; background: rgba(255,255,255,.1); cursor: pointer; padding: 10px 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Make room under the floating header on every page. */
.hero-inner { padding-top: calc(var(--hdr-h) + 34px) !important; }
.page-head { padding-top: calc(var(--hdr-h) + clamp(30px, 4vw, 52px)) !important; }
main > section:first-child:not(.hero):not(.page-head) { padding-top: calc(var(--hdr-h) + 40px); }

/* social icon circles (footer) */
.socials { display: flex; gap: 6px; }
.socials a {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.08); transition: background .18s ease;
}
.socials a:hover { background: var(--accent); color: #04283a; }


/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: linear-gradient(150deg, var(--brand-dark), var(--brand) 48%, var(--brand-light)); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 82% 22%, rgba(255,255,255,.16), transparent 62%),
              radial-gradient(520px 380px at 8% 92%, rgba(240,165,0,.20), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; padding-block: clamp(52px, 7vw, 92px); }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { color: #ded6fb; font-size: 1.1rem; max-width: 54ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero-float {
  position: absolute; left: -18px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 14px 18px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero-float strong { display: block; font-size: 1.35rem; color: var(--brand); line-height: 1; }
.hero-float span { font-size: .78rem; color: var(--ink-faint); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat span { font-size: .88rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- cards */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfc6f2; }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--brand-light); }
.card-text { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; }
.card-link:hover .icon { transform: translateX(3px); }
.card-link .icon { transition: transform .18s ease; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--bg-tint); color: var(--brand-light);
}
.tag-accent { background: rgba(41,178,229,.16); color: #0d5d7d; }
.card-media .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--ink-faint); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------- services */
.service-card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(140deg, var(--brand), var(--brand-light)); color: #fff; margin-bottom: 16px; }
.service-icon img { width: 30px; height: 30px; object-fit: contain; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------- features */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 34px; margin-bottom: 13px; color: var(--ink-soft); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(90,67,233,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A43E9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.section-dark .tick-list li { color: #c8bcf0; }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 16px; }
.feature .fi { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--bg-tint); color: var(--brand); }
.feature h3 { font-size: 1.05rem; margin-bottom: .25em; }
.feature p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------ page head */
.page-head { position: relative; background: linear-gradient(140deg, var(--brand-dark), var(--brand-light)); color: #fff; padding: clamp(44px, 6vw, 76px) 0; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 78% 20%, rgba(255,255,255,.14), transparent 60%); }
.page-head > .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #dcd4fa; max-width: 68ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .84rem; color: #bdb0ec; }
.breadcrumb a { color: #e0d9fb; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(29,95,168,.13);
}
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .93rem; }
.alert-ok { background: #e7f7ee; color: #10653a; border: 1px solid #b7e6cd; }
.alert-err { background: #fdecec; color: #8c1d1d; border: 1px solid #f5c4c4; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .9rem; }
.newsletter-form input::placeholder { color: #9c8fd0; }

/* ---------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
table.data th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; background: none; border: 0; font: 600 1rem/1.4 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.acc-head::after { content: "+"; font-size: 1.35rem; color: var(--brand-light); flex: none; }
.acc-item.open .acc-head::after { content: "−"; }
.acc-body { display: none; padding: 0 20px 20px; color: var(--ink-soft); font-size: .95rem; }
.acc-item.open .acc-body { display: block; }

/* -------------------------------------------------------------- profile */
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--bg-tint); }
.person h3 { font-size: 1rem; margin-bottom: .15em; }
.person p { font-size: .82rem; color: var(--ink-faint); margin: 0; }

/* ------------------------------------------------------------- branches */
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.branch h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.branch .head-tag { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #04283a; padding: 3px 9px; border-radius: 999px; }
.branch ul { list-style: none; padding: 0; margin: 0 0 16px; }
.branch li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 9px; }
.branch li .icon { margin-top: 4px; color: var(--brand-light); }
.branch .btn { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------ prose/article */
.prose { max-width: 74ch; font-size: 1.02rem; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 1.22rem; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul li { margin-bottom: .5em; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 22px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.widget h3 { font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: 11px; }
.widget a { font-size: .92rem; color: var(--ink); font-weight: 500; }
.widget a:hover { color: var(--brand-light); }
.mini-post { display: flex; gap: 12px; align-items: flex-start; }
.mini-post img { width: 62px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.mini-post small { display: block; color: var(--ink-faint); font-size: .76rem; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.chip:hover, .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------- pager */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------------ testimonial */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.quote-card .icon-quote { color: var(--accent); margin-bottom: 12px; }
.quote-card p { font-family: var(--serif); font-size: 1.03rem; color: var(--ink); flex: 1; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-who strong { display: block; font-size: .93rem; }
.quote-who span { font-size: .8rem; color: var(--ink-faint); }

/* ------------------------------------------------------------ partners */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.logo-tile { display: grid; place-items: center; padding: 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 96px; text-align: center; font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.logo-tile img { max-height: 46px; width: auto; object-fit: contain; }

/* -------------------------------------------------------------- cta/footer */
.cta-strip { background: linear-gradient(120deg, var(--brand), var(--brand-light)); color: #fff; padding: clamp(38px, 5vw, 58px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; margin-bottom: .25em; }
.cta-strip p { color: #ded7fb; margin: 0; max-width: 60ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--brand-dark); color: #b6a9e4; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding: clamp(44px, 5vw, 70px) var(--gutter); }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #b6a9e4; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 10px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #b3a8e6; }
.footer-desc { color: #a496da; }
.footer-contact { list-style: none; padding: 0; margin: 18px 0; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.socials-footer a { width: 34px; height: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand); font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------- reveal fx
   Content is visible by default. Only when JavaScript is running (the `js`
   class is set on <html>) is it hidden ready to animate in on scroll — so a
   failed script, a crawler or a no-JS browser still sees the whole page. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .header-phones { display: none; }
}
@media (max-width: 1100px) {
  .tb-extra:last-child { display: none; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  :root { --hdr-h: 124px; --hdr-top: 10px; }
  .tb-extra, .topbar-socials { display: none !important; }
  .topbar { min-height: 40px; padding: 0 16px; }
  .header-inner { min-height: 64px; padding: 0 12px 0 16px; }
  .primary-nav {
    /* absolute: the glass panel's backdrop-filter is the containing block */
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 55;
    max-height: calc(100vh - var(--hdr-h) - 24px); max-height: calc(100dvh - var(--hdr-h) - 24px);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.8); border-radius: 20px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
    padding: 12px 20px 26px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .primary-nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li > a { display: flex; }
  .nav-list > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; color: var(--ink); }
  .nav-list > li > a:hover, .nav-list > li.is-active > a { background: none; color: var(--brand); box-shadow: none; }
  .dropdown { max-height: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-glass { --btn-bg: var(--brand); --btn-bd: var(--brand); --btn-fg: #fff; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; padding: 4px 0 10px 12px; display: none;
  }
  .has-dropdown.open > .dropdown { display: block; }
  .has-dropdown:hover > .dropdown { display: none; }
  .has-dropdown.open:hover > .dropdown { display: block; }
  .nav-cta { margin-top: 22px; }
  .nav-cta .btn { width: 100%; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-float { left: 12px; bottom: -18px; }
}
@media (max-width: 700px) {
  .topbar-contact { gap: 14px; }
  .topbar-contact .icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .topbar { justify-content: center; }
  .tb-phone { font-size: .8rem; }
  .brand-text strong { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .whatsapp-float { width: 48px; height: 48px; }
}

/* ------------------------------------------------------------- printing */
@media print {
  .topbar, .site-header, .cta-strip, .site-footer, .whatsapp-float, .to-top { display: none !important; }
  body { color: #000; }
}

/* Brand lockup on light cards (e.g. admin sign-in) keeps the violet colours. */
.form-card .brand, .form-card .brand-mark, .form-card .brand-text strong { color: var(--brand); }
.form-card .brand-text small { color: var(--ink-faint); }