/*
Theme Name: University Premium
Description: Premium university theme with refined design
Version: 2.0.0
*/

:root {
    --navy: #0c1f3f;
    --navy-deep: #061224;
    --navy-light: #1a3a6b;
    --gold: #c9a84c;
    --gold-light: #e4cb7a;
    --gold-dark: #a68a3a;
    --cream: #faf8f5;
    --white: #ffffff;
    --warm-white: #fefdfb;
    --text: #1a1a1a;
    --text-light: #333333;
    --text-muted: #666666;
    --border: #e8e4de;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1280px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.06);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12), 0 32px 80px rgba(0,0,0,0.08);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.75; color: var(--text); background: var(--warm-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.25s var(--transition); }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--navy); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin-bottom: 1.25rem; color: var(--text-light); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; color: var(--text-light); }
strong { color: var(--text); }
em { font-style: italic; }

/* ── Container ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--cream); }

/* ── Header ── */
.site-header { background: var(--warm-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s var(--transition), background 0.3s var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow-md); background: rgba(254,253,251,0.97); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 2rem; max-width: 1440px; margin: 0 auto; }

/* Hamburger Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.site-branding { display: flex; align-items: center; gap: 0.875rem; text-decoration: none; color: inherit; flex-shrink: 0; }
.site-branding:hover { color: inherit; }
.site-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0; }
.site-title span { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 2px; }

.main-navigation { margin-left: 2rem; }
.main-navigation ul { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.main-navigation a { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem 0.75rem; border-radius: var(--radius); transition: all 0.25s var(--transition); white-space: nowrap; }
.main-navigation a:hover { color: var(--navy); background: rgba(12,31,63,0.04); }

/* ── Hero ── */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text { color: var(--white); }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); color: var(--gold-light); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2rem; backdrop-filter: blur(8px); }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.hero h1 { color: var(--white); font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1.08; margin-bottom: 1.5rem; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-description { font-size: 1.15rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); }
.stat-number { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.35rem; }

.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.hero-visual::before { content: ''; position: absolute; top: -16px; right: -16px; width: 100%; height: 100%; border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-lg); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.3s var(--transition); white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }

/* ── Section Headers ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }
.section-label { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }

/* ── Program Cards ── */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.program-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all 0.4s var(--transition); position: relative; overflow: hidden; }
.program-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); opacity: 0; transition: opacity 0.3s var(--transition); }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,168,76,0.3); }
.program-card:hover::after { opacity: 1; }

.program-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.program-icon svg { width: 24px; height: 24px; fill: var(--white); }

.program-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.program-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.program-link { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; font-size: 0.8rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.05em; transition: gap 0.3s var(--transition); }
.program-link:hover { gap: 0.625rem; color: var(--gold); }
.program-link::after { content: '→'; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.feature-item { text-align: center; padding: 1.5rem; }
.feature-icon { width: 72px; height: 72px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; transition: all 0.4s var(--transition); }
.feature-item:hover .feature-icon { background: var(--navy); transform: scale(1.08); }
.feature-icon svg { width: 32px; height: 32px; fill: var(--navy); transition: fill 0.4s var(--transition); }
.feature-item:hover .feature-icon svg { fill: var(--white); }
.feature-item h4 { margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Testimonials ── */
.testimonials-section { background: var(--navy); position: relative; overflow: hidden; }
.testimonials-section::before { content: '\201C'; position: absolute; top: -40px; left: 40px; font-size: 280px; font-family: var(--font-display); color: rgba(201,168,76,0.06); line-height: 1; pointer-events: none; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(8px); transition: all 0.3s var(--transition); }
.testimonial-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(201,168,76,0.2); }
.testimonial-quote { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-deep); flex-shrink: 0; }
.testimonial-name { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); text-align: center; }
.cta-section h2 { color: var(--navy-deep); margin-bottom: 0.75rem; }
.cta-section p { font-size: 1.15rem; color: var(--navy); max-width: 520px; margin: 0 auto 2rem; }
.cta-section .btn { background: var(--navy-deep); color: var(--white); }
.cta-section .btn:hover { background: var(--white); color: var(--navy-deep); }

/* ── Footer ── */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .site-title { color: var(--white); font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; }
.footer-column h4 { color: var(--white); font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.25rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.6rem; }
.footer-column a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.25s var(--transition); }
.footer-column a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom p, .footer-bottom { color: #cccccc; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.75rem; transition: all 0.25s var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }

/* ── Page Header ── */
.page-header { background: var(--navy); padding: 5rem 0 3.5rem; text-align: center; }
.page-header h1 { color: var(--white); }
.page-header .breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 0.75rem; }
.page-header .breadcrumb a { color: var(--gold); }

/* ── Content ── */
.entry-content { padding: 3.5rem 0 4rem; max-width: 800px; margin: 0 auto; }
.entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--gold-dark); border-bottom: 1px solid transparent; transition: border-color 0.25s var(--transition); }
.entry-content a:hover { border-bottom-color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: nowrap; gap: 0.5rem; padding: 0.75rem 1rem; }
    .site-title { font-size: 1.1rem; }
    .site-title span { font-size: 0.6rem; }
    .menu-toggle { display: flex; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--warm-white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 1rem; z-index: 99; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0.25rem; }
    .main-navigation a { display: block; font-size: 0.85rem; padding: 0.6rem 0.75rem; border-radius: var(--radius); white-space: normal; }
    .main-navigation a:hover { background: rgba(12,31,63,0.06); }
    .hero { min-height: auto; padding: 3rem 0; }
    .hero-stats { flex-direction: column; gap: 1.5rem; text-align: center; }
    .programs-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero h1 { font-size: 2rem; }
    .btn { width: 100%; justify-content: center; }
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.5s var(--transition) forwards; }

/* ── WP Overrides ── */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
