/* ════════════════════════════════════════════════
   Khutbah Generator — Design System (Redesign)
   Mobile-first · Navy + Gold + Cool Grey
   ════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green:        #0D3320;
    --green-mid:    #154D32;
    --green-hover:  #1D6040;
    --gold:         #C49020;
    --gold-light:   #DDB84C;
    --cream:        #FAF7F2;
    --parchment:    #EDE8DC;
    --white:        #FFFFFF;
    --text:         #1A1814;
    --text-2:       #48433C;
    --text-3:       #908880;
    --border:       #D6D0C6;
    --border-light: #E6E0D4;
    --shadow:       0 4px 28px rgba(13,51,32,0.10), 0 1px 4px rgba(0,0,0,0.04);
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ───────────────────────────────────── */
.container {
    max-width: 920px;
    margin: 36px auto;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (min-width: 769px) {
    .container {
        margin: 32px auto;
        border-top: 1px solid var(--border);
        border-radius: 6px;
        overflow: hidden;
    }
}

/* ── Header ──────────────────────────────────────── */
.site-header {
    background: var(--cream);
    padding: 22px 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

/* Remove old green shimmer and gold bar — not needed on light bg */
.site-header::before { display: none; }

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 50%, var(--gold) 60%, transparent 100%);
}

/* Logo mark wrapper */
.site-logo {
    display: inline-block;
    position: relative;
    padding: 0;
}

.site-title {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 2px;
    line-height: 1.15;
    text-transform: uppercase;
    position: relative;
}

.site-title-rule {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin: 5px auto 4px;
    opacity: 0.8;
}

.site-subtitle {
    font-size: 0.58em;
    color: var(--text-3);
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    margin-top: 0;
}

.site-brand {
    margin-top: 10px;
    font-size: 0.72em;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
    position: relative;
}

.site-brand a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
    transition: color 0.15s, border-color 0.15s;
}

.site-brand a:hover {
    color: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
}

@media (min-width: 769px) {
    .site-header {
        padding: 22px 60px 20px;
    }
    .site-title {
        font-size: 2.3em;
    }
}

/* ── Navigation ──────────────────────────────────── */
.site-nav {
    background: var(--white);
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--parchment);
}

.site-nav a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.72em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 22px;
    position: relative;
    transition: color 0.18s;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 22px; right: 22px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.site-nav a:hover {
    color: #FFFFFF;
}

.site-nav a.active {
    color: var(--gold-light);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

@media (min-width: 769px) {
    .site-nav a {
        font-size: 0.73em;
        letter-spacing: 2px;
        padding: 14px 22px;
    }
    .site-nav a::after {
        left: 22px; right: 22px;
    }
}

/* ── Footer ──────────────────────────────────────── */
.footer {
    margin-top: 44px;
    padding: 20px 40px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-3);
    font-size: 0.87em;
    line-height: 1.9;
}

.footer p { margin-bottom: 6px; }

.footer a {
    color: var(--text-3);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.footer a:hover {
    color: var(--green);
    border-bottom-color: var(--gold);
}

/* ── Common Action Buttons ───────────────────────── */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'EB Garamond', serif;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    letter-spacing: 0.4px;
    min-width: 140px;
    min-height: 46px;
    justify-content: center;
    border: 1.5px solid;
    box-shadow: none;
    width: auto;
}

.action-btn.primary {
    background: var(--green);
    color: #FFFFFF;
    border-color: var(--green);
}

.action-btn.primary:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
    box-shadow: 0 2px 10px rgba(13,51,32,0.20);
}

.action-btn.secondary,
.action-btn:not(.primary) {
    background: var(--white);
    color: var(--text-2);
    border-color: var(--border);
}

.action-btn.secondary:hover,
.action-btn:not(.primary):hover {
    background: var(--parchment);
    border-color: var(--border);
    color: var(--green);
}

.action-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .container { margin: 0; border-left: none; border-right: none; }
    .site-header { padding: 32px 24px 28px; }
    .site-title { font-size: 1.9em; }
    .site-nav a { padding: 13px 14px; letter-spacing: 2px; font-size: 0.68em; }
    .site-nav a::after { left: 14px; right: 14px; }
}
