/*
Theme Name: LIS 2026 v2
Description: Flagship theme for the Lebanese International School (lis.edu.lb), built by TechBoiL.
Author: TechBoiL
Author URI: https://techboil.com
Version: 1.0.0
Text Domain: lis2026v2
*/
:root{
  --navy:#2f3f67; --navy-deep:#182042; --navy-ink:#0f1530;
  --gold:#a9814c; --gold-light:#d3ac6f; --cedar:#0aa64b;
  --cream:#f6f1e4; --paper:#fdfbf5; --ink:#20222c; --ink-soft:#615c4c;
  --line: rgba(47,63,103,0.14); --radius:14px; --maxw:1280px;
  --scroll-bg:#f6f1e4;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden;}
body{ margin:0; background:var(--scroll-bg); color:var(--ink); font-family:'Tajawal',sans-serif; font-weight:400; line-height:1.75; -webkit-font-smoothing:antialiased; overflow-x:clip; transition:background-color .6s ease; }
h1,h2,h3,.serif{ font-family:'Amiri',serif; font-weight:700; color:var(--navy); text-wrap:balance; line-height:1.2; }
a{color:inherit;} img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
::selection{background:var(--gold); color:#fff;}
#progress{position:fixed; top:0; inset-inline-start:0; height:3px; width:0%; background:linear-gradient(90deg,var(--gold),var(--cedar)); z-index:300; transition:width .1s linear;}

.eyebrow{ font-family:'Tajawal',sans-serif; font-weight:700; color:var(--gold); font-size:0.92rem; margin:0 0 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.eyebrow::after{content:""; height:1px; width:34px; background:var(--gold-light); display:inline-block; flex-shrink:0;}

.btn{ display:inline-flex; align-items:center; gap:8px; padding:15px 30px; border-radius:100px; font-weight:700; font-size:0.98rem; text-decoration:none; transition:transform .25s cubic-bezier(.2,.8,.2,1), background .25s, box-shadow .25s, color .25s; border:1.5px solid transparent; cursor:pointer; }
.btn:active{transform:scale(0.96);}
.btn-gold{background:var(--gold); color:#fff;}
.btn-gold:hover{background:#8f6c3c; box-shadow:0 10px 26px rgba(169,129,76,.34); transform:translateY(-2px);}
.btn-ghost{border-color:rgba(255,255,255,.55); color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.14); transform:translateY(-2px);}

/* ===== Header ===== */
header.site-header{ position:fixed; top:0; left:0; right:0; z-index:100; transition:background .3s ease, box-shadow .3s ease, padding .3s ease; padding:22px 0; }
header.site-header.solid{ background:color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter:blur(14px); box-shadow:0 8px 30px rgba(15,19,38,.08); padding:14px 0; border-bottom:1px solid var(--line); }
header.site-header .bar{ max-width:var(--maxw); margin:0 auto; padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand img{height:48px; width:auto; transition:height .3s ease;}
header.site-header.solid .brand img{height:40px;}

nav.primary-nav{display:flex;}
nav.primary-nav > ul{list-style:none; display:flex; gap:6px; margin:0; padding:0; align-items:center;}
nav.primary-nav > ul > li{position:relative;}
nav.primary-nav > ul > li > a{ text-decoration:none; font-weight:600; font-size:0.96rem; color:#fff; position:relative; padding:10px 16px; border-radius:100px; display:flex; align-items:center; gap:6px; transition:background .25s, color .25s; }
header.site-header.solid nav.primary-nav > ul > li > a{ color:var(--ink); }
nav.primary-nav > ul > li > a:hover{ background:rgba(255,255,255,.14); }
header.site-header.solid nav.primary-nav > ul > li > a:hover{ background:var(--cream); color:var(--gold); }
nav.primary-nav .caret{width:9px; height:9px; border-left:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); margin-top:-3px; opacity:.7;}
.submenu{ position:absolute; top:calc(100% + 10px); right:0; min-width:240px; background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:10px; box-shadow:0 24px 50px rgba(15,19,38,.18); opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .25s ease, transform .25s ease, visibility .25s; list-style:none; }
nav.primary-nav > ul > li:hover > .submenu{opacity:1; visibility:visible; transform:translateY(0);}
.submenu li a{ display:block; padding:11px 14px; border-radius:10px; text-decoration:none; color:var(--ink); font-size:.92rem; font-weight:500; transition:background .2s, color .2s; }
.submenu li a:hover{background:var(--cream); color:var(--gold);}
.head-actions{display:flex; align-items:center; gap:14px;}
.menu-toggle{display:none; background:rgba(255,255,255,.14); border:none; cursor:pointer; padding:10px; border-radius:10px; width:44px; height:44px; align-items:center; justify-content:center;}
header.site-header.solid .menu-toggle{background:var(--cream);}
.menu-toggle span{display:block; width:20px; height:2px; background:#fff; margin:4px auto; border-radius:2px; transition:all .3s;}
header.site-header.solid .menu-toggle span{background:var(--navy);}

.mobile-panel{ position:fixed; inset:0; z-index:150; background:var(--navy-ink); color:#fff; transform:translateX(100%); transition:transform .45s cubic-bezier(.2,.8,.2,1); overflow-y:auto; padding:26px 28px 60px; }
.mobile-panel.open{transform:translateX(0);}
.mobile-panel .top{display:flex; justify-content:space-between; align-items:center; margin-bottom:36px;}
.mobile-panel .top img{height:40px; filter:brightness(0) invert(1);}
.mobile-close{background:rgba(255,255,255,.1); border:none; color:#fff; width:42px; height:42px; border-radius:50%; font-size:1.2rem; cursor:pointer;}
.mobile-panel ul{list-style:none; margin:0; padding:0;}
.mobile-panel > ul > li{border-bottom:1px solid rgba(255,255,255,.1);}
.mobile-panel > ul > li > a, .mobile-acc-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 4px; text-decoration:none; color:#fff; font-family:'Amiri',serif; font-size:1.25rem; cursor:pointer; background:none; border:none; width:100%; text-align:right; }
.mobile-acc-head .caret{width:9px; height:9px; border-left:1.5px solid #fff; border-bottom:1.5px solid #fff; transform:rotate(-45deg); transition:transform .3s;}
.mobile-acc-head.open .caret{transform:rotate(135deg);}
.mobile-sub{list-style:none; margin:0; padding:0 0 14px; display:none;}
.mobile-sub.open{display:block;}
.mobile-sub li a{display:block; padding:9px 14px; color:rgba(255,255,255,.7); text-decoration:none; font-size:.95rem;}
.mobile-panel .cta{margin-top:30px;}

/* ===== Hero slider ===== */
.hero{ position:relative; min-height:100vh; display:flex; align-items:flex-end; color:#fff; overflow:hidden; }
.hero-media{position:absolute; inset:0; overflow:hidden;}
.hero-slide{ position:absolute; inset:0; opacity:0; transition:opacity 1.4s ease; }
.hero-slide.active{opacity:1;}
.hero-slide img{ position:absolute; inset:-4%; width:108%; height:108%; object-fit:cover; filter:saturate(1.05); }
.hero-slide.active img{animation:kenburns 9s ease-in-out forwards;}
@keyframes kenburns{ from{transform:scale(1);} to{transform:scale(1.08);} }
.hero::before{ content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(15,19,38,.4) 0%, rgba(15,19,38,.42) 30%, rgba(15,19,38,.8) 66%, rgba(15,19,38,.97) 100%); }
.emblem-watermark{ position:absolute; z-index:1; top:-8%; left:-10%; width:56vw; max-width:640px; opacity:.10; filter:brightness(0) invert(1); pointer-events:none; }
.hero-content{position:relative; z-index:3; padding-top:150px; padding-bottom:64px; width:100%;}
.hero-content .eyebrow{color:var(--gold-light);}
.hero-content .eyebrow::after{background:var(--gold-light);}
.hero h1{ color:#fff; font-size:clamp(2.6rem, 6.4vw, 5.4rem); margin:0 0 22px; max-width:18ch; overflow:hidden; }
.hero h1 .line{display:block; overflow:hidden;}
.hero h1 span{display:inline-block; will-change:transform;}
.hero p.lead{ font-size:1.16rem; max-width:54ch; color:rgba(255,255,255,.86); margin:0 0 36px; }
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}
.hero-dots{position:absolute; z-index:3; bottom:150px; left:32px; display:flex; gap:10px;}
.hero-dots button{width:28px; height:3px; border-radius:3px; background:rgba(255,255,255,.3); border:none; cursor:pointer; padding:0; transition:background .3s;}
.hero-dots button.active{background:var(--gold-light);}

.hero-badges{position:absolute; inset:0; z-index:2; pointer-events:none;}
.hbadge{ position:absolute; display:flex; align-items:center; gap:8px; background:rgba(15,19,38,.5); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.18); border-radius:100px; padding:9px 18px; font-size:.85rem; font-weight:600; color:#fff; white-space:nowrap; animation:float 6s ease-in-out infinite; }
.hbadge span.dot{width:6px; height:6px; border-radius:50%; background:var(--gold-light); flex-shrink:0;}
.hb1{top:20%; left:8%; animation-delay:0s;}
.hb2{top:38%; left:20%; animation-delay:1.5s;}
.hb3{top:16%; left:34%; animation-delay:.8s;}
@keyframes float{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
@media (prefers-reduced-motion: reduce){ .hbadge{animation:none;} }

.ticker-wrap{ position:relative; z-index:3; border-top:1px solid rgba(255,255,255,.14); margin-top:56px; overflow:hidden; padding:18px 0; }
.ticker{ display:flex; gap:56px; white-space:nowrap; width:max-content; animation:ticker 32s linear infinite; }
.ticker span{ font-family:'Amiri',serif; font-size:1.05rem; color:rgba(255,255,255,.72); display:flex; align-items:center; gap:56px; }
.ticker span::after{content:"✦"; color:var(--gold-light); font-size:.8rem;}
@keyframes ticker{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .ticker{animation:none;} .hero-slide.active img{animation:none;} }

section{padding:130px 0; position:relative;}
section.tight{padding:70px 0;}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head p.desc{color:var(--ink-soft); font-size:1.06rem; margin-top:16px;}

/* mission */
.mission .grid{display:grid; grid-template-columns:0.92fr 1.08fr; gap:72px; align-items:center;}
.mission figure{ margin:0; border-radius:28px; overflow:hidden; box-shadow:0 30px 70px rgba(15,19,38,.22); position:relative; aspect-ratio:4/5;}
.mission figure img{width:100%; height:100%; object-fit:cover;}
.mission .quote-mark{ font-family:'Amiri',serif; font-size:7rem; color:var(--gold-light); line-height:0.5; opacity:.5; display:block; margin-bottom:6px;}
.mission blockquote{ font-family:'Amiri',serif; font-size:clamp(1.4rem,2.3vw,1.85rem); color:var(--navy); margin:0 0 26px; line-height:1.68; font-weight:700; }
.mission cite{font-style:normal; color:var(--gold); font-weight:700; font-size:0.95rem;}

/* values pinned scrollytelling */
.values-pin{ color:#fff; height:600vh; position:relative; padding:0; }
.values-stage{ position:sticky; top:0; height:100vh; display:flex; align-items:center; overflow:hidden; }
.values-stage .wrap{width:100%;}
.v-head{position:absolute; top:70px; right:32px; z-index:3;}
.v-progress{position:absolute; bottom:60px; right:32px; left:32px; z-index:3; display:flex; gap:8px;}
.v-progress span{flex:1; height:3px; background:rgba(255,255,255,.15); border-radius:3px; overflow:hidden; position:relative;}
.v-progress span i{position:absolute; inset:0; background:var(--gold-light); width:0%; display:block;}
.v-panel{ position:absolute; inset:0; display:flex; align-items:center; opacity:0; }
.v-panel .wrap{display:grid; grid-template-columns:0.5fr 0.5fr; gap:60px; align-items:center;}
.v-icon-big{width:120px; height:120px; color:var(--gold-light);}
.v-icon-big path, .v-icon-big circle{stroke-dasharray:220; stroke-dashoffset:220;}
.v-num{font-family:'Amiri',serif; color:var(--gold); font-size:1.1rem; margin-bottom:18px; display:block;}
.v-panel h3{color:#fff; font-size:clamp(2.2rem,4vw,3.4rem); margin:0 0 22px;}
.v-panel p{font-size:1.15rem; color:rgba(255,255,255,.72); max-width:46ch; margin:0;}

/* ===== Stages — vertical connecting-line, substantial cards ===== */
.stages-line{position:relative; margin-top:56px;}
.stages-line::before{content:""; position:absolute; top:0; bottom:0; right:50%; width:2px; background:repeating-linear-gradient(to bottom, var(--gold-light) 0 10px, transparent 10px 20px); transform:translateX(1px);}
.stage-row{position:relative; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; margin-bottom:90px;}
.stage-row:last-child{margin-bottom:0;}
.stage-row .node{ position:absolute; right:50%; top:50%; transform:translate(50%,-50%); width:64px; height:64px; border-radius:50%; background:var(--navy); border:5px solid var(--paper); box-shadow:0 12px 28px rgba(47,63,103,.25); display:flex; align-items:center; justify-content:center; z-index:2; color:var(--gold-light); }
.stage-row .node svg{width:26px; height:26px;}
.stage-figure{ margin:0; border-radius:24px; overflow:hidden; aspect-ratio:5/4; box-shadow:0 24px 54px rgba(15,19,38,.18); }
.stage-figure img{width:100%; height:100%; object-fit:cover;}
.stage-copy{padding:0 40px;}
.stage-row:nth-child(odd) .stage-copy{order:1; text-align:right; padding-inline-start:60px; padding-inline-end:0;}
.stage-row:nth-child(odd) .stage-figure{order:2;}
.stage-row:nth-child(even) .stage-copy{order:2; padding-inline-start:0; padding-inline-end:60px;}
.stage-row:nth-child(even) .stage-figure{order:1;}
.stage-tag{display:inline-block; font-size:.8rem; font-weight:700; color:var(--gold); background:rgba(169,129,76,.12); padding:5px 14px; border-radius:100px; margin-bottom:14px;}
.stage-copy h3{font-size:1.7rem; margin:0 0 6px;}
.stage-copy .sub{display:block; font-size:.9rem; color:var(--ink-soft); margin-bottom:16px;}
.stage-copy p{margin:0; color:var(--ink-soft); font-size:1.02rem; line-height:1.85;}

/* principal word */
.word{position:relative; overflow:hidden;}
.word .big-quote{ position:absolute; top:20px; font-family:'Amiri',serif; font-size:16rem; color:var(--gold); opacity:.07; line-height:0; right:32px; pointer-events:none; user-select:none; }
.word .grid{display:grid; grid-template-columns:0.35fr 0.65fr; gap:56px; position:relative;}
.word .label{align-self:start; position:sticky; top:120px;}
.word blockquote{ font-family:'Amiri',serif; font-size:1.22rem; color:var(--ink); margin:0; line-height:2.05; border-inline-start:3px solid var(--gold); padding-inline-start:28px; }
.word .more{display:inline-block; margin-top:24px; font-weight:700; color:var(--gold); text-decoration:none; border-bottom:1.5px solid var(--gold-light);}

/* news (real posts) */
.news{color:#fff;}
.news .section-head h2{color:#fff;}
.news .section-head p.desc{color:rgba(255,255,255,.65);}
.news-scroll{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -32px; padding:0 32px 16px; scrollbar-width:none; }
.news-scroll::-webkit-scrollbar{display:none;}
.news-card{ scroll-snap-align:start; flex:0 0 min(78vw, 420px); border-radius:22px; overflow:hidden; position:relative; background:rgba(255,255,255,.05); text-decoration:none; color:#fff; display:block; }
.news-card figure{margin:0; overflow:hidden; aspect-ratio:4/3; background:rgba(255,255,255,.08);}
.news-card img{width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1);}
.news-card:hover img{transform:scale(1.08);}
.news-card .cap{padding:22px 24px;}
.news-card h4{margin:0; font-size:1.08rem; font-weight:700; line-height:1.55;}
.news-card time{display:inline-block; font-size:.78rem; color:var(--gold-light); font-weight:700; margin-bottom:10px;}
.news-more{text-align:center; margin-top:40px;}

/* mother org */
.mother-org{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.mother-org .wrap{ padding-top:56px; padding-bottom:56px; display:flex; align-items:center; gap:40px; flex-wrap:wrap; justify-content:space-between; }
.mother-org .left{display:flex; align-items:center; gap:24px;}
.mother-org img{height:74px; width:auto;}
.mother-org h5{margin:0 0 6px; font-size:1.02rem; color:var(--navy); font-family:'Amiri',serif;}
.mother-org p{margin:0; color:var(--ink-soft); font-size:.92rem; max-width:46ch;}
.mother-org a.link{font-weight:700; color:var(--gold); text-decoration:none; border-bottom:1.5px solid var(--gold-light); white-space:nowrap;}

/* contact */
.contact{color:#fff; position:relative; overflow:hidden;}
.contact .emblem-watermark{ top:auto; bottom:-18%; left:auto; right:-8%; width:44vw; opacity:.06; }
.contact .grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:center; position:relative; z-index:1; }
.contact h2{color:#fff;}
.contact p.lead{color:rgba(255,255,255,.72); font-size:1.05rem; max-width:48ch;}
.info-list{list-style:none; margin:34px 0 0; padding:0; display:grid; gap:20px;}
.info-list li{display:flex; gap:16px; align-items:flex-start;}
.info-list .ic{ width:42px; height:42px; border-radius:10px; background:rgba(211,172,111,.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold-light); }
.info-list .ic svg{width:19px; height:19px;}
.info-list strong{display:block; font-size:.95rem; color:rgba(255,255,255,.55); font-weight:500; margin-bottom:3px;}
.info-list span, .info-list a{font-size:1.02rem; color:#fff; text-decoration:none; font-weight:500;}
.card-form{background:var(--paper); border-radius:22px; padding:40px; color:var(--ink); box-shadow:0 30px 70px rgba(0,0,0,.28);}
.card-form h3{margin-top:0; font-size:1.35rem;}
.card-form form{display:grid; gap:14px; margin-top:20px;}
.card-form input, .card-form textarea{ width:100%; border:1px solid var(--line); border-radius:12px; padding:14px 16px; font-family:'Tajawal',sans-serif; font-size:.95rem; background:var(--cream); color:var(--ink); }
.card-form textarea{min-height:100px; resize:vertical;}
.card-form .btn-gold{width:100%; justify-content:center; border:none; margin-top:6px;}
.socials{display:flex; gap:12px; margin-top:32px;}
.socials a{ width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; transition:all .25s; }
.socials a:hover{background:var(--gold); border-color:var(--gold); transform:translateY(-3px);}

footer.site-footer{background:var(--navy-deep); color:rgba(255,255,255,.7); padding:64px 0 28px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1);}
.foot-brand{display:flex; align-items:center; gap:12px; margin-bottom:16px;}
.foot-brand img{height:44px;}
footer p{font-size:.92rem; line-height:1.8; max-width:32ch;}
footer h5{color:#fff; font-size:.95rem; margin:0 0 18px;}
footer ul{list-style:none; margin:0; padding:0; display:grid; gap:11px;}
footer a{text-decoration:none; font-size:.92rem; color:rgba(255,255,255,.68);}
footer a:hover{color:var(--gold-light);}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:.85rem; flex-wrap:wrap; gap:10px;}
.foot-bottom a{color:var(--gold-light); text-decoration:none; font-weight:600;}

/* generic page/single templates */
.page-hero{background:var(--navy-ink); color:#fff; padding:180px 0 70px;}
.page-hero h1{color:#fff; margin:0;}
.entry-content{max-width:760px; margin:0 auto; font-size:1.05rem; line-height:1.9;}
.entry-content img{border-radius:16px; margin:1.5em 0;}
.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.post-card{background:var(--paper); border:1px solid var(--line); border-radius:18px; overflow:hidden; text-decoration:none; color:var(--ink); display:block;}
.post-card figure{margin:0; aspect-ratio:4/3; overflow:hidden; background:var(--cream);}
.post-card img{width:100%; height:100%; object-fit:cover;}
.post-card .cap{padding:20px 22px;}
.post-card h3{font-size:1.05rem; margin:0 0 8px;}
.post-card time{font-size:.82rem; color:var(--ink-soft);}

.reveal{opacity:0; transform:translateY(28px);}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1 !important; transform:none !important;} html{scroll-behavior:auto;} .values-pin{height:auto;} .values-stage{position:relative; height:auto; padding:80px 0;} .v-panel{position:relative; opacity:1; display:none;} .v-panel:first-child{display:flex;} }

@media (max-width:980px){
  .mission .grid, .word .grid, .contact .grid{grid-template-columns:1fr; gap:36px;}
  .word .label{position:static;}
  .word .big-quote{font-size:9rem;}
  .v-panel .wrap{grid-template-columns:1fr; gap:28px; text-align:center;}
  .v-icon-big{margin:0 auto;}
  .post-grid{grid-template-columns:1fr 1fr;}
  nav.primary-nav{display:none;}
  .menu-toggle{display:flex;}
  section{padding:88px 0;}
  .stages-line::before{display:none;}
  .stage-row{grid-template-columns:1fr; gap:24px; margin-bottom:56px;}
  .stage-row .node{position:static; transform:none; margin-bottom:6px;}
  .stage-row:nth-child(odd) .stage-copy, .stage-row:nth-child(even) .stage-copy{order:2; padding-inline:0; text-align:right;}
  .stage-row:nth-child(odd) .stage-figure, .stage-row:nth-child(even) .stage-figure{order:1;}
  .hero-badges{display:none;}
  .values-pin{height:340vh;}
}
@media (max-width:640px){
  .foot-grid{grid-template-columns:1fr 1fr;}
  .mother-org .wrap{flex-direction:column; align-items:flex-start; text-align:right;}
  .post-grid{grid-template-columns:1fr;}
  .btn{padding:12px 22px; font-size:0.9rem;}
  .v-panel .wrap{padding-left:44px; padding-right:44px;}
  .v-icon-big{width:88px; height:88px;}
}
