/* ============================================================
   Anglais Marketing Website — UI kit
   Vanilla CSS. Tokens imported from /colors_and_type.css.
   ============================================================ */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--surface-1); color: var(--ink-1); font-family: var(--font-sans); }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
textarea { font-family: var(--font-sans); resize: vertical; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ----- UTILITY BAR ----- */
.utility { background: var(--brand-ink); color: rgba(255,255,255,.85); font-size: 12.5px; height: 38px; }
.utility .container { display: flex; align-items: center; gap: 22px; height: 100%; }
.utility .item { display: inline-flex; align-items: center; gap: 6px; }
.utility .right { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
.utility a { color: rgba(255,255,255,.85); }
.utility a:hover { color: var(--brand-coral); }

/* ----- HEADER ----- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-1); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand img { height: 34px; }
.nav-links { display: flex; gap: 6px; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--radius-sm); transition: color 160ms var(--ease-out); display: inline-flex; align-items: center; gap: 4px; }
.nav-links a:hover { color: var(--brand-coral); }
.nav-links a.active { color: var(--ink-1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink-1); padding: 4px; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a { cursor: pointer; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px; gap: 24px;
  min-width: 620px; z-index: 100;
  display: grid; grid-template-columns: repeat(3, 1fr);
  opacity: 0; visibility: hidden; pointer-events: none;
  /* delayed, fading close so the menu tolerates the gap / corner-cutting */
  transition: opacity 200ms var(--ease-out) 120ms, transform 200ms var(--ease-out) 120ms, visibility 0s linear 340ms;
}
/* invisible bridge across the 12px gap keeps hover continuous into the menu */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.active .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s;
}
.dropdown-col { display: flex; flex-direction: column; gap: 4px; }
.dropdown-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); padding: 0 10px 8px; border-bottom: 1px solid var(--border-1); margin-bottom: 4px; }
.dropdown a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 7px 10px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--brand-coral-50); color: var(--brand-coral); }


/* ----- BUTTONS ----- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 14px 24px; line-height: 1; border: 0; cursor: pointer; transition: all 180ms var(--ease-out); text-decoration: none; }
.btn.primary { background: var(--brand-coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn.primary:hover { background: var(--brand-coral-600); transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--ink-1); border: 1.5px solid var(--border-strong); padding: 12.5px 22.5px; }
.btn.outline:hover { background: var(--ink-1); color: #fff; }

/* ----- HERO ----- */
.hero { padding: 56px 0 64px; }
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-coral); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand-coral); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -.02em; color: var(--ink-1); margin: 0 0 22px; }
.hero h1 .accent { color: var(--brand-coral); }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 52ch; margin: 0 0 32px; }
.hero .cta-row { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero .meta-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero .meta-row .item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.hero .meta-row .item svg { color: var(--brand-coral); }

.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.hero-slider { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; max-height: 520px; box-shadow: var(--shadow-lg); background: var(--surface-3); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-dots { display: flex; justify-content: center; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border-2); cursor: pointer; transition: all 250ms var(--ease-out); border: none; padding: 0; }
.slider-dot.active { background: var(--brand-coral); width: 24px; }

/* ----- TRUST STRIP ----- */
.trust { background: var(--surface-0); border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); padding: 22px 0; }
.trust .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.trust .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-4); white-space: nowrap; }
.trust .logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust .uni { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-4); letter-spacing: -.01em; }

/* ----- SECTIONS ----- */
.section { padding: 96px 0; }
.section.alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-coral); margin-bottom: 14px; display: block; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; color: var(--ink-1); }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* ----- SERVICES GRID ----- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--border-1); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: all 220ms var(--ease-out); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.service-card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-coral-50); color: var(--brand-coral); display: flex; align-items: center; justify-content: center; }
.service-card .icon-wrap svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h4 { font-size: 16px; font-weight: 700; color: var(--ink-1); margin: 0; }
.service-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; flex: 1; }
.service-card .link { font-size: 13px; font-weight: 600; color: var(--brand-coral); margin-top: auto; }

/* ----- DESTINATIONS GRID ----- */
.destinations-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dest-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; display: block; box-shadow: var(--shadow-sm); }
.dest-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 450ms var(--ease-out); }
.dest-card:hover img { transform: scale(1.06); }
.dest-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 36px 16px 16px; background: linear-gradient(to top, rgba(10,10,10,.82) 0%, transparent 100%); }
.dest-overlay h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 3px; }
.dest-overlay p { font-size: 11px; color: rgba(255,255,255,.75); margin: 0; line-height: 1.4; }

/* ----- PROGRAMS ----- */
.prog-group-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px; }
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.programs.three-col { grid-template-columns: repeat(3, 1fr); }
.program-card { background: #fff; border: 1px solid var(--border-1); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: all 220ms var(--ease-out); position: relative; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.program-card .icon-wrap { width: 50px; height: 50px; border-radius: 13px; background: var(--brand-coral-50); color: var(--brand-coral); display: flex; align-items: center; justify-content: center; }
.program-card .icon-wrap svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge-tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; background: var(--brand-coral); color: #fff; }
.program-card h3 { font-weight: 700; font-size: 19px; color: var(--ink-1); margin: 0; line-height: 1.25; }
.program-card .desc { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0; flex: 1; }
.program-card .link { font-size: 13.5px; font-weight: 600; color: var(--brand-coral); margin-top: auto; }

/* ----- RESULTS GRID ----- */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.result-card { background: #fff; border: 1px solid var(--border-1); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.result-card.featured { background: var(--brand-ink); border-color: transparent; }
.r-score { display: flex; align-items: baseline; gap: 8px; }
.r-score .exam { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-coral); }
.result-card.featured .r-score .exam { color: rgba(248,92,70,.9); }
.r-score .band { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--ink-1); }
.result-card.featured .r-score .band { color: #fff; }
.r-name { font-weight: 700; font-size: 15px; color: var(--ink-1); }
.result-card.featured .r-name { color: #fff; }
.r-detail { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.result-card.featured .r-detail { color: rgba(255,255,255,.6); }
.link.small { font-size: 12px; font-weight: 600; color: var(--brand-coral); }

/* ----- PHILOSOPHY ----- */
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.phil-card { background: #fff; border: 1px solid var(--border-1); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.phil-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-coral-50); color: var(--brand-coral); display: flex; align-items: center; justify-content: center; }
.phil-icon svg { width: 26px; height: 26px; }
.phil-card h4 { font-size: 18px; font-weight: 700; color: var(--ink-1); margin: 0; }
.phil-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; font-style: italic; }

/* ----- TESTIMONIALS CAROUSEL ----- */
.tcarousel { position: relative; overflow: hidden; }
.tcarousel-track { display: flex; gap: 20px; transition: transform 420ms var(--ease-out); }
.tcard { background: var(--surface-0); border: 1px solid var(--border-1); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 18px; flex: 0 0 calc((100% - 40px) / 3); min-width: 0; }
.tcard .stars { color: #F2B544; font-size: 14px; letter-spacing: 2px; }
.tcard .quote { font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 1.55; color: var(--ink-1); flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .t-photo { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border-1); }
.tcard .who .name { font-weight: 700; font-size: 14px; color: var(--ink-1); }
.tcard .who .sub { font-size: 12px; color: var(--ink-3); }
.tcarousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.tc-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--border-2); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all 180ms var(--ease-out); }
.tc-btn:hover { background: var(--brand-coral); border-color: var(--brand-coral); color: #fff; }
.tc-dots { display: flex; gap: 8px; align-items: center; }
.tc-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border-2); cursor: pointer; transition: all 250ms var(--ease-out); border: none; padding: 0; }
.tc-dot.active { background: var(--brand-coral); width: 24px; }

/* ----- TEAM ----- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 840px; margin: 0 auto; }
.team-card { background: #fff; border: 1px solid var(--border-1); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.team-photo { width: 100%; height: 260px; object-fit: cover; object-position: top; border-radius: 16px; display: block; margin-bottom: 4px; }
.team-card h4 { font-size: 20px; font-weight: 700; color: var(--ink-1); margin: 0; }
.team-role { font-size: 13px; font-weight: 600; color: var(--brand-coral); text-transform: uppercase; letter-spacing: .06em; }
.team-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-3); margin: 0; }
.team-socials { display: flex; gap: 8px; }
.team-socials a { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: all 160ms var(--ease-out); }
.team-socials a:hover { background: var(--brand-coral); color: #fff; }

/* ----- CTA BANNER ----- */
.cta-banner { background: var(--brand-ink); color: #fff; border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 999px; background: radial-gradient(circle at center, rgba(248,92,70,.55), transparent 65%); }
.cta-banner .text { position: relative; max-width: 60ch; }
.cta-banner .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-coral); display: block; margin-bottom: 12px; }
.cta-banner h3 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; color: #fff; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.7); margin: 0; }
.cta-banner .actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- CONTACT ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.c-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-coral-50); color: var(--brand-coral); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 20px; height: 20px; }
.c-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.c-val { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.c-val.link { color: var(--brand-coral); font-weight: 600; }

.contact-form { background: #fff; border: 1px solid var(--border-1); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field .lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 14px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-2); background: #fff; transition: all 160ms var(--ease-out); color: var(--ink-1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-coral); box-shadow: 0 0 0 4px rgba(248,92,70,.12); }
.submit-btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ----- FOOTER ----- */
.footer { background: #0A0A0A; color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer .brand-col img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer .brand-col p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); margin: 0 0 18px; max-width: 30ch; }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background 160ms var(--ease-out); }
.footer .socials a:hover { background: var(--brand-coral); }
.footer h5 { font-family: var(--font-sans); font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 16px; letter-spacing: .06em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.65); font-size: 14px; transition: color 160ms; }
.footer ul a:hover { color: var(--brand-coral); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--brand-coral); }

@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ----- SHARED LINK STYLE ----- */
.link { font-size: 14px; font-weight: 600; color: var(--brand-coral); display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--brand-coral-700); }

/* ----- RESPONSIVE ----- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .destinations-grid { grid-template-columns: repeat(4, 1fr); }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-slider { aspect-ratio: 16/9; max-height: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .destinations-grid { grid-template-columns: repeat(3, 1fr); }
  .programs, .programs.three-col { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .tcard { flex: 0 0 calc((100% - 20px) / 2); }
  .team-grid { grid-template-columns: 1fr; max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; padding: 40px; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border-1); padding: 16px 28px 24px; flex-direction: column; align-items: flex-start; gap: 0; z-index: 40; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--border-1); width: 100%; }
  .dropdown { display: none !important; position: static; transform: none; min-width: 0; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 16px; grid-template-columns: 1fr; transition: none; }
  .nav-item.active .dropdown { display: flex !important; flex-direction: column; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .dropdown::before { display: none; }
  .nav-toggle { display: flex; }
  .hv-float.score { left: -10px; }
  .hv-float.badge { right: -10px; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .programs, .programs.three-col { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .trust .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-banner { padding: 28px; }
}
