/*
Theme Name: Dundee 86 Reunion
Theme URI: https://dundee86reunion.com
Author: Dundee Class of 1986
Description: Class reunion theme for Dundee University Class of 1986 — navy & gold, Playfair Display.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: dundee86-reunion
*/

:root {
  --navy:#0a1f44; --gold:#c9a84c; --gold-lt:#e8c97a; --cream:#faf8f2;
  --white:#fff; --text:#1a1a2e; --muted:#5a5a72; --border:#d9d3c0;
  --radius:6px; --shadow:0 4px 20px rgba(10,31,68,.12);
  --font-serif:'Playfair Display',Georgia,serif;
  --font-sans:'Source Sans 3','Helvetica Neue',Arial,sans-serif;
  --max-w:1180px; --header-h:80px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-sans);font-size:17px;line-height:1.7;color:var(--text);background:var(--cream)}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{color:var(--gold-lt);text-decoration:underline}
h1,h2,h3,h4,h5,h6{font-family:var(--font-serif);font-weight:700;line-height:1.25;color:var(--navy)}
.container{max-width:var(--max-w);margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.section--dark{background:var(--navy);color:var(--white)}
.section--dark h2{color:var(--gold)}
.section--alt{background:#f0ede4}
.btn{display:inline-block;padding:13px 30px;border-radius:var(--radius);font-family:var(--font-sans);font-size:15px;font-weight:600;letter-spacing:.04em;cursor:pointer;border:2px solid transparent;transition:all .2s}
.btn-primary{background:var(--gold);color:var(--navy)}
.btn-primary:hover{background:var(--gold-lt);color:var(--navy);text-decoration:none}
.btn-outline{background:transparent;border-color:var(--gold);color:var(--gold)}
.btn-outline:hover{background:var(--gold);color:var(--navy);text-decoration:none}
.btn-white{background:var(--white);color:var(--navy)}
.btn-white:hover{background:var(--cream);color:var(--navy);text-decoration:none}

/* HEADER */
#site-header{position:sticky;top:0;z-index:100;background:var(--navy);height:var(--header-h);display:flex;align-items:center;box-shadow:0 2px 12px rgba(0,0,0,.25)}
#site-header .container{display:flex;align-items:center;justify-content:space-between;width:100%}
.site-branding{display:flex;align-items:center;gap:14px}
.crest{width:48px;height:48px;background:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:20px;font-weight:900;color:var(--navy);flex-shrink:0}
.site-title{font-family:var(--font-serif);font-size:20px;font-weight:700;color:var(--white)!important;letter-spacing:.02em;line-height:1.2}
.site-title span{display:block;font-size:12px;font-weight:400;color:var(--gold);letter-spacing:.1em;text-transform:uppercase}
#primary-nav ul{list-style:none;display:flex;gap:8px;align-items:center}
#primary-nav a{color:var(--white);font-size:15px;font-weight:500;padding:8px 14px;border-radius:var(--radius);transition:background .15s}
#primary-nav a:hover{background:rgba(255,255,255,.1);text-decoration:none}
#primary-nav .btn{padding:8px 18px}
.nav-toggle{display:none;background:none;border:none;cursor:pointer}
.nav-toggle span{display:block;width:26px;height:2px;background:var(--white);margin:5px 0;transition:.2s}

/* HERO */
.hero{background:linear-gradient(135deg,var(--navy) 0%,#142b5e 60%,#1a3a7a 100%);padding:100px 0 120px;position:relative;overflow:hidden}
.hero-eyebrow{display:inline-block;background:rgba(201,168,76,.2);border:1px solid var(--gold);color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;padding:6px 18px;border-radius:20px;margin-bottom:24px}
.hero h1{font-size:clamp(2.4rem,5vw,4rem);color:var(--white);margin-bottom:20px;max-width:700px}
.hero h1 em{color:var(--gold);font-style:normal}
.hero p{font-size:1.15rem;color:rgba(255,255,255,.82);max-width:560px;margin-bottom:36px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.hero-stats{display:flex;gap:40px;margin-top:60px;padding-top:40px;border-top:1px solid rgba(201,168,76,.3);flex-wrap:wrap}
.hero-stat-num{font-family:var(--font-serif);font-size:2.4rem;font-weight:700;color:var(--gold);line-height:1}
.hero-stat-label{font-size:13px;color:rgba(255,255,255,.65);margin-top:4px;letter-spacing:.05em}

/* COUNTDOWN */
.countdown-wrap{background:var(--gold);padding:20px 0;text-align:center}
.countdown-inner{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.countdown-label{font-family:var(--font-serif);font-size:18px;font-weight:700;color:var(--navy)}
.countdown-timer{display:flex;gap:16px}
.cd-block{text-align:center}
.cd-num{display:block;font-family:var(--font-serif);font-size:2rem;font-weight:700;color:var(--navy);line-height:1;min-width:54px}
.cd-unit{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(10,31,68,.7)}

/* CARDS */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px;margin-top:48px}
.card{background:var(--white);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(10,31,68,.16)}
.card-icon{width:52px;height:52px;border-radius:12px;background:linear-gradient(135deg,var(--gold),var(--gold-lt));display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:18px}
.card-body{padding:28px}
.card-body h3{font-size:1.25rem;margin-bottom:10px}
.card-body p{color:var(--muted);font-size:15px;line-height:1.6}

/* SECTION HEADERS */
.section-header{text-align:center;margin-bottom:52px}
.section-header h2{font-size:clamp(1.8rem,3vw,2.6rem);margin-bottom:14px}
.section-header p{font-size:1.05rem;color:var(--muted);max-width:560px;margin:0 auto}
.gold-line{width:60px;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-lt));margin:16px auto 0;border-radius:2px}

/* TIMELINE */
.timeline{position:relative;padding-left:36px}
.timeline::before{content:'';position:absolute;left:8px;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,var(--gold),rgba(201,168,76,.2))}
.timeline-item{position:relative;margin-bottom:40px}
.timeline-dot{position:absolute;left:-32px;top:4px;width:16px;height:16px;border-radius:50%;background:var(--gold);border:3px solid var(--cream);box-shadow:0 0 0 2px var(--gold)}
.timeline-time{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:4px}
.timeline-item h3{font-size:1.15rem;margin-bottom:6px}
.timeline-item p{color:var(--muted);font-size:15px}

/* BLOG */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:32px}
.post-card{background:var(--white);border-radius:10px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.post-card:hover{transform:translateY(-3px)}
.post-card-img{height:200px;overflow:hidden;background:linear-gradient(135deg,var(--navy),#2a4a8e)}
.post-card-img img{width:100%;height:100%;object-fit:cover}
.post-card-body{padding:26px}
.post-meta{font-size:13px;color:var(--muted);margin-bottom:10px}
.post-card-body h2 a{color:var(--navy);font-size:1.2rem}
.post-card-body h2 a:hover{color:var(--gold);text-decoration:none}
.post-excerpt{color:var(--muted);font-size:15px;margin-top:10px}
.single-post{max-width:760px;margin:0 auto;padding:60px 24px}
.single-post h1{font-size:2.2rem;margin-bottom:16px}
.post-content p{margin-bottom:20px}
.post-content h2,.post-content h3{margin:32px 0 12px}

/* CONTACT */
.contact-wrap{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.contact-form input,.contact-form textarea{width:100%;padding:13px 16px;border:1.5px solid var(--border);border-radius:var(--radius);font-family:var(--font-sans);font-size:16px;background:var(--white);color:var(--text);transition:border-color .15s;margin-bottom:18px}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--gold);outline:none}
.contact-form textarea{height:160px;resize:vertical}
.contact-detail{display:flex;gap:14px;margin-bottom:22px;align-items:flex-start}
.contact-detail-icon{width:44px;height:44px;flex-shrink:0;background:linear-gradient(135deg,var(--gold),var(--gold-lt));border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}

/* DIRECTORY */
.directory-header{background:var(--navy);padding:50px 0 60px}
.directory-header h1{color:var(--gold);font-size:2.4rem}
.directory-header p{color:rgba(255,255,255,.75)}
.directory-search-bar{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.directory-search-bar input{flex:1;min-width:240px;padding:12px 18px;border-radius:var(--radius);border:2px solid rgba(201,168,76,.4);background:rgba(255,255,255,.08);color:var(--white);font-size:15px}
.directory-search-bar input::placeholder{color:rgba(255,255,255,.45)}
.directory-search-bar input:focus{outline:none;border-color:var(--gold)}
.members-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;margin-top:40px}
.member-card{background:var(--white);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);text-align:center;transition:transform .2s}
.member-card:hover{transform:translateY(-4px)}
.member-card-photo{height:200px;background:linear-gradient(135deg,var(--navy) 0%,#2a4a8e 100%);position:relative;overflow:hidden}
.member-card-photo img{width:100%;height:100%;object-fit:cover}
.member-card-photo .no-photo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:3rem;font-weight:700;color:var(--gold)}
.member-card-body{padding:20px 18px}
.member-card-body h3{font-size:1.1rem;margin-bottom:4px}
.member-card-body .hometown{font-size:13px;color:var(--muted)}
.member-card-body a{display:inline-block;margin-top:12px;font-size:14px;font-weight:600;color:var(--gold)}

/* PROFILE */
.profile-hero{background:linear-gradient(135deg,var(--navy),#142b5e);padding:60px 0}
.profile-hero-inner{display:flex;gap:40px;align-items:center;flex-wrap:wrap}
.profile-photo-wrap{width:180px;height:180px;flex-shrink:0;border-radius:50%;border:4px solid var(--gold);overflow:hidden;background:#142b5e}
.profile-photo-wrap img{width:100%;height:100%;object-fit:cover}
.profile-initials{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:3.5rem;font-weight:700;color:var(--gold)}
.profile-info h1{color:var(--white);font-size:2.4rem}
.profile-info .profile-sub{color:rgba(255,255,255,.7);font-size:1rem;margin-top:8px}
.profile-body{padding:60px 0}
.profile-grid{display:grid;grid-template-columns:2fr 1fr;gap:48px}
.profile-section h2{font-size:1.4rem;border-bottom:2px solid var(--border);padding-bottom:10px;margin-bottom:20px}
.profile-sidebar .sidebar-card{background:var(--white);border-radius:10px;padding:26px;box-shadow:var(--shadow);margin-bottom:20px}
.profile-detail{display:flex;gap:10px;margin-bottom:12px;font-size:15px}
.profile-detail .label{font-weight:600;color:var(--muted);min-width:100px}
.interests-list{display:flex;flex-wrap:wrap;gap:8px}
.interest-tag{padding:4px 14px;border-radius:20px;background:rgba(201,168,76,.15);border:1px solid rgba(201,168,76,.4);color:var(--navy);font-size:13px}

/* CONSENT */
.consent-overlay{position:fixed;inset:0;z-index:1000;background:rgba(10,31,68,.92);display:flex;align-items:center;justify-content:center;padding:20px}
.consent-box{background:var(--white);border-radius:14px;padding:48px 44px;max-width:560px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.consent-box .crest-lg{width:72px;height:72px;background:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:30px;font-weight:900;color:var(--navy);margin:0 auto 24px}
.consent-box h2{text-align:center;font-size:1.6rem;margin-bottom:16px}
.consent-box p{color:var(--muted);font-size:15px;line-height:1.7;margin-bottom:20px}
.consent-checks label{display:flex;gap:12px;margin-bottom:14px;font-size:14px;color:var(--text);cursor:pointer;line-height:1.5}
.consent-checks input[type=checkbox]{margin-top:3px;width:16px;height:16px;flex-shrink:0;accent-color:var(--gold)}

/* AUTH */
.auth-wrap{min-height:100vh;background:linear-gradient(135deg,var(--navy) 0%,#142b5e 100%);display:flex;align-items:center;justify-content:center;padding:40px 20px}
.auth-card{background:var(--white);border-radius:14px;padding:48px 44px;width:100%;max-width:460px;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.auth-card h2{text-align:center;margin-bottom:28px;font-size:1.7rem}
.form-field{margin-bottom:18px}
.form-field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px;color:var(--navy)}
.form-field input{width:100%;padding:12px 16px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:16px;transition:border-color .15s}
.form-field input:focus{border-color:var(--gold);outline:none}
.form-hint{font-size:12px;color:var(--muted);margin-top:4px}
.auth-switch{text-align:center;margin-top:20px;font-size:14px;color:var(--muted)}
.notice-error{background:#fff3f3;border-left:4px solid #e74c3c;padding:12px 18px;border-radius:var(--radius);font-size:14px;margin-bottom:20px}
.notice-success{background:#f0fff4;border-left:4px solid #27ae60;padding:12px 18px;border-radius:var(--radius);font-size:14px;margin-bottom:20px}

/* FOOTER */
#site-footer{background:#060e1e;color:rgba(255,255,255,.65);padding:60px 0 30px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand p{font-size:14px;margin-top:12px;line-height:1.7}
#site-footer h4{color:var(--gold);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:16px}
#site-footer ul{list-style:none}
#site-footer ul li{margin-bottom:8px}
#site-footer ul a{color:rgba(255,255,255,.6);font-size:14px}
#site-footer ul a:hover{color:var(--gold-lt)}
.footer-bottom{padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px}

/* RESPONSIVE */
@media(max-width:900px){.contact-wrap,.profile-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.nav-toggle{display:block}#primary-nav{display:none;position:absolute;top:var(--header-h);left:0;right:0;background:var(--navy);padding:16px 24px}#primary-nav.open{display:block}#primary-nav ul{flex-direction:column;gap:4px}.hero-stats{gap:24px}.footer-grid{grid-template-columns:1fr}.auth-card,.consent-box{padding:32px 24px}.countdown-timer{gap:10px}}
