
:root{--navy:#20364a;--navy2:#172838;--yellow:#f4c400;--ink:#25282b;--muted:#68717a;--paper:#fff;--soft:#f4f5f6;--line:#e5e7e9;--max:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.65;background:#fff}a{color:inherit}img{max-width:100%;height:auto}.container{width:min(var(--max),calc(100% - 40px));margin:auto}
header{height:auto;position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid #e9eaeb;backdrop-filter:blur(12px)}
.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1.2rem;color:#667078;font-weight:400;letter-spacing:.03em}.brand img{width:54px;height:54px;object-fit:contain}.navlinks{display:flex;align-items:center;gap:28px}.navlinks a{text-decoration:none;font-size:.94rem;color:#333}.navlinks a:hover,.navlinks a[aria-current=page]{color:#a88b00}.menu-toggle{display:none;border:1px solid var(--line);background:white;border-radius:8px;padding:9px 12px;font-size:1.1rem}
.hero{min-height:500px;display:grid;place-items:center;text-align:center;color:white;background:linear-gradient(110deg,rgba(13,25,36,.82),rgba(20,39,55,.65)),url('assets/internationell-samhallsvetenskap.png') center/cover no-repeat}
.hero-inner{padding:80px 0;max-width:850px}.hero img{width:115px;height:115px;object-fit:contain;filter:drop-shadow(0 4px 10px #0005);margin-bottom:20px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.78rem;color:var(--yellow);font-weight:bold}.hero h1{font-size:clamp(2.2rem,5vw,4.1rem);line-height:1.12;margin:10px 0 20px;font-weight:500}.hero p{font-size:1.15rem;max-width:700px;margin:0 auto 28px;color:#f1f3f5}.btn{display:inline-block;background:var(--yellow);color:#172838;text-decoration:none;padding:13px 23px;border-radius:3px;font-weight:bold;border:0;cursor:pointer}.btn.secondary{background:transparent;border:1px solid #ffffffa6;color:#fff;margin-left:10px}
.section{padding:72px 0}.section.soft{background:var(--soft)}.section h2{font-size:clamp(1.7rem,3vw,2.3rem);font-weight:500;line-height:1.25;margin:0 0 18px}.section h2:after{content:"";display:block;width:92px;height:3px;background:var(--yellow);margin-top:14px}.lead{font-size:1.1rem;color:#555;max-width:900px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.card{border:1px solid var(--line);background:white;padding:30px;border-radius:6px;box-shadow:0 8px 28px #1728380a}.card h3{margin:0 0 10px;font-size:1.35rem;font-weight:500}.card p{color:#5d646b}.card .text-link{color:#756200;font-weight:bold;text-decoration:none}.feature{background:var(--navy);color:white;padding:36px;border-radius:5px}.feature h2:after{background:var(--yellow)}.feature p{color:#e0e6eb}
.page-hero{background:var(--navy);color:white;padding:72px 0}.page-hero h1{font-size:clamp(2rem,4vw,3.2rem);font-weight:500;margin:0 0 12px}.page-hero p{margin:0;color:#e0e6eb;max-width:760px}
.prose{max-width:900px}.prose h2{margin-top:32px}.course-list{columns:2;column-gap:40px;padding-left:20px}.course-list li{break-inside:avoid;padding:3px 0;color:#4d555c}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:50px}.contact-details p{margin:0 0 12px}.contact-details a{color:#6e5b00}.form-field{margin-bottom:16px}.form-field label{display:block;font-weight:bold;margin-bottom:6px;font-size:.92rem}.form-field input,.form-field textarea{width:100%;padding:13px;border:1px solid #d7dade;border-radius:3px;font:inherit;background:white}.form-field textarea{min-height:170px;resize:vertical}.notice{padding:14px 18px;background:#eef7ee;border-left:4px solid #4a9b4a;margin-bottom:20px}.notice.error{background:#fff0f0;border-color:#c44}
footer{background:#242629;color:#e4e5e6;padding:48px 0 0}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:45px;align-items:start}.footer-logo{width:150px;max-height:145px;object-fit:contain}.footer-title{color:var(--yellow);text-transform:uppercase;font-size:.82rem;letter-spacing:.04em;margin:0 0 10px}.footer-grid p,.footer-grid a{font-size:.9rem;color:#d0d2d4}.footer-grid a{text-decoration:none}.footer-grid a:hover{color:var(--yellow)}.footer-bottom{margin-top:40px;padding:15px 0;border-top:1px solid #ffffff14;text-align:center;font-size:.78rem;color:#92979b}
@media(max-width:760px){.container{width:min(100% - 30px,var(--max))}.nav{min-height:68px}.brand img{width:44px;height:44px}.menu-toggle{display:block}.navlinks{display:none;position:absolute;left:0;right:0;top:100%;background:white;padding:18px 24px 24px;box-shadow:0 12px 20px #0001;flex-direction:column;align-items:flex-start;gap:14px}.navlinks.open{display:flex}.hero{min-height:440px}.hero-inner{padding:65px 0}.grid,.contact-grid,.footer-grid{grid-template-columns:1fr}.section{padding:52px 0}.course-list{columns:1}.btn.secondary{margin:12px 0 0}.footer-grid{gap:28px}}

/* Original photographic assets extracted from the supplied Sparre Gymnasium archive screenshots */
.page-hero.program-samhall{background:linear-gradient(100deg,rgba(14,25,36,.76),rgba(14,25,36,.55)),url('assets/internationell-samhallsvetenskap.png') center 42%/cover}
.page-hero.program-ekonomi{background:linear-gradient(100deg,rgba(14,25,36,.78),rgba(14,25,36,.52)),url('assets/international-economy-market.png') center 50%/cover}
.page-hero.about-hero{background:linear-gradient(100deg,rgba(14,25,36,.72),rgba(14,25,36,.5)),url('assets/school-classroom.png') center 50%/cover}
.page-hero.program-samhall,.page-hero.program-ekonomi,.page-hero.about-hero{padding:100px 0;min-height:340px;display:flex;align-items:center}
.brand img{object-fit:contain}

/* Official user-supplied Sparre brand assets */
.brand img{width:58px;height:54px;object-fit:contain;object-position:center}
.hero .hero-inner>img{width:128px;height:110px;object-fit:contain;margin:0 auto 14px;filter:drop-shadow(0 3px 8px rgba(0,0,0,.18))}
.footer-logo{width:170px;max-height:155px;object-fit:contain}
.program-hero-content{text-align:center}
.program-emblem{display:block;width:190px;height:210px;object-fit:contain;margin:0 auto 18px;filter:drop-shadow(0 3px 8px rgba(0,0,0,.25))}
.program-card{text-align:center}
.card-emblem{display:block;width:88px;height:98px;object-fit:contain;margin:0 auto 16px}
@media(max-width:700px){.program-emblem{width:145px;height:160px}.hero .hero-inner>img{width:105px;height:95px}.card-emblem{width:74px;height:82px}}

/* v5: clean photo-only hero backgrounds and larger program emblems */
.hero{background-image:linear-gradient(90deg,rgba(15,29,43,.42),rgba(15,29,43,.16)),url('assets/sparre-hero-clean.jpg');background-position:center 47%;background-size:cover}
.page-hero.program-samhall{background-image:linear-gradient(90deg,rgba(15,29,43,.62),rgba(15,29,43,.38)),url('assets/sparre-hero-clean.jpg');background-position:center 48%;background-size:cover}
.page-hero.program-ekonomi{background-image:linear-gradient(90deg,rgba(15,29,43,.62),rgba(15,29,43,.38)),url('assets/sparre-hero-clean.jpg');background-position:center 48%;background-size:cover}
.page-hero.about-hero{background-image:linear-gradient(90deg,rgba(15,29,43,.62),rgba(15,29,43,.38)),url('assets/sparre-hero-clean.jpg');background-position:center 48%;background-size:cover}
.program-emblem{width:178px;height:198px;margin:0 auto 24px}
@media(max-width:700px){.program-emblem{width:135px;height:150px;margin-bottom:18px}}


/* Final hero treatment: understated, desaturated photo with a fine framed title band */
.hero{min-height:clamp(500px,68vw,760px);background-image:linear-gradient(rgba(11,20,29,.28),rgba(11,20,29,.28)),url('assets/sparre-hero-clean.jpg');background-position:center 52%;background-size:cover;filter:none}
.hero-inner{width:min(100% - 36px,1160px);max-width:none;padding:0;display:flex;align-items:center;justify-content:center}
.hero-frame{width:min(100%,1120px);padding:clamp(25px,4vw,48px) clamp(18px,4vw,52px);background:rgba(17,27,37,.78);border:1px solid rgba(205,213,220,.72);box-shadow:0 12px 42px rgba(0,0,0,.18);backdrop-filter:blur(2px)}
.hero-title{margin:0!important;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;font-weight:500;line-height:1.25;letter-spacing:.025em}
.hero-line{display:block;opacity:0;transform:translateY(14px);animation:heroFadeIn .9s ease-out forwards}
.hero-line.line-one{font-size:clamp(1.25rem,3.5vw,2.65rem);animation-delay:.25s}
.hero-line.line-two{font-size:clamp(1.05rem,2.2vw,1.65rem);font-weight:400;color:#f0f2f4;animation-delay:1.05s}
@keyframes heroFadeIn{to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hero-line{opacity:1;transform:none;animation:none}}
.page-hero.program-samhall{background-image:linear-gradient(100deg,rgba(14,25,36,.68),rgba(14,25,36,.48)),url('assets/internationell-samhallsvetenskap.png');background-position:center 43%;background-size:cover}
.page-hero.program-ekonomi{background-image:linear-gradient(100deg,rgba(14,25,36,.68),rgba(14,25,36,.48)),url('assets/international-economy-market.png');background-position:center 50%;background-size:cover}
.page-hero.about-hero{background-image:linear-gradient(100deg,rgba(14,25,36,.68),rgba(14,25,36,.48)),url('assets/school-classroom.png');background-position:center 50%;background-size:cover}
