/* ==========================================================================
   THEME 1 — Professional Light / Corporate Banking Aesthetic
   A clean, trustworthy design with calm colours, generous whitespace,
   centered layout, serif-ish headings, and gentle fade-in animation.
   ========================================================================== */

:root {
    --t1-bg: #fafaf7;
    --t1-surface: #ffffff;
    --t1-primary: #1b3a5b;
    --t1-accent: #c9a961;           /* Warm gold — premium banking */
    --t1-text: #2a3342;
    --t1-muted: #6b7280;
    --t1-border: #e8e6dd;
}

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

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--t1-bg);
    color: var(--t1-text);
    line-height: 1.7;
    /* Fade in the whole page on load — runs once */
    animation: t1FadeIn 1s ease-in-out 1;
}

@keyframes t1FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.demo-container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.demo-header {
    background: var(--t1-surface);
    border-bottom: 3px double var(--t1-accent);
    padding: 2rem 0 1.5rem;
}

.demo-title {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--t1-primary);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Letter-spacing animation on load */
    animation: t1LetterSpread 1.2s ease-out 1;
}

@keyframes t1LetterSpread {
    from { letter-spacing: 0; opacity: 0; }
    to   { letter-spacing: 2px; opacity: 1; }
}

.demo-nav {
    text-align: center;
    margin-top: 1rem;
}

.demo-nav a {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.3rem 0;
    color: var(--t1-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    font-family: Georgia, serif;
    font-style: italic;
}

.demo-nav a:hover { border-bottom-color: var(--t1-accent); color: var(--t1-accent); }

/* Main */
.demo-main { padding: 3rem 1.5rem; }

.demo-hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--t1-border);
    margin-bottom: 2rem;
}

.demo-hero-img {
    width: 200px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.demo-hero-text h2 {
    font-size: 1.8rem;
    color: var(--t1-primary);
    font-weight: 400;
    font-style: italic;
    margin: 0 0 0.8rem;
}

.demo-hero-text p { color: var(--t1-muted); max-width: 60ch; margin: 0 auto; }

/* Sections: centered, narrow, serif headings */
.demo-section {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--t1-border);
}

.demo-section:last-of-type { border-bottom: none; }

.demo-section-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--t1-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--t1-accent);
    letter-spacing: 1px;
}

.demo-section-img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1rem;
    border: 1px solid var(--t1-border);
    padding: 0.5rem;
    background: var(--t1-surface);
}

.demo-section p { text-align: justify; color: var(--t1-text); }

.demo-section strong { color: var(--t1-accent); font-weight: 700; }

/* Footer */
.demo-footer {
    background: var(--t1-surface);
    border-top: 3px double var(--t1-accent);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--t1-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 3rem;
}

.demo-footer a { color: var(--t1-primary); }

/* Responsive */
@media (min-width: 600px) {
    .demo-title { font-size: 2.5rem; }
    .demo-hero-text h2 { font-size: 2.2rem; }
}

:focus-visible { outline: 2px solid var(--t1-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
