/* ==========================================================================
   RIGHT EVENTS — site-wide theme skin
   Black / white / red · Playfair Display + Poppins
   Loaded after Bootstrap + main.css so it overrides them on every page.
   ========================================================================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000;
    --bg-light: #f4f4f4;
    --text-light: #fff;
    --text-muted: #b5b5b5;
    --accent: #e10600;
    --accent-dark: #a80400;
    --border-soft: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body,
body.page,
body.single,
body.archive,
body.search,
body.error404,
body.blog {
    font-family: 'Poppins', sans-serif !important;
    background: var(--bg-dark) !important;
    color: var(--text-light) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: inherit;
    letter-spacing: -0.5px;
}

p { margin: 0 0 1em; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Hide the default WP starter-theme masthead/navigation — we rebuild it below */
#masthead,
#site-navigation { display: none !important; }

/* ============ HEADER / NAV (new) ============ */
.re-site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.re-site-header.scrolled {
    background: #000;
    padding: 16px 48px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.re-brand { display: flex; align-items: center; line-height: 1; }
.re-brand .custom-logo-link { display: inline-block; line-height: 0; }
.re-brand .custom-logo { max-height: 70px; width: auto; height: auto; }
.re-site-header.scrolled .re-brand .custom-logo { max-height: 52px; }
.re-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 900;
    color: var(--accent); letter-spacing: 1px;
    line-height: 1; text-decoration: none;
}
.re-brand-text small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 9px; letter-spacing: 4px;
    font-weight: 400; color: var(--text-light);
    margin-top: 4px;
}

.re-nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.re-nav-menu li { list-style: none; }
.re-nav-menu a {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    position: relative;
    padding: 4px 0;
    transition: color .2s;
    text-decoration: none;
}
.re-nav-menu a:hover,
.re-nav-menu .current-menu-item > a,
.re-nav-menu .current_page_item > a,
.re-nav-menu .current-menu-ancestor > a { color: var(--accent); }
.re-nav-menu .current-menu-item > a::after,
.re-nav-menu .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}

/* Mobile toggle */
.re-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #fff;
}
.re-nav-toggle span {
    display: block; height: 2px;
    background: currentColor; margin: 6px 0;
    transition: transform .2s;
}

/* ============ DEFAULT PAGE SHELL ============ */
/* The base theme wraps #page in a 1180px-wide centered box — stretch it back to full width. */
#page,
.site {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: var(--bg-dark) !important;
}
#content { padding-top: 0; }

/* Page hero banner — used on inner pages when rendered via page.php / single.php */
.re-page-banner {
    position: relative;
    padding: 200px 48px 120px;
    background: linear-gradient(135deg, #1a0000 0%, #000 60%, #2a0000 100%);
    overflow: hidden;
    text-align: left;
}
.re-page-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(225,6,0,0.25), transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(225,6,0,0.1), transparent 55%);
    pointer-events: none;
}
.re-page-banner::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.re-page-banner .inner {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
}
.re-page-banner .eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 20px;
}
.re-page-banner .eyebrow::before {
    content: ''; width: 32px; height: 1px; background: var(--accent);
}
.re-page-banner h1 {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 900; line-height: 1;
    color: #fff;
}
.re-page-banner h1 .accent { color: var(--accent); font-style: italic; }
.re-page-banner .breadcrumbs {
    margin-top: 24px; font-size: 13px;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-muted);
}
.re-page-banner .breadcrumbs a { color: var(--text-muted); }
.re-page-banner .breadcrumbs a:hover { color: var(--accent); }
.re-page-banner .breadcrumbs .sep { color: var(--accent); margin: 0 12px; }
.re-page-banner .breadcrumbs .current { color: #fff; }

/* Restyle the default WP page/post body area */
.site-main {
    background: var(--bg-dark);
    color: #e5e5e5;
    padding: 80px 0;
    min-height: 40vh;
}
.site-main .content-area,
.site-main .primary {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}
.site-main h1, .site-main h2, .site-main h3,
.site-main h4, .site-main h5, .site-main h6 {
    color: #fff;
    margin: 1.4em 0 .6em;
}
.site-main h1 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 900; }
.site-main h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; }
.site-main h3 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; }
.site-main p,
.site-main li { color: #d0d0d0; font-size: 16px; line-height: 1.8; }
.site-main a { color: var(--accent); }
.site-main a:hover { color: #fff; }
.site-main blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    color: #ccc;
    font-style: italic;
}
.site-main img { margin: 24px 0; border-radius: 2px; }
.site-main hr { border: 0; height: 1px; background: var(--border-soft); margin: 40px 0; }

.site-main .entry-title,
.site-main .page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 24px;
}
/* Banner already shows the page title — hide the duplicate from content-page.php */
.page .site-main .entry-header { display: none; }

/* Buttons inside WP content */
.site-main .wp-block-button__link,
.site-main button,
.site-main input[type="submit"] {
    background: var(--accent);
    color: #fff !important;
    border: 0;
    padding: 14px 28px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 0;
    transition: background .2s;
}
.site-main .wp-block-button__link:hover,
.site-main button:hover,
.site-main input[type="submit"]:hover { background: var(--accent-dark); }

/* Forms */
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="url"],
.site-main input[type="tel"],
.site-main input[type="search"],
.site-main textarea,
.site-main select {
    background: #111;
    border: 1px solid var(--border-soft);
    color: #fff;
    padding: 14px 16px;
    width: 100%;
    max-width: 500px;
    font-family: inherit;
    font-size: 15px;
}
.site-main input:focus,
.site-main textarea:focus { outline: none; border-color: var(--accent); }

/* Pagination */
.pagination, .nav-links {
    margin-top: 40px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border-soft);
    color: #ccc;
    text-decoration: none;
}
.pagination .current, .nav-links .current,
.pagination a:hover, .nav-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Post cards on archives */
.site-main article {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
}
.site-main article:last-child { border-bottom: 0; }

/* Comments */
.comments-area { margin-top: 60px; color: #ccc; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body {
    padding: 22px; border: 1px solid var(--border-soft);
    margin-bottom: 16px; background: #111;
}

/* ============ FOOTER (new) — full-width ============ */
.re-site-footer { background: var(--bg-darker); padding: 80px 64px 30px; }
.re-site-footer .container {
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}
.re-footer-grid {
    display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr;
    gap: 60px; padding-bottom: 50px;
    width: 100%;
}
.re-footer-grid h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 24px; padding: 10px 18px;
    border: 1px solid var(--border-soft); display: inline-block;
    color: #fff;
}
.re-footer-grid p,
.re-footer-grid a,
.re-footer-grid li {
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px; line-height: 1.9;
    text-decoration: none;
}
.re-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.re-footer-grid ul a { display: block; padding: 4px 0; transition: color .2s; }
.re-footer-grid ul a:hover { color: var(--accent); }
.re-socials { display: flex; gap: 12px; }
.re-socials a {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border-soft);
    display: grid; place-items: center;
    transition: all .25s; color: #fff;
}
.re-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.re-footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px; text-align: center;
    color: var(--text-muted); font-size: 13px; letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}
.re-footer-bottom a { color: var(--accent); }
.re-footer-brand .custom-logo { max-height: 56px; }

/* Contact strip above footer — full-width */
.re-contact-strip { background: var(--bg-light); color: #111; padding: 80px 64px; }
.re-contact-strip-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px;
    width: 100%;
}
.re-contact-block h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
    color: #111; border: 1px solid #ddd;
    padding: 10px 18px; display: inline-block;
    margin-bottom: 20px; position: relative;
}
.re-contact-block h4::after {
    content: ''; position: absolute;
    left: 100%; top: 50%; width: 60px; height: 1px; background: #ddd;
}
.re-contact-block p,
.re-contact-block a { color: #444; font-size: 15px; line-height: 1.9; }
.re-contact-block .phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--accent); font-weight: 600; text-decoration: none;
}

/* Floating CTA */
.re-floating-cta {
    position: fixed; right: 24px; bottom: 24px;
    display: flex; flex-direction: column; gap: 12px; z-index: 500;
}
.re-floating-cta a {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
    transition: transform .2s;
    text-decoration: none;
}
.re-floating-cta a:hover { transform: scale(1.08); color: #fff; }
.re-fab-call { background: var(--accent); }
.re-fab-wa { background: #25d366; }

/* Section atoms reused by custom pages */
.re-section { padding: 120px 0; }
.re-eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
}
.re-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.re-eyebrow .red { color: var(--accent); }
.re-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -1px;
}
.re-section-title .accent { color: var(--accent); }

/* Light / dark block helpers */
.re-block-light { background: var(--bg-light); color: #111; }
.re-block-light .re-eyebrow { color: #666; }
.re-block-light .re-section-title { color: #111; }
.re-block-dark { background: var(--bg-darker); }

/* Admin bar offset — when logged in, WP pushes html down 32px and header needs to follow */
html.admin-bar-active .re-site-header { top: 32px; }
@media (max-width: 782px) {
    html.admin-bar-active .re-site-header { top: 46px; }
}

/* Mobile */
@media (max-width: 900px) {
    .re-nav-menu { display: none; }
    .re-nav-menu.open {
        display: flex;
        position: fixed;
        top: 70px; left: 0; right: 0;
        flex-direction: column;
        background: #000;
        padding: 24px;
        gap: 14px;
        border-top: 1px solid var(--border-soft);
    }
    .re-nav-toggle { display: block; }
    .re-site-header { padding: 20px 24px; }
    .re-site-header.scrolled { padding: 14px 24px; }
    .re-page-banner { padding: 140px 24px 80px; }
    .re-site-footer { padding: 60px 24px 24px; }
    .re-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .re-contact-strip { padding: 60px 24px; }
    .re-contact-strip-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .re-contact-block h4::after { display: none; }
    .re-section { padding: 80px 0; }
}
