/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 3). */
* ============================
   Theme: Community Connections
   ============================ */

:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --accent: #F9A825;
    --accent-hover: #FBC02D;
    --text: #333;
    --text-light: #fff;
    --text-muted: #666;
    --bg: #f4f7f2;
    --card-bg: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-sm: 4px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5 {
    line-height: 1.3;
    margin-top: 0;
    font-weight: 600;
}

h1 { font-size: 2.5rem; color: var(--primary-dark); }
h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1rem; }
h3 { font-size: 1.75rem; color: var(--primary); }
h4 { font-size: 1.5rem; color: var(--primary-dark); }
h5 { font-size: 1.25rem; color: var(--primary-dark); }

p { margin-bottom: 1.25rem; }

strong { font-weight: 700; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
li { margin-bottom: 0.5rem; }

blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    background: rgba(46,125,50,0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

/* ============================
   HEADER / LOGO / BRANDING
   ============================ */

.logo-mobile,
.logo {
    text-align: center;
    margin: 1.5rem 0;
}
.logo img,
.logo-mobile img {
    max-height: 100px;
    width: auto;
    display: inline-block;
}

/* Mobile‑first: show mobile logo, hide desktop */
.logo-mobile { display: block; }
.logo        { display: none; }

@media (min-width: 769px) {
    .logo-mobile { display: none; }
    .logo        { display: block; }
}

/* ============================
   MAIN NAVIGATION
   ============================ */

#nav-placeholder {
    background: var(--primary);
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.nav {
    display: inline-flex;
}

.nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-light);
    text-decoration: none;
}

/* social icons inside nav */
.social-media {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}
.social-media a {
    display: inline-block;
    padding: 0.25rem;
    line-height: 1;
}
.social-media img {
    height: 1.8rem;
    width: auto;
}

/* Mobile nav – stack vertically */
@media (max-width: 768px) {
    #nav-placeholder {
        flex-direction: column;
        align-items: stretch;
    }
    .nav, .social-media {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .nav a {
        display: block;
        width: 100%;
        padding: 0.75rem;
    }
    .social-media {
        margin: 0.5rem 0 0 0;
        justify-content: center;
        gap: 0.75rem;
    }
}

/* ============================
   HOMEPAGE HERO (h1.home + image)
   ============================ */

h1.home {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin: 2rem auto 1.5rem;
    padding: 0 1rem;
    line-height: 1.3;
    font-weight: 700;
    max-width: 800px;
}

.composite-images {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================
   VIDEO WRAPPER (iframe)
   ============================ */

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================
   SCROLL-DOWN / SCROLL-UP
   ============================ */

.go-down, .go-up {
    text-align: center;
    margin: 2rem 0;
}
.go-down a, .go-up a {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.go-down a:hover, .go-up a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.go-down img, .go-up img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    opacity: 0.7;
}
.go-down a:hover img, .go-up a:hover img { opacity: 1; }

#down { height: 0; visibility: hidden; }   /* just an anchor */

/* ============================
   MAIN CONTENT COLUMN
   ============================ */

.content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.content h2 {
    margin-top: 3rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.green {
    color: var(--primary);
    font-weight: 600;
}

.initials {
    font-style: italic;
    color: var(--primary-dark);
}

.content img {
    margin: 1rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================
   IMAGE PANEL (inner page)
   ============================ */

.image-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}
.image-panel img {
    width: calc(33.33% - 1rem);
    min-width: 200px;
    flex: 0 1 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.image-panel img:hover {
    transform: scale(1.02);
}

/* ============================
   MOBILE HEADER (inner page)
   ============================ */

.mobile-header {
    text-align: center;
    padding: 1rem;
    background: var(--primary);
    color: var(--text-light);
    display: none;
    font-size: 1.2rem;
    font-weight: 600;
}
.mobile-header a { color: var(--text-light); font-weight: 500; }

@media (max-width: 768px) {
    .mobile-header { display: block; }
}

/* ============================
   HIDDEN ON SCREEN / MOBILE
   ============================ */

.hide-on-screen { display: none !important; }

.hide-on-mobile { }   /* visible by default */

@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}

/* ============================
   BACK TO TOP
   ============================ */

.btt {
    text-align: center;
    margin: 2.5rem 0 1rem;
}
.btt a {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: background 0.2s;
}
.btt a:hover {
    background: var(--primary);
    text-decoration: none;
    color: #fff;
}

/* ============================
   FOOTER
   ============================ */

#footer, .footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 2.5rem 1rem;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.95rem;
}
#footer p, .footer p { margin-bottom: 1rem; }
#footer a, .footer a { color: var(--accent); font-weight: 500; }
#footer a:hover, .footer a:hover { color: var(--accent-hover); text-decoration: underline; }

.credits, .small {
    font-size: 0.85rem;
    opacity: 0.85;
}

.rwd-line {
    display: block;
    height: 2px;
    background: var(--accent);
    margin: 2rem auto;
    max-width: 200px;
}

.CAPS {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ============================
   MARQUEE
   ============================ */

marquee {
    display: block;
    background: var(--primary);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}
marquee a {
    color: var(--text-light);
    padding: 0 0.5rem;
}
marquee a:hover {
    color: var(--accent);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    marquee {
        animation: none;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================
   ADVISORY BOX (#advisory)
   ============================ */

#advisory {
    background: #fff3e0;
    border-left: 5px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
#advisory h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
    border-bottom: none;
    padding-bottom: 0;
}

/* ============================
   BUTTONS & FORMS
   ============================ */

button,
input[type="submit"],
.btn,
a.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
button:hover,
input[type="submit"]:hover,
.btn:hover,
a.btn:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.2);
}

form {
    margin: 1.5rem 0;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

/* ============================
   TABLES
   ============================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
th, td {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    text-align: left;
}
th {
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
}
tr:nth-child(even) {
    background-color: #f9faf7;
}

/* ============================
   CLOUDFLARE ERROR PAGE OVERRIDES
   (fixes reviewer‑reported issues)
   ============================ */

.cf-error-page,
.error-page {
    max-width: 860px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    line-height: 1.6;
}

.cf-error-code,
.error-code {
    display: inline-block;
    background: var(--primary-dark);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.cf-error-title,
.error-title,
h1.cf-error-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* status blocks */
.cf-column,
.cf-browser-status,
.cf-cloudflare-status,
.cf-host-status,
.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cf-column h2,
.cf-browser-status h2,
.cf-cloudflare-status h2,
.cf-host-status h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cf-column span,
.cf-browser-status span,
.cf-cloudflare-status span,
.cf-host-status span {
    display: block;
    margin-bottom: 0.25rem;
}

/* row layout on larger screens */
@media (min-width: 600px) {
    .cf-error-details,
    .cf-row,
    .cf-clear,
    .status-row {
        display: flex;
        gap: 1.5rem;
        justify-content: space-between;
    }
    .cf-column,
    .cf-browser-status,
    .cf-cloudflare-status,
    .cf-host-status,
    .status-card {
        flex: 1;
        margin: 0;
    }
}

/* vertical spacing for sections */
h2 {
    margin-top: 2.5rem;   /* pushes "What happened?" away from error blocks */
    margin-bottom: 1rem;
}

/* mobile adjustments for error page */
@media (max-width: 768px) {
    .cf-error-page,
    .error-page {
        margin: 1rem;
        padding: 1.5rem;
    }
    .cf-error-code,
    .error-code {
        display: block;
        margin: 0.5rem 0 0 0;
    }
    .cf-column,
    .cf-browser-status,
    .cf-cloudflare-status,
    .cf-host-status {
        margin: 0.5rem 0;
    }
}

/* ============================
   RESPONSIVE UTILITY
   ============================ */

@media (max-width: 768px) {
    h1.home { font-size: 1.8rem; }
    .content { padding: 1.5rem 1rem; }
    .image-panel img { width: 100%; max-width: 400px; }
    .composite-images { margin: 1rem auto; }
    body { padding: 0; }
}

/* ============================
   MISC ADJUSTMENTS
   ============================ */

/* Remove possible very large gaps in footer images */
#footer img, .footer img { max-height: 60px; margin: 0.5rem; vertical-align: middle; }

/* Hide empty paragraphs or br that cause large gaps */
p:empty { display: none; }