/* Gift of Life Young Professionals - shared styles. Tokens follow the Figma variables (Young-Professionals-Project). */
:root {
    --navy: #0b0055;          /* Primary Color Scheme/Headings, Footer/Background */
    --body-text: #05021d;     /* Primary Color Scheme/Body Text, Footer/Background Copyright */
    --dark-blue-900: #040118;
    --border: #adaef6;        /* Primary Color Scheme/Border */
    --orange: #ff8200;        /* Orange/500 */
    --orange-300: #ffb66a;
    --mustard: #ffb451;
    --beige-50: #fcf6e8;
    --beige-500: #ffeec6;
    --beige-border: #f7dcb8;
    --gold: #a47300;          /* Beige/800, Wizard/Line */
    --neutral-darker: #222;
    --radius-sm: 5px;
    --radius-md: 10px;
    --pad-global: 64px;
    --font-display: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--body-text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
/* the default (bolder) only steps 300-weight text such as the event descriptions up to 400, so bold from MatchQuest didn't show */
b, strong { font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1; color: var(--navy); }
h1 { font-size: 56px; }
h2 { font-size: 48px; }
.eyebrow { font-size: 20px; line-height: 1; text-transform: uppercase; color: var(--navy); }
.lead { font-size: 18px; font-weight: 300; line-height: 1.6; }
body.menu-open { overflow: hidden; }

/* ---- ticket prices on the event pages (Views/Shared/_EventPrices.cshtml), sized from .event-price / .ev-price */
.price-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; font-size: .75em; line-height: 1; text-transform: none; }
.price-row span:last-child { flex: none; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: 700 14px/1.5 var(--font-body); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn-lg { padding: 12px 24px; }
.btn-block { display: flex; width: 100%; padding: 20px 24px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-300); border-color: var(--orange-300); }
.btn-link { padding-left: 0; padding-right: 0; background: none; color: var(--orange); }
.btn-link:hover, .btn-link:focus-visible { color: var(--orange-300); }

/* ---- header: transparent over the hero photo; solid navy on pages without one */
#navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 40px; }
#navbar .logo img { width: 180px; height: auto; }
#navbar .links { display: flex; align-items: center; gap: 20px; padding: 0 40px; margin-top: 9px; }
#navbar .link { padding: 5px 0; border-top: 5px solid transparent; font: 700 14px/1 var(--font-body); text-transform: uppercase; color: #fff; text-decoration: none; }
#navbar .link:hover, #navbar .link.active { border-top-color: var(--orange); }
#m-hamburger { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }
body.solid-header #navbar { position: relative; background: var(--navy); }

#mob-menu { position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 64px 48px; background: linear-gradient(180deg, #0002df 0%, #040443 100%); }
#mob-menu[hidden] { display: none; }
#mob-menu .close { position: absolute; top: 16px; right: 16px; background: none; border: 0; padding: 4px; cursor: pointer; }
#mob-menu .links { display: flex; flex-direction: column; gap: 20px; padding: 0 10px 20px; }
#mob-menu .link { padding: 0 15px; border-left: 3px solid transparent; font-size: 18px; color: #fff; text-decoration: none; }
#mob-menu .link.active { border-left-color: var(--orange); color: var(--orange); }
#mob-menu .btn-block { margin: 20px 10px 0; width: calc(100% - 20px); }

/* ---- hero (shared by every page with a photo header) */
.hero { position: relative; display: flex; align-items: center; min-height: 768px; padding: 120px 120px 10px; background: var(--neutral-darker) center / cover no-repeat; color: #fff; }
.hero .hero-photo { display: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(34,34,34,0), var(--neutral-darker)); }
.hero-text { position: relative; max-width: 600px; padding: 50px 10px 10px; }
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero p { font-size: 20px; line-height: 1.8; }
.hero .actions { display: flex; align-items: center; gap: 40px; padding: 10px 0; }

/* short photo header (404, forms): title only, the photo stays behind the header on phones too */
.hero.hero-short { min-height: 280px; padding-top: 90px; background-image: url('/res/img/bg-sparkly-blue.webp'); }
.hero-short::before { display: none; }
.hero-short .hero-text { padding-top: 40px; }
.hero-short .kicker { font-size: 18px; font-weight: 700; line-height: 1.5; text-transform: uppercase; }

/* ---- section heading block (eyebrow + h2, centered) */
.section-title { display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 714px; margin: 0 auto; padding: var(--pad-global) 40px 10px; text-align: center; }

/* ---- chapter tiles: hover = more bottom padding, letter spacing, desaturated photo (Figma "Hover Components") */
.chapter-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px var(--pad-global) 20px; }
.chapter-link { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 294.5 / 376.67; overflow: hidden; border-radius: var(--radius-md);
    box-shadow: 0 4px 4px rgba(0,0,0,.25); background: #ccc center / cover no-repeat; text-decoration: none; transition: filter .3s; }
.chapter-link span { position: relative; width: 100%; padding: 25px 10px 25px; background: linear-gradient(to bottom, rgba(4,1,24,0), var(--dark-blue-900));
    font: 700 14px/1 var(--font-body); text-transform: uppercase; color: #fff; text-align: center; transition: padding .3s, letter-spacing .3s, font-size .3s; }
.chapter-link:hover, .chapter-link:focus-visible { filter: saturate(50%); }
.chapter-link:hover span, .chapter-link:focus-visible span { padding-bottom: 75px; letter-spacing: .04em; font-size: 16px; font-weight: 400; }
/* the last row (2 tiles) sits in the middle columns */
.chapter-links .chapter-link:nth-child(9):nth-last-child(2) { grid-column: 2; }

.not-in-area { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px 40px 80px; text-align: center; }
.not-in-area .eyebrow { color: var(--body-text); }

/* ---- impact band (navy background, donor + recipient cut-out on the right) */
.impact { position: relative; display: flex; align-items: center; min-height: 663px; padding: 20px 10px 20px 100px; background: url('/res/img/bg-blue2.webp') center / cover no-repeat; color: #fff; }
.impact-text { flex: 0 1 50%; padding: 20px 10px 20px 100px; }
.impact h2 { font-size: 72px; color: #fff; padding-bottom: 10px; border-bottom: 1px solid #fff; margin-bottom: 10px; }
.impact .stats { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 15px; row-gap: 24px; margin: 0; }
.impact .stats > div { display: contents; }
.impact dt { font: 400 48px/60px 'Oswald', var(--font-display); text-align: right; }
.impact dd { margin: 0; padding-top: 10px; font: 300 20px/20px var(--font-body); text-transform: uppercase; }
/* stands on the band's bottom right corner and breaks out over its top edge (804x728 in the 1366 design, which caps it on wider screens) */
.impact-pic { position: absolute; right: 0; bottom: 0; z-index: 1; width: 58.9%; max-width: 804px; }
.impact-pic img { width: 100%; }

/* ---- "Ready to make an impact" call to action */
.cta-band { display: flex; min-height: 439px; margin-top: 59px; background: url('/res/img/bg-blue2.webp') center / cover no-repeat; color: #fff; }
.cta-pic { position: relative; flex: 0 0 50%; }
/* design size (541px in a 683px column) - scaling with the window would push his head far above the band on wide screens */
.cta-pic img { position: absolute; right: 7.5%; bottom: 0; width: 79%; max-width: 541px; }
.cta-text { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 643px; padding: 80px 140px 80px 40px; }
.cta-text h2 { color: #fff; }
.cta-text p { font-size: 18px; font-weight: 300; line-height: 1.6; padding-bottom: 10px; }

/* ---- Follow Us band + instagram pictures */
.follow-us .band { display: flex; border-bottom: 1px solid var(--beige-border); background: url('/res/img/bg-beige.webp') center / cover no-repeat; }
.follow-us .band-pic { flex: 0 0 541px; background: url('/res/img/pic-thank-you-people.webp') center / cover no-repeat; box-shadow: 4px 0 4px rgba(0,0,0,.25); }
.follow-us .band-text { padding: 80px 40px 110px; color: var(--beige-50); }
.follow-us .eyebrow { font-size: 20px; line-height: 1.8; color: var(--beige-50); }
.follow-us .title-row { display: flex; align-items: center; gap: 50px; padding-bottom: 10px; }
.follow-us h2 { font-size: 72px; color: var(--beige-50); }
.follow-us .social { display: flex; align-items: center; gap: 30px; }
.follow-us .social img { height: 50px; width: auto; }
.insta-pics { display: flex; justify-content: center; gap: 30px; margin-top: -75px; padding: 0 40px 60px; }
.insta-pics img { position: relative; width: 200px; height: 200px; object-fit: cover; border: 1px solid #fff; border-radius: var(--radius-md); box-shadow: 0 4px 2px rgba(0,0,0,.25), 0 4px 2px rgba(0,0,0,.25); }

/* ---- About Gift of Life */
.about-gol { display: flex; align-items: center; justify-content: center; gap: 37px; padding: 20px 40px 60px; }
.about-gol .pic { flex: 0 0 499px; }
.about-gol .pic img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-sm); }
.about-gol .text { flex: 0 1 743px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.about-gol .eyebrow { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ---- 404 */
.not-found { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 40px var(--pad-global); text-align: center; }
.not-found img { width: 566px; max-width: 100%; margin-bottom: 10px; }
.not-found p { padding: 10px 0 20px; font-size: 20px; line-height: 1.8; }

/* ---- footer */
#footer { border-top: 4px solid var(--gold); background: var(--navy); color: #fff; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 50px 80px; }
.logo-social { display: flex; align-items: flex-start; gap: 30px; }
.logo-social .social { display: flex; flex-direction: column; gap: 30px; }
.logo-social .social img { width: 25px; height: 25px; }
.logo-address { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; border-left: 1px solid var(--gold); }
.logo-address p { font-size: 12px; line-height: 1.5; }
.footer-links { display: flex; gap: 93px; font-size: 12px; line-height: 1.5; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-links .col { display: flex; flex-direction: column; gap: 7px; width: 108px; }
.footer-links .chapters { width: 275px; }
.footer-links .title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.footer-links .title::after { content: ''; flex: 1; border-top: 1px solid var(--gold); }
.chapter-cols { display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-template-columns: 1fr auto; row-gap: 7px; }
.footer-copyright { padding: 20px 40px; border-top: 1px solid var(--gold); background: var(--body-text); font-size: 12px; text-align: center; }
.footer-copyright a { color: var(--orange); }

/* ---- tablet */
@media (max-width: 1200px) {
    .hero { padding-left: 60px; padding-right: 60px; }
    #navbar .links { padding: 0; gap: 14px; }
    .impact, .impact-text { padding-left: 40px; }
    .cta-text { padding-right: 40px; }
    .follow-us .band-pic { flex-basis: 35%; }
    .footer-content { padding: 50px 40px; }
    .footer-links { gap: 40px; }
}

/* ---- phones (Figma mobile frames are 390 wide) */
@media (max-width: 991px) {
    #navbar .links { display: none; }
    #m-hamburger { display: block; }
    .chapter-links { grid-template-columns: repeat(2, 1fr); padding-left: 20px; padding-right: 20px; }
    .chapter-links .chapter-link:nth-child(9):nth-last-child(2) { grid-column: auto; }
}
@media (max-width: 768px) {
    #navbar { padding: 20px; }
    #navbar .logo img { width: 135px; }
    h2 { font-size: 40px; }
    .hero { display: block; min-height: 0; padding: 0; background: none !important; color: var(--body-text); }
    .hero::before { display: none; }
    .hero.hero-short { display: flex; min-height: 220px; padding: 100px 20px 20px; background: var(--neutral-darker) center / cover no-repeat !important; color: #fff; }
    .hero.hero-short h1 { color: #fff; text-align: left; font-size: 40px; }
    .hero-short .hero-text { padding: 0; }
    .hero .hero-photo { display: block; height: 550px; background: var(--neutral-darker) center top / cover no-repeat; }
    .hero-text { max-width: none; padding: 40px 20px; }
    .hero h1 { color: var(--navy); font-size: 48px; text-align: center; }
    .hero p { font-size: 16px; line-height: 1.6; }
    .hero .actions { flex-direction: column; gap: 20px; padding-top: 30px; }
    .hero .actions .btn-primary { width: 100%; padding: 20px 24px; }
    .chapter-links { grid-template-columns: 1fr; }
    .impact { flex-direction: column; padding: 60px 20px 0; }
    .impact-text { flex-basis: auto; padding: 0; width: 100%; }
    .impact h2 { font-size: 56px; }
    .impact-pic { position: static; width: auto; max-width: none; margin: 20px 0 0; }
    .cta-band { flex-direction: column-reverse; margin-top: 0; }
    .cta-text { max-width: none; padding: 60px 20px 30px; }
    .cta-text .btn { width: 100%; padding: 20px 24px; }
    .cta-pic img { position: static; width: 85%; margin: 0 auto; }
    .follow-us .band { flex-direction: column-reverse; }
    .follow-us .band-pic { flex-basis: 260px; }
    .follow-us .band-text { padding: 40px 20px; text-align: center; }
    .follow-us .title-row { flex-direction: column; gap: 20px; }
    .insta-pics { flex-wrap: wrap; gap: 15px; margin-top: 30px; padding: 0 20px 40px; }
    .insta-pics img { width: calc(50% - 8px); height: auto; aspect-ratio: 1; }
    .about-gol { flex-direction: column; padding: 20px 20px 40px; }
    .about-gol .text { flex-basis: auto; } /* the desktop width basis would turn into a height once stacked */
    .about-gol .pic { flex-basis: auto; width: 100%; }
    .about-gol .pic img { height: auto; aspect-ratio: 499 / 320; }
    .footer-content { flex-direction: column; padding: 40px 30px; }
    .footer-links { flex-direction: column; gap: 30px; font-size: 14px; }
    .footer-links .col, .footer-links .chapters { width: 100%; }
    .footer-links .col { gap: 10px; }
    .chapter-cols { grid-template-rows: repeat(6, auto); column-gap: 30px; row-gap: 10px; }
}
