/* ============================================
   HALIFAX ROUND TABLE - STYLES
   ============================================ */

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

:root {
    --rt-gold: #c5a028;
    --rt-gold-light: #e8c74a;
    --rt-gold-dim: rgba(197, 160, 40, 0.15);
    --rt-blue: #1a2744;
    --rt-blue-deep: #0f1a2e;
    --rt-blue-light: #243553;
    --rt-white: #ffffff;
    --rt-cream: #f5f0e8;
    --rt-text: #2c2c2c;
    --rt-text-light: #6b6b6b;
    --rt-bg: #fafafa;
    --rt-dark: #111111;
    --rt-radius: 12px;
    --rt-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --rt-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--rt-bg);
    color: var(--rt-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rt-gold);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--rt-blue);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--rt-gold);
    color: var(--rt-blue-deep);
    border-color: var(--rt-gold);
}

.btn-primary:hover {
    background: var(--rt-gold-light);
    border-color: var(--rt-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 40, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--rt-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rt-white);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 40, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 26, 46, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 48px;
    width: auto;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rt-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rt-white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: var(--rt-gold);
}

.btn-join {
    background: var(--rt-gold) !important;
    color: var(--rt-blue-deep) !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}

.btn-join:hover {
    background: var(--rt-gold-light) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rt-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rt-blue-deep);
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(197, 160, 40, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(26, 39, 68, 0.6) 0%, transparent 50%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 26, 46, 0.4) 0%,
        rgba(15, 26, 46, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--rt-white);
    margin-bottom: 16px;
}

.hero-sub {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rt-gold);
    margin-bottom: 8px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--rt-gold-light);
    margin-bottom: 16px;
    font-style: italic;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--rt-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--rt-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--rt-text-light);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--rt-blue), var(--rt-blue-light));
    border-radius: var(--rt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--rt-shadow-lg);
}

/* ============================================
   STATS
   ============================================ */
.stats {
    background: var(--rt-blue-deep);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--rt-gold);
}

.stat-stars {
    display: block;
    color: var(--rt-gold);
    font-size: 1.2rem;
    margin-top: 4px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   ROUND TABLE INFO
   ============================================ */
.info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-content .lead {
    font-size: 1.15rem;
    color: var(--rt-text);
    margin-bottom: 16px;
}

.info-content > p {
    color: var(--rt-text-light);
    margin-bottom: 20px;
}

.info-content a {
    color: var(--rt-gold);
    font-weight: 600;
    border-bottom: 1px solid var(--rt-gold-dim);
    transition: var(--transition);
}

.info-content a:hover {
    border-bottom-color: var(--rt-gold);
}

.family-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.family-card {
    background: var(--rt-white);
    padding: 32px 24px;
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rt-shadow-lg);
}

.family-card h3 {
    font-size: 1.2rem;
    color: var(--rt-blue);
    margin-bottom: 8px;
}

.family-card p {
    font-size: 0.9rem;
    color: var(--rt-text-light);
}

/* ============================================
   HISTORY
   ============================================ */
.history {
    background: var(--rt-cream);
}

.history-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-text .section-tag {
    display: block;
    margin-bottom: 12px;
}

.history-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--rt-blue);
    margin-bottom: 24px;
}

.history-text p {
    color: var(--rt-text-light);
    margin-bottom: 16px;
}

.history-text em {
    color: var(--rt-gold);
    font-style: italic;
}

blockquote {
    margin-top: 32px;
    padding: 24px;
    border-left: 3px solid var(--rt-gold);
    background: rgba(197, 160, 40, 0.06);
    border-radius: 0 var(--rt-radius) var(--rt-radius) 0;
}

blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--rt-blue) !important;
    margin-bottom: 8px !important;
}

blockquote cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--rt-text-light);
    font-style: normal;
}

/* ============================================
   CHARITY
   ============================================ */
.charity-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.charity-content .lead {
    font-size: 1.15rem;
    color: var(--rt-text);
    margin-bottom: 16px;
}

.charity-content p {
    color: var(--rt-text-light);
    margin-bottom: 32px;
}

/* ============================================
   JOIN CTA
   ============================================ */
.join {
    background: var(--rt-blue-deep);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.join::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(197, 160, 40, 0.1) 0%, transparent 70%);
}

.join-content {
    position: relative;
    z-index: 1;
}

.join h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--rt-white);
    margin-bottom: 16px;
}

.join p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto 40px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    color: var(--rt-text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--rt-blue);
    color: var(--rt-white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--rt-blue-light);
    transform: translateY(-2px);
}

.social-link svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: var(--rt-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--rt-white);
    transition: var(--transition);
    color: var(--rt-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rt-gold);
    box-shadow: 0 0 0 3px var(--rt-gold-dim);
}

.form-group textarea {
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--rt-dark);
    padding: 60px 0 32px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--rt-gold);
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rt-white);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--rt-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-stars {
    color: var(--rt-gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(15, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 14px 16px;
        width: 100%;
    }

    .about-grid,
    .history-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .family-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
