/* Premium polish layer, loaded after styles.css. Presentation only: no content or markup changes. */

:root {
  --pm-navy: #0c1f32;
  --pm-navy-deep: #081725;
  --pm-gold: #b38b44;
  --pm-gold-soft: #d9bf86;
  --pm-paper: #faf8f4;
  --pm-line: #ebe7df;
  --pm-radius: 14px;
  --pm-shadow-sm: 0 1px 2px rgba(12, 31, 50, .05), 0 6px 18px -10px rgba(12, 31, 50, .14);
  --pm-shadow-md: 0 2px 4px rgba(12, 31, 50, .04), 0 18px 40px -18px rgba(12, 31, 50, .22);
  --pm-shadow-lg: 0 4px 8px rgba(12, 31, 50, .05), 0 30px 60px -24px rgba(12, 31, 50, .30);
  --pm-ease: cubic-bezier(.2, .7, .15, 1);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 {
  line-height: 1.12;
}
p {
  text-wrap: pretty;
}
.section-kicker,
.hero-kicker {
  font-weight: 600;
  letter-spacing: .02em;
}
.gold-rule,
.section-kicker::before,
.hero-kicker::before {
  box-shadow: 0 0 0 0 rgba(179, 139, 68, 0);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(12, 31, 50, .06), 0 10px 30px -24px rgba(12, 31, 50, .35);
}
.main-nav a {
  position: relative;
  transition: color .3s var(--pm-ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pm-gold), var(--pm-gold-soft));
  transform: scaleX(0);
  transition: transform .45s var(--pm-ease);
}
.main-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.button {
  border-radius: 10px;
  letter-spacing: .01em;
  transition: transform .35s var(--pm-ease), box-shadow .35s var(--pm-ease), background-color .35s var(--pm-ease), color .35s var(--pm-ease);
  box-shadow: 0 12px 24px -14px rgba(12, 31, 50, .6);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(12, 31, 50, .65);
}
.button:active {
  transform: translateY(0) scale(.99);
}
.text-link {
  transition: color .3s var(--pm-ease), border-color .3s var(--pm-ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12% -18% auto auto;
  width: 72%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(179, 139, 68, .12), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
@keyframes pm-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy {
  animation: pm-rise .9s var(--pm-ease) both;
}
.hero-visual {
  animation: pm-rise 1.1s .15s var(--pm-ease) both;
}
.hero-photo-frame {
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow-lg);
}
.photo-note {
  border-radius: 12px;
  box-shadow: var(--pm-shadow-md);
}
.service-ribbon a {
  border-radius: 12px;
  transition: background-color .4s var(--pm-ease), box-shadow .4s var(--pm-ease), transform .4s var(--pm-ease);
}
.service-ribbon a:hover {
  background: #fff;
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-3px);
}

/* ---------- Section rhythm ---------- */
.section {
  position: relative;
}
.recognition-section {
  background: linear-gradient(180deg, var(--pm-paper), #f4f1ea);
}
.about-section {
  background: linear-gradient(180deg, #f6f3ec, var(--pm-paper));
}

/* ---------- Courses ---------- */
.level-list button {
  border-radius: 10px;
  transition: background-color .3s var(--pm-ease), color .3s var(--pm-ease), transform .3s var(--pm-ease);
}
.level-list button:hover {
  transform: translateX(-3px);
}
.level-panel {
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--pm-shadow-md);
  background: #fff;
}
.level-photo img,
.level-photo {
  transition: transform 1.2s var(--pm-ease);
}
.level-panel:hover .level-photo img {
  transform: scale(1.025);
}
.level-outcomes li,
.level-outcomes span {
  border-radius: 999px;
}

/* ---------- Exams ---------- */
.exam-image,
.translation-image {
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--pm-shadow-lg);
}
.exam-image::after,
.translation-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 23, 37, .45));
  pointer-events: none;
}
.exam-image img,
.translation-image > img {
  transition: transform 1.4s var(--pm-ease);
}
.exam-image:hover img,
.translation-image:hover > img {
  transform: scale(1.035);
}
.exam-levels b {
  border-radius: 999px;
  transition: background-color .3s var(--pm-ease), color .3s var(--pm-ease);
}
.exam-levels b:hover {
  background: var(--pm-navy);
  color: #fff;
}

/* ---------- Recognition ---------- */
.recognition-block {
  position: relative;
  transition: background-color .4s var(--pm-ease);
}
.recognition-block:hover {
  background: rgba(255, 255, 255, .6);
}
.recognition-block::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pm-gold), var(--pm-gold-soft));
  transition: width .6s var(--pm-ease);
}
.recognition-block:hover::before {
  width: 100%;
}
.document-list li {
  border-radius: 999px;
  transition: border-color .3s var(--pm-ease), color .3s var(--pm-ease);
}
.document-list li:hover {
  border-color: var(--pm-gold);
  color: var(--pm-navy);
}

/* ---------- Translation ---------- */
.translation-stamp {
  box-shadow: var(--pm-shadow-md);
}
.discount-note {
  border-radius: 12px;
}

/* ---------- Partners ---------- */
.partners-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* ---------- About ---------- */
.about-card {
  border-radius: var(--pm-radius);
  background: #fff;
  box-shadow: var(--pm-shadow-sm);
  transition: transform .45s var(--pm-ease), box-shadow .45s var(--pm-ease);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow-md);
}
.about-portrait {
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--pm-gold-soft), var(--pm-shadow-sm);
}

/* ---------- Contact and forms ---------- */
.contact-form input,
.contact-form select,
.contact-form textarea,
.phone-controls select,
.phone-controls input {
  border-radius: 10px;
  transition: border-color .3s var(--pm-ease), box-shadow .3s var(--pm-ease), background-color .3s var(--pm-ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.phone-controls select:focus,
.phone-controls input:focus {
  border-color: var(--pm-gold);
  box-shadow: 0 0 0 4px rgba(179, 139, 68, .14);
  outline: none;
}
.submit-actions .button {
  min-width: 220px;
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(24, 118, 77, .55);
  transition: transform .3s var(--pm-ease), box-shadow .3s var(--pm-ease);
}
.floating-whatsapp:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--pm-navy), var(--pm-navy-deep));
  color: rgba(255, 255, 255, .78);
  border-top: 1px solid rgba(217, 191, 134, .18);
}
.site-footer a {
  color: rgba(255, 255, 255, .9);
  transition: color .3s var(--pm-ease);
}
.site-footer a:hover {
  color: var(--pm-gold-soft);
}
.footer-brand {
  color: #fff;
  letter-spacing: -.01em;
}
.site-footer small,
.site-footer > p,
.site-credit {
  color: rgba(255, 255, 255, .5) !important;
}
.footer-links {
  gap: 20px;
}

/* ---------- Cookie notice ---------- */
#cookie-notice,
.cookie-notice,
.cookie-banner {
  border-radius: 14px;
  box-shadow: var(--pm-shadow-lg);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  h2 {
    line-height: 1.18;
  }
  .hero-copy {
    animation-duration: .7s;
  }
  .hero-photo-frame,
  .exam-image,
  .translation-image,
  .level-panel {
    border-radius: 12px;
  }
  .service-ribbon a {
    border-radius: 10px;
  }
  .button {
    min-height: 48px;
  }
  .site-footer {
    padding-block: 28px;
  }
}

/* Mobile fixes: menu must not be trapped inside the header, and course cards need breathing room. */
@media (max-width: 760px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .level-list {
    padding-inline: 10px;
  }
  .level-panel-copy {
    padding: 24px 26px 28px;
    text-align: center;
  }
  .level-panel-copy .level-outcomes {
    justify-content: center;
  }
  .level-panel-copy .button,
  .course-footer .button {
    margin-inline: auto;
    display: inline-flex;
    justify-content: center;
  }
  .course-footer {
    align-items: center;
    text-align: center;
  }
}

/* Mobile drawer: anchor to the left edge (hamburger is on the left) so its content is never clipped. */
@media (max-width: 760px) {
  html[dir="rtl"] .main-nav,
  html[dir="rtl"] .main-nav.open {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    left: 0 !important;
    right: auto !important;
    transform: translateX(-110%) !important;
  }
  html[dir="rtl"] .main-nav.open {
    transform: translateX(0) !important;
  }
}

/* ================= Bold direction (v3) ================= */

/* Hero: full-bleed dark navy stage with gold light */
.hero {
  max-width: none;
  min-height: 86vh;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(179, 139, 68, .30), transparent 62%),
    radial-gradient(700px 500px at -5% 110%, rgba(179, 139, 68, .14), transparent 60%),
    linear-gradient(160deg, #0c1f32 0%, #081725 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero h1 span,
.hero h1 em {
  background: linear-gradient(100deg, #f3e2b8 0%, #d9bf86 45%, #b38b44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead,
.hero-lead p {
  color: rgba(255, 255, 255, .72) !important;
}
.hero-kicker,
.hero-kicker::before {
  color: var(--pm-gold-soft);
}
.hero-kicker::before {
  background: var(--pm-gold-soft);
}
.hero .button {
  background: linear-gradient(135deg, #f1dca8, #c9a25c);
  color: var(--pm-navy-deep);
  box-shadow: 0 18px 40px -16px rgba(201, 162, 92, .65);
}
.hero .button:hover {
  box-shadow: 0 24px 50px -18px rgba(201, 162, 92, .8);
}
.hero .text-link {
  color: #fff;
  border-color: rgba(217, 191, 134, .5);
}
.hero-signature,
.hero-signature * {
  color: rgba(255, 255, 255, .55);
}
.hero-photo-frame {
  border: 1px solid rgba(217, 191, 134, .35);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 10px rgba(255, 255, 255, .03);
}
.photo-note {
  background: rgba(255, 255, 255, .96);
}

/* Section headings: bigger, bolder */
.section-heading h2,
.exam-copy h2,
.translation-copy h2,
.contact-intro h2 {
  font-size: clamp(44px, 5.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section-heading h2 em,
.contact-intro h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #b38b44, #d9bf86);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll-driven reveals (progressive: no effect where unsupported) */
@keyframes pm-reveal {
  from { opacity: 0; transform: translateY(48px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  .section-heading,
  .level-panel,
  .recognition-block,
  .about-card,
  .exam-image,
  .translation-image,
  .contact-form,
  .service-ribbon a,
  .partners-section {
    animation: pm-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 38%;
  }
}

/* Gold glow on primary actions */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--pm-ease);
  z-index: -1;
}
.button:hover::after {
  transform: translateX(120%);
}

/* Service ribbon: cards instead of lines */
.service-ribbon {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  gap: 14px;
}
.service-ribbon a {
  background: #fff;
  border: 1px solid var(--pm-line) !important;
  box-shadow: var(--pm-shadow-sm);
  margin-inline: 4px;
}

/* Courses, exams, recognition: richer surfaces */
.courses-section {
  background: radial-gradient(1000px 500px at 100% 0%, rgba(179, 139, 68, .07), transparent 60%), #fff;
}
.level-list button.is-active,
.level-list button[aria-selected="true"] {
  color: var(--pm-navy);
}
.recognition-section {
  background: radial-gradient(900px 500px at 0% 100%, rgba(179, 139, 68, .10), transparent 60%), var(--pm-paper);
}
.exams-section .section-kicker,
.translation-section .section-kicker {
  color: var(--pm-gold);
}

/* Contact: a dark card for the form */
.contact-section {
  position: relative;
}
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: var(--pm-shadow-lg);
}

/* Mobile: keep the dark stage tight and legible */
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(44px, 12vw, 62px);
  }
  .service-ribbon {
    margin-top: 0;
  }
  .section-heading h2,
  .exam-copy h2,
  .translation-copy h2,
  .contact-intro h2 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .contact-form {
    border-radius: 16px;
    padding: 22px;
  }
}

/* v3 fix: keep the hero grid at page width; paint the dark stage full-bleed with box-shadow. */
.hero {
  max-width: var(--page);
  min-height: 0;
  padding-inline: var(--gutter);
  background: radial-gradient(700px 420px at 90% -10%, rgba(179, 139, 68, .26), transparent 65%), #0c1f32;
  box-shadow: 0 0 0 100vmax #0c1f32;
  clip-path: inset(0 -100vmax);
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(46px, 5.2vw, 80px);
  line-height: 1.06;
}
@media (max-width: 760px) {
  .hero {
    clip-path: inset(0 -100vmax);
    box-shadow: 0 0 0 100vmax #0c1f32;
  }
}

/* Mobile anchors: land on the section title, not on the photo above it. Image is 1.15:1 at 22px gutters. */
@media (max-width: 760px) {
  #exams,
  #translation {
    scroll-margin-top: calc(-1 * ((100vw - 44px) / 1.15 + 16px));
  }
  #courses,
  #recognition {
    scroll-margin-top: 16px;
  }
}

/* Exact landing positions for header links (cm below header, 1 cm ~ 38px).
   Desktop header 92px: courses 3cm, exams 4cm, recognition 3cm, translation 5cm.
   Mobile header 204px: exams 2cm, recognition 3cm, translation 2cm, about 3cm. Courses kept as is. */
@media (min-width: 761px) {
  #courses,
  #recognition {
    scroll-margin-top: 100px;
  }
  #exams {
    scroll-margin-top: 164px;
  }
  #translation {
    scroll-margin-top: 280px;
  }
}
@media (max-width: 760px) {
  #exams {
    scroll-margin-top: calc(-1 * ((100vw - 44px) / 1.15) + 47px);
  }
  #translation {
    scroll-margin-top: calc(-1 * ((100vw - 44px) / 1.15) + 59px);
  }
  #recognition {
    scroll-margin-top: 112px;
  }
  #about {
    scroll-margin-top: 44px;
  }
}
