/* =====================================================================
   HTA Landing Page - styles
   Loaded only by the "HTA Landing Page" template (landing-page-template.php).
   Fonts and images are served from this theme: no third-party requests.
   ===================================================================== */

/* ---------- self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt) ---------- */
@font-face{
  font-family:"Fraunces";
  src:url("fonts/fraunces.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Mulish";
  src:url("fonts/mulish.woff2") format("woff2");
  font-weight:200 1000;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --navy-900:#08182c;
  --navy-800:#0b2138;
  --navy-700:#102b49;
  --navy-600:#163a61;
  --gold:#c9a44c;
  --gold-bright:#e6c878;
  --urgent:#b4232a;

  --display:"Fraunces", Georgia, "Times New Roman", serif;
  --body:"Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap:1180px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box;}
html,body{overflow-x:hidden;}            /* contains the off-screen woosh */
body.hta-landing{
  margin:0;
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;    /* announcement bar (if any) + stage fill the screen */
  font-family:var(--body);
  color:#fff;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:
    radial-gradient(130% 90% at 50% -8%, rgba(201,164,76,.22), rgba(201,164,76,0) 55%),
    radial-gradient(90% 70% at 50% 120%, rgba(22,58,97,.6), rgba(22,58,97,0) 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  background-color:var(--navy-900);
  background-attachment:fixed;
}
.hta-landing img{max-width:100%;display:block;}

/* ===================== announcement bar ===================== */
.hta-notice{
  position:relative;z-index:5;flex:none;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:6px 14px;
  padding:11px clamp(16px,4vw,32px);
  font-family:var(--body);font-size:.92rem;font-weight:700;line-height:1.4;text-align:center;
  color:var(--navy-900);
  background:linear-gradient(90deg,var(--gold) 0%,var(--gold-bright) 50%,var(--gold) 100%);
  box-shadow:0 8px 30px -12px rgba(0,0,0,.6);
  animation:noticeIn .6s var(--ease) both;
}
.hta-notice__icon{display:inline-grid;place-items:center;flex:none;}
.hta-notice__icon svg{width:18px;height:18px;}
.hta-notice__msg{max-width:70ch;}
.hta-notice__link{
  display:inline-flex;align-items:center;gap:.35em;
  color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;
  font-weight:800;white-space:nowrap;
}
.hta-notice__link svg{width:14px;height:14px;transition:transform .25s ease;}
.hta-notice__link:hover svg{transform:translateX(3px);}
.hta-notice__link:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px;}
.hta-notice--urgent{
  color:#fff;
  background:linear-gradient(90deg,#8f1b22 0%,var(--urgent) 50%,#8f1b22 100%);
}

/* ===================== one-screen stage ===================== */
.stage{
  position:relative;
  flex:1 0 auto;
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(24px,3.6vh,44px);
  padding:clamp(28px,5vh,56px) clamp(18px,5vw,40px);
  text-align:center;
  overflow:hidden;
  /* re-declared on a class so any theme/plugin reset can't override them */
  font-family:var(--body);color:#fff;line-height:1.5;
}
.has-notice .stage{min-height:0;}        /* bar + stage share the screen */
.stage a{color:inherit;text-decoration:none;}

/* ---------- faint school photo (pre-blurred file) ---------- */
.backdrop{
  position:absolute;inset:-6%;z-index:0;pointer-events:none;
  background:url("img/backdrop.jpg") center/cover no-repeat;
  opacity:.2;
  mix-blend-mode:luminosity;
  animation:drift 40s ease-in-out infinite alternate;
}
.backdrop::after{                         /* fade to navy at the edges */
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 50% 45%, transparent 30%, var(--navy-900) 85%);
}

/* ---------- mouse-following orbs ---------- */
.orbs{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.orb{
  position:absolute;top:0;left:0;
  border-radius:50%;
  filter:blur(44px);
  will-change:transform;
  transform:translate3d(-50%,-50%,0);    /* static fallback; JS drives this */
}
.orb.o1{width:clamp(280px,34vw,480px);aspect-ratio:1;left:50%;top:34%;
  background:radial-gradient(circle, rgba(201,164,76,.50), rgba(201,164,76,0) 68%);}
.orb.o2{width:clamp(240px,30vw,420px);aspect-ratio:1;left:22%;top:52%;
  background:radial-gradient(circle, rgba(58,120,194,.52), rgba(58,120,194,0) 68%);}
.orb.o3{width:clamp(300px,38vw,560px);aspect-ratio:1;left:80%;top:42%;
  background:radial-gradient(circle, rgba(28,78,132,.60), rgba(28,78,132,0) 70%);}
.orb.o4{width:clamp(200px,26vw,360px);aspect-ratio:1;left:33%;top:80%;
  background:radial-gradient(circle, rgba(230,200,120,.42), rgba(230,200,120,0) 68%);}
.orb.o5{width:clamp(220px,28vw,380px);aspect-ratio:1;left:70%;top:74%;
  background:radial-gradient(circle, rgba(96,164,214,.42), rgba(96,164,214,0) 70%);}

.stage > *:not(.orbs):not(.backdrop):not(.lang){position:relative;z-index:1;}

/* ===================== header ===================== */
.masthead{max-width:100%;}
.masthead .eyebrow,.masthead .motto,.masthead .subtitle{text-shadow:0 2px 22px rgba(8,24,44,.55);}
.crest{
  width:clamp(70px,10vw,98px);height:auto;
  margin:0 auto clamp(14px,2vh,20px);
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.4));
  animation:dropIn .9s var(--ease) both;
}
.eyebrow{
  font-weight:700;letter-spacing:.32em;text-transform:uppercase;
  font-size:clamp(.6rem,1.4vw,.72rem);
  color:var(--gold-bright);
  margin:0 0 14px;
  animation:dropIn .9s .08s var(--ease) both;
}
.motto{
  font-family:var(--display);font-weight:500;
  font-variation-settings:"opsz" 144;
  font-size:clamp(1.45rem,5.6vw,3.1rem);
  line-height:1.05;letter-spacing:-.02em;
  margin:0;color:#fff;
  white-space:nowrap;                    /* Faith · Aspiration · Unity on one line */
  animation:dropIn .9s .14s var(--ease) both;
}
.motto .dot{color:var(--gold);padding:0 .04em;}
.subtitle{
  font-size:clamp(.95rem,2vw,1.12rem);
  color:rgba(255,255,255,.74);
  margin:clamp(12px,1.6vh,18px) 0 0;font-weight:500;
  animation:dropIn .9s .2s var(--ease) both;
}

/* ---------- "welcome back" pill ---------- */
.welcome{
  display:inline-flex;align-items:center;gap:2px;
  margin-top:clamp(12px,1.8vh,18px);
  padding:4px 4px 4px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(230,200,120,.35);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  font-size:.86rem;
  animation:dropIn .7s .5s var(--ease) both;
}
.welcome[hidden]{display:none;}
.welcome__go{
  display:inline-flex;align-items:center;gap:.45em;
  padding:6px 10px 6px 10px;border-radius:999px;
  color:rgba(255,255,255,.85);
  transition:background .25s ease,color .25s ease;
}
.welcome__go strong{color:var(--gold-bright);font-weight:800;}
.welcome__go svg{width:14px;height:14px;color:var(--gold-bright);transition:transform .25s ease;}
.welcome__go:hover{background:rgba(230,200,120,.12);color:#fff;}
.welcome__go:hover svg{transform:translateX(3px);}
.welcome__x{
  display:grid;place-items:center;
  width:28px;height:28px;border:0;border-radius:50%;
  background:transparent;color:rgba(255,255,255,.55);cursor:pointer;
  font:inherit;
  transition:background .2s ease,color .2s ease;
}
.welcome__x:hover{background:rgba(255,255,255,.1);color:#fff;}
.welcome__x svg{width:12px;height:12px;}
.welcome__go:focus-visible,.welcome__x:focus-visible{outline:2px solid var(--gold-bright);outline-offset:2px;}

/* ===================== destination grid ===================== */
.grid{
  width:100%;max-width:var(--wrap);
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,1.6vw,22px);
  align-items:stretch;
}

/* the wrapper carries the woosh, so the tile keeps its own hover/tilt transform */
.flyin{
  display:flex;
  perspective:900px;
  animation:wooshL .85s both;
  animation-timing-function:cubic-bezier(.18,.7,.24,1.05);
}
.flyin.from-right{animation-name:wooshR;}
.flyin:nth-child(1){animation-delay:.05s;}
.flyin:nth-child(2){animation-delay:.17s;}
.flyin:nth-child(3){animation-delay:.29s;}
.flyin:nth-child(4){animation-delay:.41s;}

/* ---------- frosted-glass tiles ---------- */
.card{
  --mx:50%;--my:0%;                      /* spotlight position (JS) */
  --rx:0deg;--ry:0deg;                   /* 3D tilt (JS) */
  --lift:0px;--press:1;
  position:relative;isolation:isolate;overflow:hidden;
  flex:1;width:100%;
  text-align:left;
  background:linear-gradient(155deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.035) 55%, rgba(201,164,76,.05) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
          backdrop-filter:blur(18px) saturate(150%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:clamp(20px,2.4vw,28px) clamp(18px,2.2vw,26px) clamp(18px,2.2vw,24px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 24px 50px -28px rgba(0,0,0,.7);
  display:flex;flex-direction:column;
  cursor:pointer;
  transform:translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--press));
  transition:transform .45s var(--ease), box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.card.is-tilting{transition:transform .12s linear, box-shadow .35s ease, border-color .35s ease, background .35s ease;}
.card::after{                            /* cursor spotlight */
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(420px circle at var(--mx) var(--my), rgba(230,200,120,.16), transparent 45%);
  opacity:0;transition:opacity .35s ease;
}
.card::before{                           /* gold hairline across the top */
  content:"";position:absolute;top:0;left:12%;right:12%;height:1px;
  background:linear-gradient(90deg,transparent,var(--gold-bright),transparent);
  transform:scaleX(0);transition:transform .45s ease;
}
.card:hover,.card:focus-within{
  --lift:-8px;
  border-color:rgba(230,200,120,.45);
  background:linear-gradient(155deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 55%, rgba(201,164,76,.09) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 34px 60px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(230,200,120,.12), 0 0 40px -10px rgba(201,164,76,.35);
}
.card:hover::after,.card:focus-within::after{opacity:1;}
.card:hover::before,.card:focus-within::before{transform:scaleX(1);}
.card:active{--lift:-3px;--press:.985;}

.ico{
  width:clamp(44px,4.6vw,52px);height:clamp(44px,4.6vw,52px);border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(150deg, rgba(230,200,120,.22), rgba(201,164,76,.06));
  border:1px solid rgba(230,200,120,.32);
  color:var(--gold-bright);
  margin-bottom:clamp(14px,1.8vh,20px);
  transition:background .35s ease, border-color .35s ease, transform .35s ease;
}
.card:hover .ico,.card:focus-within .ico{
  background:linear-gradient(150deg, rgba(230,200,120,.34), rgba(201,164,76,.12));
  border-color:rgba(230,200,120,.6);transform:scale(1.06);
}
.ico svg{width:clamp(22px,2.4vw,26px);height:clamp(22px,2.4vw,26px);}
.card h2{
  font-family:var(--display);font-weight:500;
  font-variation-settings:"opsz" 48;
  font-size:clamp(1.2rem,1.7vw,1.45rem);
  margin:0 0 .35em;color:#fff;letter-spacing:-.005em;line-height:1.2;
}
.card p{
  margin:0 0 1.3em;color:rgba(255,255,255,.68);
  font-size:clamp(.86rem,1vw,.95rem);line-height:1.55;flex:1;
}
.go{
  display:inline-flex;align-items:center;gap:.5em;
  font-weight:800;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-bright);
  padding-top:14px;border-top:1px solid rgba(255,255,255,.1);
}
.go svg{width:15px;height:15px;transition:transform .3s ease;}
.card:hover .go svg,.card:focus-within .go svg{transform:translateX(5px);}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .card{background:rgba(16,43,73,.92);}
  .welcome{background:rgba(16,43,73,.92);}
}
.card a.stretch{position:absolute;inset:0;border-radius:20px;z-index:2;}
.card a.stretch:focus-visible{outline:3px solid var(--gold-bright);outline-offset:3px;}

/* ===================== slim footer ===================== */
.foot{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:8px clamp(14px,2vw,26px);
  font-size:.82rem;color:rgba(255,255,255,.62);
  animation:dropIn 1s .9s var(--ease) both;
}
.foot a{font-weight:600;transition:color .2s ease;}
.foot a:hover{color:var(--gold-bright);}
.foot a:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px;border-radius:3px;}
.foot .sep{opacity:.4;}

/* ---------- key contacts (statutory information) ---------- */
.statutory{
  width:100%;max-width:var(--wrap);
  margin-top:calc(clamp(24px,3.6vh,44px) * -1 + 12px);   /* sit close under the quick links */
  padding-top:clamp(14px,2vh,20px);
  border-top:1px solid rgba(255,255,255,.09);
  animation:dropIn 1s 1s var(--ease) both;
}
.statutory__list{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:12px clamp(20px,3vw,40px);
  margin:0;text-align:left;
}
.statutory__item{min-width:0;}
.statutory dt{
  font-size:.6rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-bright);opacity:.9;
  margin:0 0 3px;
}
.statutory dd{
  margin:0;font-size:.78rem;line-height:1.45;color:rgba(255,255,255,.74);
}
.statutory dd .sub{display:block;color:rgba(255,255,255,.56);}
.statutory dd a{
  color:inherit;
  text-decoration:underline;text-decoration-color:rgba(255,255,255,.25);text-underline-offset:2px;
  transition:color .2s ease,text-decoration-color .2s ease;
}
.statutory dd a:hover{color:var(--gold-bright);text-decoration-color:currentColor;}
.statutory dd a:focus-visible{outline:2px solid var(--gold-bright);outline-offset:2px;border-radius:2px;}

/* ===================== language selector ===================== */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.stage > .lang{
  position:absolute;z-index:20;
  top:clamp(12px,2.4vh,22px);right:clamp(12px,2.4vw,26px);
  text-align:left;
  animation:dropIn .9s .3s var(--ease) both;
}
.lang__btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 12px 8px 10px;border-radius:999px;
  font:700 .8rem/1 var(--body);letter-spacing:.02em;color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease;
}
.lang__btn:hover,.lang__btn[aria-expanded="true"]{background:rgba(255,255,255,.14);border-color:rgba(230,200,120,.5);}
.lang__btn:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px;}
.lang__globe{width:17px;height:17px;color:var(--gold-bright);flex:none;}
.lang__chev{width:13px;height:13px;opacity:.7;transition:transform .25s ease;}
.lang__btn[aria-expanded="true"] .lang__chev{transform:rotate(180deg);}
.lang__code{display:none;}

.lang__panel{
  position:absolute;right:0;top:calc(100% + 8px);
  width:min(320px,calc(100vw - 24px));
  max-height:min(460px,calc(100dvh - 90px));
  display:flex;flex-direction:column;
  border-radius:16px;
  background:rgba(11,33,56,.97);
  border:1px solid rgba(230,200,120,.28);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.75);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  overflow:hidden;
  animation:panelIn .22s var(--ease) both;
}
.lang__panel[hidden]{display:none;}
.lang__search{
  display:flex;align-items:center;gap:8px;
  margin:10px;padding:0 10px;border-radius:10px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
}
.lang__search:focus-within{border-color:rgba(230,200,120,.6);}
.lang__search svg{width:15px;height:15px;color:rgba(255,255,255,.55);flex:none;}
.lang__search input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;
  padding:9px 0;font:500 .9rem var(--body);color:#fff;
}
.lang__search input::placeholder{color:rgba(255,255,255,.45);}
.lang__list{overflow-y:auto;overscroll-behavior:contain;padding:0 6px 6px;}
.lang__group{
  margin:8px 8px 4px;font-size:.62rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-bright);opacity:.85;
}
.lang__opt{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  width:100%;padding:8px 10px;border:0;border-radius:8px;
  background:transparent;color:#fff;cursor:pointer;text-align:left;
  font:600 .9rem/1.3 var(--body);
}
.lang__opt:hover,.lang__opt:focus-visible{background:rgba(230,200,120,.13);outline:0;}
.lang__opt .lang__en{font-size:.74rem;font-weight:500;color:rgba(255,255,255,.5);white-space:nowrap;}
.lang__opt[aria-current="true"]{background:rgba(230,200,120,.18);}
.lang__opt[aria-current="true"] .lang__nat::after{content:" \2713";color:var(--gold-bright);}
.lang__empty{margin:10px;font-size:.85rem;color:rgba(255,255,255,.6);}
.lang__note{
  margin:0;padding:9px 14px 11px;
  font-size:.7rem;line-height:1.45;color:rgba(255,255,255,.55);
  border-top:1px solid rgba(255,255,255,.08);
}
#hta-gt{display:none;}

/* keep Google Translate's own banner, tooltips and highlights out of the design */
body.hta-landing{top:0!important;}
iframe.skiptranslate,.goog-te-banner-frame,.skiptranslate > iframe,
#goog-gt-tt,.goog-te-balloon-frame,.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,.VIpgJd-yAWNEb-L7lbkb{display:none!important;}
.goog-text-highlight{background:none!important;box-shadow:none!important;}

/* ===================== keyframes ===================== */
@keyframes wooshL{
  0%{opacity:0;transform:translateX(-120vw) rotate(-7deg) scale(.88);}
  55%{opacity:1;}
  100%{opacity:1;transform:translateX(0) rotate(0) scale(1);}
}
@keyframes wooshR{
  0%{opacity:0;transform:translateX(120vw) rotate(7deg) scale(.88);}
  55%{opacity:1;}
  100%{opacity:1;transform:translateX(0) rotate(0) scale(1);}
}
@keyframes dropIn{from{opacity:0;transform:translateY(-16px);}to{opacity:1;transform:translateY(0);}}
@keyframes panelIn{from{opacity:0;transform:translateY(-6px) scale(.98);}to{opacity:1;transform:none;}}
@keyframes noticeIn{from{opacity:0;transform:translateY(-100%);}to{opacity:1;transform:translateY(0);}}
@keyframes drift{from{transform:scale(1.04) translate3d(-1%,0,0);}to{transform:scale(1.1) translate3d(1%,-1%,0);}}

/* ===================== responsive ===================== */
@media (max-width:860px){
  .grid{grid-template-columns:repeat(2,1fr);max-width:620px;}
  .flyin:nth-child(3){animation-delay:.05s;}   /* 2x2: left column from left, right from right */
  .flyin:nth-child(2){animation-delay:.17s;}
}
@media (max-width:430px){
  .grid{gap:12px;}
  .card p{display:none;}                        /* keep it one screen on small phones */
  .card{padding:18px 16px 16px;}
  .card h2{margin-bottom:.6em;font-size:1.04rem;white-space:nowrap;}
  .hta-notice{font-size:.85rem;}
  .statutory__list{display:grid;grid-template-columns:1fr 1fr;justify-items:start;}
  .lang__cur{display:none;}
  .lang__code{display:inline;}
  .lang__btn{padding:7px 10px 7px 9px;}
  .statutory__item--wide{grid-column:1 / -1;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;}
  .flyin{opacity:1!important;}
}
