/*
 * Pi Kappa Phi – Omicron | site styles
 * Colors and fonts are set once here as variables. Change a color below and
 * it updates everywhere on the site.
 */
:root {
  --blue: #005596;        /* Pi Kappa Phi royal blue */
  --blue-dark: #003e6e;
  --gold: #E7A614;        /* Pi Kappa Phi gold */
  --gold-dark: #c98d09;
  --ink: #272727;         /* headings / dark text */
  --text: #4a4f55;        /* body text */
  --muted: #7a8088;
  --gray-bg: #e2e4e5;     /* light gray section background */
  --page-bg: #f1f2f3;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 18, 36, .14);
  --font: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { color: var(--blue); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-block; padding: .8em 1.4em; border-radius: 6px; font-weight: 800; font-size: .92rem; text-decoration: none; line-height: 1; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.link-gold { color: var(--gold); font-weight: 800; text-decoration: none; }

/* Header */
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { width: 108px; height: auto; }
#site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
#site-nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 10px 10px; display: block; border-radius: 4px; }
#site-nav a:hover, #site-nav a[aria-current="page"] { color: var(--gold); }
#site-nav .cta { margin-left: 14px; }
#site-nav .cta a.btn { color: var(--white); padding: .85em 1.3em; }
#site-nav .cta a.btn:hover { color: var(--white); }
.has-sub { position: relative; }
.has-sub > .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
#site-nav .sub a { color: var(--ink); padding: 9px 18px; font-weight: 600; }
#site-nav .sub a:hover, #site-nav .sub a[aria-current="page"] { color: var(--blue); background: #f2f6fa; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; align-items: center; gap: 4px; flex-direction: column; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px; }
.nav-toggle b { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); padding: 8px 16px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
  .site-header.open #site-nav { display: block; }
  #site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  #site-nav a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .has-sub > .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 16px; }
  #site-nav .sub a { color: rgba(255,255,255,.85); }
  #site-nav .sub a:hover, #site-nav .sub a[aria-current="page"] { background: transparent; color: var(--gold); }
  #site-nav .cta { margin: 14px 0 0; }
  #site-nav .cta a.btn { text-align: center; border-bottom: 0; }
}

/* Home: hero */
.hero { position: relative; color: var(--white); background: var(--blue-dark) center / cover no-repeat; min-height: 520px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,40,75,.88) 0%, rgba(0,40,75,.6) 45%, rgba(0,40,75,.15) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 11em; }

/* Generic sections */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-bg); }
.section-blue { background: var(--blue); }
.split { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split img.crest { max-width: 320px; margin: 0 auto; }

/* Home: photo mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: 1; grid-row: 1 / 3; }
.mosaic .m2 { grid-column: 2; grid-row: 1; }
.mosaic .m3 { grid-column: 1; grid-row: 3; }
.mosaic .m4 { grid-column: 2; grid-row: 2 / 4; }
@media (min-width: 700px) { .mosaic { grid-template-rows: 150px 150px 150px; } }
@media (min-width: 1000px) { .mosaic { grid-template-rows: 200px 100px 200px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: .95rem; flex: 1; }

/* Inner pages */
.page { background: var(--page-bg); padding: 48px 0 80px; }
.page .panel { background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: clamp(24px, 5vw, 56px); }
.page-title { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1em; }
.panel + .panel { margin-top: 32px; }
.prose { max-width: 820px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.figure-round { border-radius: var(--radius); overflow: hidden; }

/* Photo placeholder used where an original image was not saved */
.photo-missing { background: repeating-linear-gradient(135deg, #eef1f4 0 14px, #e5e9ee 14px 28px); border: 2px dashed #b9c2cc; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 700; font-size: .9rem; min-height: 220px; padding: 20px; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }

/* 10th anniversary */
.progress { background: #e9edf1; border-radius: 999px; height: 22px; overflow: hidden; margin: 10px 0 6px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f4c04a); border-radius: 999px; min-width: 22px; }
.progress-labels { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.stat { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 24px 26px; }
.stat h3 { color: var(--gold); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.stat ul { list-style: none; margin: 0; padding: 0; }
.stat li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-weight: 600; }
.stat li:last-child { border-bottom: 0; }
.qr { max-width: 200px; background: var(--white); border-radius: 8px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
table.schedule { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.schedule th { background: var(--blue); color: var(--white); text-align: left; padding: 12px 14px; font-weight: 800; }
.schedule td { padding: 12px 14px; border-bottom: 1px solid #e3e6ea; }
.schedule tr:nth-child(even) td { background: #f5f8fb; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid #e6e9ec; }
.contact-list strong { display: block; color: var(--ink); }

/* Footer */
.site-footer { background: var(--white); padding: 56px 0 28px; border-top: 1px solid #eceef0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer h6 { color: var(--blue); font-size: .95rem; margin: 0 0 .4em; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.9; }
.site-footer li a:hover { color: var(--gold-dark); }
.copyright { text-align: center; color: var(--muted); font-size: .85rem; margin: 40px 0 0; }

@media (max-width: 800px) {
  .split, .split.even { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .hero { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > a { grid-column: 1 / -1; }
  .wrap { padding: 0 16px; }
}

/* Draft notice (turned on/off by SITE.draft in assets/js/site.js) */
.draft-note { background: #1d1d1f; color: #f3c75a; text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 12px; }
@media (max-width: 800px) { .split img.crest { max-width: 200px; } }

/* Photo galleries (About Us) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: transform .15s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* People cards (Omicron Club board, Executive Council) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 20px; }
.person { background: #f6f8fa; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person img, .person-noimg { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
.person .person-noimg { aspect-ratio: auto; height: 6px; flex: 0 0 6px; background: var(--blue); }
.person > div { padding: 16px 18px 20px; }
.person h3 { font-size: 1.1rem; margin: 0 0 .2em; }
.person .person-fact span { font-weight: 600; }
.person .role { color: var(--gold-dark); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; margin: 0 0 .5em; }
.person p { margin: 0 0 .35em; font-size: .9rem; line-height: 1.45; }
.person a { word-break: break-all; }

/* ---- Additions for the dynamic site ---- */
.utility-bar { background: #1d1d1f; font-size: .8rem; }
.utility-bar .wrap { display: flex; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.utility-bar a { color: var(--gold); text-decoration: none; font-weight: 700; }
.utility-bar a:hover { color: #fff; }
.draft-note + .utility-bar { border-top: 1px solid #333; }
.announce { background: var(--gold); color: #1d1d1f; text-align: center; font-weight: 800; padding: 8px 16px; font-size: .92rem; }
.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.flash-ok { background: #e7f5ec; color: #1d6b3a; border: 1px solid #b9e2c7; }
.flash-error { background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bc; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-row .page-title { margin-bottom: .6em; }
.edit-pill { display: inline-block; background: var(--gold); color: #fff !important; text-decoration: none; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; margin-bottom: .6em; }
.hero .edit-pill { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #e6e9ec; }
.event-list h3 { margin: 0 0 .2em; }
.event-date { font-weight: 800; color: var(--gold-dark); }
.calendar-embed iframe { width: 100%; height: 620px; border: 0; border-radius: 8px; margin-top: 16px; }
.form label { display: block; font-weight: 700; color: var(--ink); margin: 0 0 14px; font-size: .95rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; border: 1px solid #c9d0d7; border-radius: 6px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; }
.btn-block { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }
.auth-panel { max-width: 460px; margin: 0 auto; }
.auth-crest { margin: 0 auto 12px; }
.auth-page .page-title { text-align: center; }
.auth-page .muted { text-align: center; }
.auth-links { text-align: center; margin-top: 14px; }
.footer-address { font-size: .92rem; margin: 0; }
.copyright a { color: var(--muted); }
@media (max-width: 640px) { .event-list li { grid-template-columns: 1fr; gap: 4px; } }
