/* =========================================================
   The Poster Doc - Alpha Files - Complete Improved CSS
   Content untouched. Visual upgrade only.
   ========================================================= */

:root {
    --bg-main: #141311;           /* deep warm charcoal */
    --bg-surface: #1d1a17;        /* card / panel background */
    --bg-surface-2: #241f1a;      /* slightly richer panel tone */
    --accent: #c8a45a;            /* antique gold */
    --accent-deep: #8f6b32;       /* bronze / deep gold */
    --accent-soft: #e1c98b;       /* lighter gold highlight */
    --text-main: #f2ead8;         /* soft cream */
    --text-soft: #d7ccb6;         /* muted cream */
    --text-dim: #b3a58a;          /* subdued text */
    --border: rgba(143, 107, 50, 0.55);
    --border-soft: rgba(200, 164, 90, 0.18);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.42);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.32);
    --radius-lg: 18px;
    --radius-md: 12px;
    --content-width: 1100px;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Page ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FONT SYSTEM (Restoration Focused) ===== */

body {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    letter-spacing: 0.4px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, rgba(200, 164, 90, 0.06), transparent 28%),
        linear-gradient(180deg, #181613 0%, var(--bg-main) 100%);
    min-height: 100vh;
}

/* ===== Basic layout ===== */
main {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
    color: var(--text-main);
}

section {
    margin-bottom: 28px;
}

/* ===== Header ===== */
header {
    position: relative;
    background:
        linear-gradient(180deg, rgba(43, 36, 29, 0.96) 0%, rgba(25, 22, 18, 0.98) 100%);
    color: var(--text-main);
    text-align: center;
    padding: 28px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

header::after {
    content: "";
    display: block;
    width: min(220px, 70%);
    height: 2px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.75;
}

header h1 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    letter-spacing: 0.8px;
}

    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

/* ===== Navigation ===== */
nav {
    margin-top: 4px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    transform: none;
    padding: 0 10px;
}

nav li {
    display: inline-flex;
}

nav a,
nav a:link,
nav a:visited {
    display: inline-block;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

nav a:hover,
nav a:focus {
    color: #16120e;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    border-color: rgba(225, 201, 139, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.28);
    outline: none;
}

nav a:active {
    color: #16120e;
    background: var(--accent);
    transform: translateY(0);
}

/* ===== Typography ===== */
h2 {
    color: var(--accent);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.25;
    margin-bottom: 14px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

p,
li,
figcaption,
footer,
a {
    color: var(--text-main);
}

p {
    margin-bottom: 10px;
}

strong,
b,
span {
    color: var(--text-main);
}

/* ===== Panels / content blocks ===== */
.intro,
.services,
main > section,
.gallery,
.Email_Us,
.Listings {
    background:
        linear-gradient(180deg, rgba(38, 33, 28, 0.92) 0%, rgba(27, 24, 20, 0.96) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

/* Handle pages where text is not wrapped in special classes */
main > section:not(.gallery):not(.Email_Us):not(.Listings) {
    backdrop-filter: blur(2px);
}

/* ===== Lists ===== */
ul {
    padding-left: 22px;
}

.services ul {
    margin-top: 10px;
}

.services li {
    margin-bottom: 8px;
    color: var(--text-soft);
}

.services li::marker {
    color: var(--accent);
}

/* ===== Links ===== */
a,
a:link,
a:visited {
    color: var(--accent-soft);
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus {
    color: #fff1c6;
    font-weight: inherit;
    transform: none;
    outline: none;
}

a:active {
    color: var(--accent);
}

/* ===== Generic image styling ===== */
img {
    max-width: 100%;
    height: auto;
}

section img {
    border-radius: var(--radius-md);
}

/* ===== Home logo image ===== */
main section img[alt="The Poster Doc Logo"] {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* ===== Gallery ===== */
.gallery {
    margin-top: 0;
    color: var(--text-main);
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 18px;
}

.gallery-row:last-child {
    margin-bottom: 0;
}

.gallery-row figure {
    flex: 1 1 45%;
    min-width: 280px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(42, 36, 30, 0.92) 0%, rgba(24, 21, 18, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-md);
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

figcaption {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-top: 10px;
    min-height: 1.2em;
}

/* ===== Email block / simple centered utility areas ===== */
.Email_Us,
.Listings {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    transform: none;
    text-align: center;
}

.Email_Us img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ===== Optional container/button classes from original CSS ===== */
.button {
    border: 1px solid var(--border);
    color: #16120e;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    padding: 10px 16px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    width: auto;
    height: auto;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.container .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #16120e;
    font-size: 16px;
    padding: 12px 22px;
    border: 1px solid var(--border);
    cursor: pointer;
    border-radius: 999px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 26px 16px 34px;
    color: var(--text-dim);
    background:
        linear-gradient(180deg, rgba(24, 21, 18, 0.98) 0%, rgba(16, 14, 12, 1) 100%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 24px rgba(0,0,0,0.22);
}

footer p {
    color: var(--text-dim);
    margin-bottom: 0;
}

footer a,
footer a:link,
footer a:visited {
    color: var(--accent-soft);
}

footer a:hover,
footer a:focus {
    color: #fff1c6;
}

footer img {
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

/* ===== Legacy helper classes from original CSS ===== */
.News {
    text-align: center;
}

/* ===== Better readability for line-break heavy content ===== */
main br + br {
    line-height: 0.65;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    main {
        width: min(var(--content-width), calc(100% - 22px));
        padding-top: 22px;
    }

    .intro,
    .services,
    main > section,
    .gallery,
    .Email_Us,
    .Listings {
        padding: 20px;
    }

    .gallery-row {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.65;
    }

    header {
        padding: 22px 12px 16px;
    }

    nav ul {
        gap: 10px;
    }

    nav a,
    nav a:link,
    nav a:visited {
        padding: 9px 14px;
        font-size: 0.96rem;
    }

    .gallery-row {
        flex-direction: column;
    }

    .gallery-row figure {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    main {
        width: calc(100% - 16px);
        padding-top: 18px;
    }

    .intro,
    .services,
    main > section,
    .gallery,
    .Email_Us,
    .Listings {
        padding: 16px;
        border-radius: 14px;
    }

    header h1 {
        letter-spacing: 0.5px;
    }

    nav ul {
        gap: 8px;
    }

    nav a,
    nav a:link,
    nav a:visited {
        width: 100%;
    }

    nav li {
        width: 100%;
        justify-content: center;
    }
}