/* ============================================
   CAMP BAIS YAAKOV — Policy Page Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --gold:          #c9882a;
    --gold-light:    #e8b96a;
    --cream:         #fdf8f0;
    --cream-dark:    #f5ede0;
    --forest-dark:   #1a2e1f;
    --forest-mid:    #2c5c3d;
    --forest-green:  #4b7d5e;
    --text-heading:  #1a2e1f;
    --text-body:     #2d3e2c;
    --text-light:    #4a5e48;
    --text-meta:     #7a8f78;
    --card-bg:       rgba(253, 248, 240, 0.94);
    --header-bg:     rgba(22, 40, 26, 0.90);
    --footer-bg:     rgba(22, 40, 26, 0.86);
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Lora', Georgia, serif;
    --content-width: 800px;
    --card-pad:      3rem;
    --header-h:      72px;
    --footer-h:      64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
}

/* --- Scenic Background (fixed, full-viewport) --- */
.landscape-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.landscape-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Site Header --- */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 136, 42, 0.35);
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-emblem {
    width: 36px;
    height: 44px;
    flex-shrink: 0;
    opacity: 0.92;
}

.header-emblem svg {
    width: 100%;
    height: 100%;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.camp-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.025em;
    line-height: 1.2;
}

.camp-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--gold-light);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-style: italic;
}

/* --- Page Content Wrapper --- */
.page-content {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    padding: 2.5rem 1.5rem 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- Card entrance animation --- */
@keyframes card-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Policy Card --- */
.policy-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 6px 32px rgba(26, 46, 31, 0.22),
        0 1px 6px rgba(26, 46, 31, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.6);
    max-width: var(--content-width);
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    animation: card-in 0.5s ease-out both;
}

/* --- Card Header (title section) --- */
.policy-card-header {
    padding: var(--card-pad) var(--card-pad) 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(201, 136, 42, 0.06), transparent);
    border-bottom: 1px solid rgba(201, 136, 42, 0.18);
}

.policy-card-footer {
    padding: 1.5rem var(--card-pad) var(--card-pad);
    text-align: center;
    border-top: 1px solid rgba(201, 136, 42, 0.18);
    background: linear-gradient(to top, rgba(201, 136, 42, 0.04), transparent);
}

/* --- Decorative Dividers --- */
.decorative-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.decorative-divider svg {
    width: 180px;
    height: 28px;
}

.policy-card-footer .decorative-divider {
    margin-bottom: 0;
}

/* --- Titles & Meta --- */
.policy-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.policy-date {
    font-family: var(--font-body);
    font-size: 0.83rem;
    color: var(--text-meta);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* --- Policy Body --- */
.policy-body {
    padding: 2.25rem var(--card-pad) 2rem;
}

.policy-body h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 2.5rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid rgba(201, 136, 42, 0.28);
    line-height: 1.3;
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest-mid);
    margin-top: 1.75rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.policy-body p {
    font-size: 0.97rem;
    line-height: 1.78;
    color: var(--text-body);
    margin-bottom: 1.1rem;
}

.policy-body p:last-child {
    margin-bottom: 0;
}

.policy-body ul,
.policy-body ol {
    margin-bottom: 1.1rem;
    padding-left: 1.6rem;
}

.policy-body li {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 0.4rem;
}

.policy-body ul li::marker {
    color: var(--gold);
}

.policy-body ol li::marker {
    color: var(--forest-green);
    font-weight: 600;
    font-family: var(--font-display);
}

.policy-body a {
    color: var(--forest-green);
    text-decoration: underline;
    text-decoration-color: rgba(75, 125, 94, 0.4);
    text-underline-offset: 2px;
    transition: color 0.18s, text-decoration-color 0.18s;
}

.policy-body a:hover {
    color: var(--gold);
    text-decoration-color: rgba(201, 136, 42, 0.5);
}

.policy-body a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.policy-body strong {
    font-weight: 600;
    color: var(--text-heading);
}

.policy-body em {
    color: var(--text-light);
}

/* Subtle intro lead paragraph */
.policy-body p.lead {
    font-size: 1.06rem;
    color: var(--text-light);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Site Footer --- */
.site-footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201, 136, 42, 0.3);
    padding: 1.1rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(253, 248, 240, 0.48);
    letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    :root { --card-pad: 2.25rem; }
}

@media (max-width: 640px) {
    :root {
        --card-pad: 1.5rem;
    }

    .policy-title {
        font-size: 1.7rem;
    }

    .camp-name {
        font-size: 1.15rem;
    }

    .page-content {
        padding: 1.25rem 0.75rem 2rem;
    }

    .policy-body h2 {
        font-size: 1.25rem;
    }
}
