:root{
  --navy:#0f1e4a;
  --navy-dark:#091433;
  --navy-soft:#1b326d;
  --blue:#173a78;
  --orange:#e58a00;
  --orange-dark:#c97800;
  --cream:#fff8ed;
  --bg:#f7f8fb;
  --surface:#fff;
  --text:#26344d;
  --muted:#64748b;
  --border:#e3e8ef;
  --shadow:0 12px 34px rgba(15,30,74,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Heebo","Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}

/* utility top bar */
.topbar{
  background:var(--navy-dark);
  color:rgba(255,255,255,.84);
  font-size:13px;
}
.topbar-inner{
  min-height:38px;
  display:flex;align-items:center;justify-content:space-between;gap:18px
}
.topbar-links{display:flex;gap:18px;flex-wrap:wrap}
.topbar a:hover{color:#ffd18a}

/* header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(227,232,239,.95);
  box-shadow:0 3px 18px rgba(15,30,74,.06);
}
.nav-wrap{
  min-height:78px;display:flex;align-items:center;gap:24px
}
.brand{display:flex;align-items:center;gap:13px;min-width:285px}
.brand-mark{
  width:48px;height:48px;border:1.5px solid var(--orange);border-radius:50%;
  display:grid;place-items:center;color:var(--orange);font-weight:800;font-size:15px
}
.brand-title{line-height:1.04}
.brand-title strong{display:block;color:var(--navy);font-size:17px}
.brand-title span{color:var(--muted);font-size:12px;letter-spacing:.03em}
.menu{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:1}
.menu a{
  color:var(--navy);font-weight:600;font-size:14px;padding:11px 10px;border-radius:8px
}
.menu a:hover{background:var(--cream);color:var(--orange-dark)}
.login-btn{
  padding:11px 17px!important;background:var(--navy)!important;color:white!important;
  border-radius:8px!important
}
.login-btn:hover{background:var(--navy-soft)!important}
.menu-toggle{display:none;border:0;background:var(--navy);color:#fff;padding:9px 12px;border-radius:7px}

/* hero */
.hero{
  min-height:510px;
  display:flex;align-items:center;
  position:relative;overflow:hidden;
  background:
    linear-gradient(100deg,rgba(5,19,54,.97) 0%,rgba(15,30,74,.91) 50%,rgba(23,58,120,.72) 100%),
    url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1800&q=82") center/cover;
}
.hero:after{
  content:"";position:absolute;right:-130px;top:-190px;width:520px;height:520px;
  border:1px solid rgba(255,255,255,.10);border-radius:50%;
  box-shadow:0 0 0 65px rgba(255,255,255,.035),0 0 0 130px rgba(255,255,255,.02)
}
.hero-inner{position:relative;z-index:1;padding:72px 0;color:#fff}
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;padding:7px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);
  font-weight:600;font-size:13px
}
.eyebrow:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.hero h1{max-width:760px;margin:20px 0 12px;font-size:clamp(38px,5vw,66px);line-height:1.03;letter-spacing:-.04em}
.hero h1 span{color:#f6b647}
.hero p{max-width:710px;margin:0 0 29px;font-size:18px;color:rgba(255,255,255,.82);line-height:1.65}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  border:0;border-radius:9px;padding:13px 20px;font-weight:700;cursor:pointer;
  transition:.2s ease
}
.btn:hover{transform:translateY(-1px)}
.btn-orange{background:var(--orange);color:#fff}
.btn-orange:hover{background:var(--orange-dark)}
.btn-glass{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.25);color:white}
.btn-glass:hover{background:rgba(255,255,255,.16)}

/* search panel */
.search-zone{position:relative;margin-top:-58px;z-index:4}
.search-panel{
  background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 18px 45px rgba(15,30,74,.13);
  padding:22px
}
.search-tabs{display:flex;gap:8px;margin-bottom:15px}
.search-tab{
  border:0;background:#f2f4f8;color:var(--navy);font-weight:700;padding:9px 15px;border-radius:8px;cursor:pointer
}
.search-tab.active{background:var(--navy);color:#fff}
.search-row{display:grid;grid-template-columns:180px 1fr auto;gap:10px}
.search-row select,.search-row input{
  width:100%;height:52px;border:1px solid #d9e0e9;border-radius:9px;background:#fff;padding:0 15px;color:var(--text)
}
.search-row input:focus,.search-row select:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 3px rgba(229,138,0,.12)}
.search-row .btn{height:52px;padding-inline:27px}
.search-meta{margin-top:12px;color:var(--muted);font-size:13px}
.search-meta strong{color:var(--navy)}

/* general */
.section{padding:76px 0}
.section-head{
  display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px
}
.kicker{color:var(--orange-dark);font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.section h2{margin:5px 0 0;color:var(--navy);font-size:clamp(29px,3vw,40px);letter-spacing:-.025em}
.section-copy{max-width:630px;color:var(--muted);line-height:1.65}
.link-arrow{color:var(--navy);font-weight:700;white-space:nowrap}
.link-arrow:hover{color:var(--orange-dark)}

/* quick access */
.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.quick-card{
  background:#fff;border:1px solid var(--border);border-radius:13px;padding:20px 15px;text-align:center;
  box-shadow:0 5px 16px rgba(15,30,74,.035);transition:.2s ease
}
.quick-card:hover{transform:translateY(-4px);border-color:#efc982;box-shadow:var(--shadow)}
.quick-icon{
  width:50px;height:50px;margin:0 auto 11px;border-radius:13px;background:var(--cream);color:var(--orange-dark);
  display:grid;place-items:center;font-size:23px
}
.quick-card strong{display:block;color:var(--navy);font-size:14px}

/* arrivals */
.arrivals{background:#fff}
.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.book-card{
  border:1px solid var(--border);border-radius:15px;background:#fff;overflow:hidden;transition:.22s ease;
  box-shadow:0 4px 18px rgba(15,30,74,.04)
}
.book-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#e9c27a}
.book-cover{
  height:235px;display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(145deg,#10204e,#264d8a);position:relative;overflow:hidden
}
.book-cover:before{
  content:"";position:absolute;width:170px;height:170px;border:1px solid rgba(255,255,255,.15);border-radius:50%;
  right:-50px;top:-60px
}
.book-cover:nth-child(1){}
.book-initial{
  width:125px;height:175px;border-radius:4px;background:#f9f4e8;border-left:8px solid var(--orange);
  box-shadow:10px 13px 28px rgba(0,0,0,.24);display:flex;align-items:center;justify-content:center;
  text-align:center;padding:15px;color:var(--navy);font-weight:800;line-height:1.16
}
.book-body{padding:17px}
.book-label{font-size:11px;color:var(--orange-dark);font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.book-title{margin:7px 0 6px;color:var(--navy);font-size:17px;line-height:1.3;font-weight:700;min-height:44px}
.book-author{color:var(--muted);font-size:13px;min-height:20px}
.book-meta{margin-top:12px;padding-top:11px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}

/* resources */
.resource-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.resource-card{
  background:#fff;border:1px solid var(--border);border-radius:13px;padding:22px;
  min-height:150px;transition:.2s ease
}
.resource-card:hover{border-color:#e9c27a;box-shadow:var(--shadow)}
.resource-card h3{margin:0 0 7px;color:var(--navy);font-size:17px}
.resource-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}

/* services */
.services{background:linear-gradient(180deg,#f2f5fa 0%,#f8f9fc 100%)}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:25px}
.service-card .num{color:#e5a12d;font-weight:800;font-size:12px}
.service-card h3{color:var(--navy);margin:8px 0}
.service-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0}

/* stats */
.stats{
  background:linear-gradient(110deg,var(--navy-dark),var(--navy) 55%,#1d4a86);
  color:#fff;padding:48px 0
}
.stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:20px}
.stat{text-align:center}
.stat strong{display:block;font-size:30px;letter-spacing:-.03em;color:#fff}
.stat span{color:rgba(255,255,255,.70);font-size:13px}

/* about/timing */
.info-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:22px}
.info-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:28px;box-shadow:0 5px 18px rgba(15,30,74,.04)}
.info-card h3{color:var(--navy);margin-top:0;font-size:21px}
.info-card p{color:var(--muted);line-height:1.68}
.hours{list-style:none;padding:0;margin:0}
.hours li{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px}
.hours li:last-child{border-bottom:0}
.hours strong{color:var(--navy)}

/* footer */
.footer{background:#07132f;color:rgba(255,255,255,.72);border-top:4px solid var(--orange);padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.05fr 1.45fr 1.15fr;gap:42px}
.footer h4{color:#fff;margin:0 0 14px}
.footer p,.footer a{font-size:13px;line-height:1.7}
.footer a{display:block;color:rgba(255,255,255,.70)}
.footer a:hover{color:#ffd18a}
.footer-hours{display:grid;gap:8px;font-size:13px}
.footer-hours div{display:flex;justify-content:space-between;gap:18px;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.10)}
.footer-hours div:last-child{border-bottom:0;padding-bottom:0}
.footer-hours strong{color:#fff;font-weight:600;white-space:nowrap}
.footer-hours span{color:rgba(255,255,255,.72);text-align:right}
.footer-bottom{margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);font-size:12px}

/* responsive */
@media(max-width:1000px){
  .menu{display:none;position:absolute;left:0;right:0;top:78px;background:#fff;padding:12px 16px;box-shadow:0 12px 25px rgba(15,30,74,.10);flex-direction:column;align-items:stretch}
  .menu.open{display:flex}.menu-toggle{display:block;margin-left:auto}
  .brand{min-width:0}.quick-grid{grid-template-columns:repeat(3,1fr)}
  .book-grid,.resource-grid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  .topbar-inner{padding:7px 0;align-items:flex-start;flex-direction:column}.topbar-links{gap:10px}
  .hero{min-height:500px}.hero-inner{padding:55px 0 96px}.hero p{font-size:16px}
  .search-zone{margin-top:-70px}.search-row{grid-template-columns:1fr}.search-row .btn{width:100%}
  .section{padding:56px 0}.section-head{align-items:flex-start;flex-direction:column}
  .quick-grid{grid-template-columns:repeat(2,1fr)}
  .book-grid,.resource-grid,.service-grid,.info-grid,.footer-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
