/*
Theme Name: Polytechnic Academy
Theme URI: https://poly-academy.com/
Author: Sejal Solutions
Description: Accessible, responsive theme for San Benito County Polytechnic Academy.
Version: 1.0.0
Text Domain: poly-academy
*/

:root {
  --navy: #102a43;
  --navy-deep: #071d31;
  --blue: #1261a0;
  --sky: #e9f5ff;
  --gold: #f4b942;
  --cream: #fffaf0;
  --ink: #18212b;
  --muted: #5b6977;
  --line: #dce5ec;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(7, 29, 49, .12);
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy-deep); line-height: 1.13; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-150%); background: var(--white); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { transform: none; }

.school-strip { background: var(--navy-deep); color: #dcefff; font-size: .88rem; }
.school-strip .wrap { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.school-strip a { color: var(--white); text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy-deep); text-decoration: none; font-weight: 800; line-height: 1.05; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--navy-deep)); font-size: 1.4rem; }
.brand-mascot { width: auto; max-width: 54px; height: 46px; display: block; object-fit: contain; border-radius: 0; background: transparent; flex: 0 0 auto; }
.brand small { display: block; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); padding: .65rem .8rem; border-radius: 10px; font-weight: 750; }
.primary-menu { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; color: var(--navy); font-size: .94rem; font-weight: 700; text-decoration: none; padding: .72rem .72rem; border-radius: 9px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--sky); color: var(--blue); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: .55rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.primary-menu .menu-item-has-children:hover .sub-menu,
.primary-menu .menu-item-has-children:focus-within .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: .65rem .75rem; }
.primary-menu .menu-enroll > a { background: var(--gold); color: var(--navy-deep); margin-left: .35rem; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,29,49,.96) 0%, rgba(7,29,49,.77) 45%, rgba(7,29,49,.22) 100%), var(--hero-image, none) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; width: 430px; height: 430px; border: 90px solid rgba(244,185,66,.12); border-radius: 50%; right: -160px; bottom: -190px; }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 100px 0 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--gold); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.15rem; }
.eyebrow::before { content: ""; width: 30px; height: 3px; background: currentColor; }
.hero h1, .hero h2 { color: var(--white); }
.hero p { max-width: 680px; color: #e8f0f6; font-size: clamp(1.1rem, 2vw, 1.34rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .78rem 1.2rem; border: 2px solid transparent; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-weight: 800; text-decoration: none; }
.button:hover { color: var(--navy-deep); transform: translateY(-1px); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.6); background: transparent; }
.button.secondary:hover { background: var(--white); color: var(--navy); }
.button.blue { background: var(--blue); color: var(--white); }

.quick-facts { position: relative; z-index: 4; margin-top: -54px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 1.45rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--blue); font-size: 1.25rem; }
.fact span { color: var(--muted); font-size: .92rem; }

.section { padding: 88px 0; }
.section.tint { background: var(--sky); }
.section.cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 8px 30px rgba(7,29,49,.06); }
.card h3 { margin-top: .6rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--sky); color: var(--blue); font-size: 1.4rem; }
.kicker { color: var(--blue); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.pathway { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.pathway::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,49,.96), rgba(7,29,49,.2)); }
.pathway > * { position: relative; z-index: 2; }
.pathway h3, .pathway a { color: var(--white); }
.notice { padding: 1.2rem 1.3rem; border-left: 5px solid var(--gold); background: var(--cream); border-radius: 0 12px 12px 0; }
.resource-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.resource-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.resource-list a { font-weight: 750; }
.cta { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--navy-deep)); border-radius: 26px; padding: clamp(2rem, 6vw, 4.5rem); box-shadow: var(--shadow); }
.cta h2 { color: var(--white); }
.cta p { color: #dfeef9; max-width: 720px; }

.page-hero { padding: 88px 0 78px; color: var(--white); background: radial-gradient(circle at 80% 20%, rgba(244,185,66,.24), transparent 32%), linear-gradient(135deg, var(--navy-deep), var(--blue)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4.3rem); }
.page-hero p { color: #dfedf7; max-width: 740px; font-size: 1.14rem; }
.page-content { padding: 70px 0 95px; }
.page-content > .wrap { max-width: 960px; }
.page-content h2 { margin-top: 2.3rem; }
.page-content h3 { margin-top: 1.8rem; }
.page-content .wp-block-columns { gap: 1.5rem; }
.page-content table { width: 100%; border-collapse: collapse; }
.page-content th, .page-content td { padding: .8rem; border: 1px solid var(--line); text-align: left; }
.page-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 5px solid var(--gold); background: var(--cream); }

.site-footer { color: #d7e4ee; background: var(--navy-deep); padding: 65px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer h3 { color: var(--white); }
.site-footer a { color: #e7f3fb; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: .45rem 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); color: #9fb2c1; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem 20px; max-height: calc(100vh - 82px); overflow: auto; }
  .site-nav.open { display: block; }
  .primary-menu { display: block; }
  .primary-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 1rem; }
  .primary-menu .menu-enroll > a { margin-left: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.3rem; }
}

@media (max-width: 560px) {
  .school-strip .wrap { min-height: 46px; align-items: center; }
  .school-strip .strip-address { display: none; }
  .brand-text { font-size: .92rem; }
  .hero { min-height: 590px; }
  .hero-content { padding: 72px 0 105px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
  .resource-list li, .footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
