/* Font declarations for EB Garamond */

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Regular.woff2') format('woff2'), url('/fonts/EBGaramond-Regular.woff') format('woff'), url('/fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Italic.woff2') format('woff2'), url('/fonts/EBGaramond-Italic.woff') format('woff'), url('/fonts/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Medium.woff2') format('woff2'), url('/fonts/EBGaramond-Medium.woff') format('woff'), url('/fonts/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-MediumItalic.woff2') format('woff2'), url('/fonts/EBGaramond-MediumItalic.woff') format('woff'), url('/fonts/EBGaramond-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-SemiBold.woff2') format('woff2'), url('/fonts/EBGaramond-SemiBold.woff') format('woff'), url('/fonts/EBGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-SemiBoldItalic.woff2') format('woff2'), url('/fonts/EBGaramond-SemiBoldItalic.woff') format('woff'), url('/fonts/EBGaramond-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-Bold.woff2') format('woff2'), url('/fonts/EBGaramond-Bold.woff') format('woff'), url('/fonts/EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-BoldItalic.woff2') format('woff2'), url('/fonts/EBGaramond-BoldItalic.woff') format('woff'), url('/fonts/EBGaramond-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-ExtraBold.woff2') format('woff2'), url('/fonts/EBGaramond-ExtraBold.woff') format('woff'), url('/fonts/EBGaramond-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('/fonts/EBGaramond-ExtraBoldItalic.woff2') format('woff2'), url('/fonts/EBGaramond-ExtraBoldItalic.woff') format('woff'), url('/fonts/EBGaramond-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Hide scrollbar for entire page */
html {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.45;
    color: #231f1a; /* china ink */
    background-color: #f4f1ec; /* avorio */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "onum" 1, "kern" 1;
    /* Hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

.logo-text {
    font-family: "EB Garamond", serif;
    font-weight: 600; /* SemiBold */
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #231f1a; /* china ink */
}

.logo-text-menu {
    font-family: "EB Garamond", serif;
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
}

.logo-text-menu-red {
    font-family: "EB Garamond", serif;
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #8B1E1E;
}

.paragraph-title {
    font-family: "EB Garamond", serif;
    font-weight: normal; /* SemiBold */
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #231f1a; /* china ink */
}

.one-rule-title {
    font-family: "EB Garamond", serif;
    font-weight: 600; /* SemiBold */
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #231f1a; /* china ink */
    margin-bottom: 100px;
    margin-top: 100px;
}

.italic-custom {
    font-style: italic;
}

.bold-custom {
    font-weight: bold;
}

.wesntowers-text {
    font-variant: small-caps;
}

.intro-title {
    font-family: "EB Garamond", serif;
    font-weight: 400; /* SemiBold */
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #231f1a; /* china ink */
}

.rule-title {
    font-family: "EB Garamond", serif;
    font-weight: 600; /* SemiBold */
    font-variant-caps: small-caps;
    letter-spacing: 0.08em;
    font-feature-settings: "smcp" 1, "kern" 1;
    color: #231f1a; /* china ink */
    margin-bottom: 100px;
    margin-top: 100px;
}

.action-reaction {
    font-family: "EB Garamond", serif;
    font-weight: normal; /* SemiBold */
    letter-spacing: 0.08em;
    color: #231f1a; /* china ink */
    margin-bottom: 100px;
    margin-top: 100px;
}

.main-paragraph {
    font-family: "EB Garamond", serif;
    font-weight: normal; 
    font-size: x-large;
    color: #231f1a; 
}

/* Get WESNTowers link styling */
.get-wesntowers-link {
    color: #231F1A; /* china ink as default */
    text-decoration: none;
}

.get-wesntowers-link:hover {
    color: #8B1E1E; /* red on hover */
    text-decoration: none;
}

h1, h2, h3 {
    font-family: "EB Garamond", serif;
    font-weight: 500; /* Medium */
    letter-spacing: 0.04em;
    margin: 0 0 0.6em 0;
}

.title-strong {
    font-weight: 600; /* SemiBold */
    font-variant-caps: small-caps;
}

em, i {
    font-style: italic;
}

.greek {
    font-family: "EB Garamond", serif;
    font-weight: 400;
    font-style: normal;
}

/* Navigation / navbar styles moved from Navigation.cshtml */
html, body {
    overflow-x: hidden;
}

.site-navbar {
    background-color: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    z-index: 1030; /* ensure above content */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 64px; /* ensure consistent vertical space */
}

.nav-spacer {
    /* match the runtime navbar height so spacing is consistent across devices */
    height: var(--wesnt-nav-height, 64px);
}

@media (max-width: 991.98px) {
    .nav-spacer {
        height: var(--wesnt-nav-height, 88px);
    }

    .site-navbar {
        min-height: 88px;
    }
    /* Keep the brand (logo + app name) fixed and let the menu overlay below it */
    .site-navbar {
        /* fixed-top already sets position: fixed; keep here to be explicit */
        position: fixed;
        top: 0;
    }

        .site-navbar .navbar-collapse {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: rgba(255,255,255,0.98);
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            max-height: calc(100vh - 88px);
            overflow-y: auto;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            padding-left: 1rem; /* provide breathing room from left edge */
            padding-right: 1rem; /* provide breathing room from right edge */
            z-index: 1040; /* above navbar content */
        }

        .site-navbar .navbar-nav {
            flex-direction: column;
        }

        .site-navbar .nav-link {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            padding-left: 0.5rem; /* extra internal spacing for items */
            padding-right: 0.5rem;
        }
}

/* Ensure the brand text and image align vertically */
.logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    height: 2.0em; /* match adjacent text height */
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 2.0em;
    }
}

/* Make sure brand and nav links are vertically centered and use the same space */
.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
}

.site-navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0.5rem; /* keep comfortable tap area */
    padding-bottom: 0.5rem;
}

.site-navbar .navbar-nav .nav-link:hover {
    color: #231F1A;
}

.site-navbar .navbar-nav .nav-link .logo-text-menu-red:hover,
.site-navbar .navbar-nav .nav-link:hover .logo-text-menu-red {
    color: #231F1A;
}

@media (min-width: 992px) {
    .hero {
        padding: 6rem 0;
    }

        .hero .logo-text {
            font-size: clamp(2.5rem, 5.5vw, 5rem);
        }
}

.content-block {
    max-width: 900px;
    text-align: justify;
}

    .content-block .text-center {
        text-align: center;
    }

.wesnt-sc {
    font-variant-caps: all-small-caps;
    font-feature-settings: "smcp" 1, "c2sc" 1;
    letter-spacing: 0.02em;
}

.wesnt-container {
    width: min(var(--wesnt-max), calc(100% - (var(--wesnt-pad) * 2)));
    margin-inline: auto;
}

/* Footer full width like navbar */
.site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Hero section - full screen with logo and title */
#hero.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f1ec; /* avorio */
    padding: 0;
    margin: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    margin-top: -64px; /* Offset navbar height on desktop */
}

.hero-logo {
    max-width: 350px;
    width: 80%;
    height: auto;
    object-fit: contain;
}

.hero-title {
    font-family: "EB Garamond", serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: #231f1a; /* china ink */
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
    .hero-content {
        margin-top: -88px; /* Offset navbar height on mobile */
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 220px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .intro-title {
        text-align: center;
    }
}

/* ===== SCROLL-DRIVEN ANIMATIONS START ===== */

/* Section logo styling */
.section-logo {
    max-width: 200px;
    width: 60%;
    height: auto;
    margin-bottom: 3rem; /* Increased spacing for #one */
    object-fit: contain;
}

/* Scroll-driven animation for section one */
.scroll-animated-section {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.scroll-animated-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .section-logo {
        max-width: 120px;
        margin-bottom: 1.5rem;
    }
}

/* ===== SCROLL-DRIVEN ANIMATIONS END ===== */

/* ===== EDITORIAL SPACING START ===== */

/* Editorial spacing for content sections */
.home-main > div[id] {
    margin-bottom: 2.4rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* First section after hero - more space */
#one {
    margin-top: 1.6rem;
}

/* Section with titles - extra spacing */
#one {
    margin-bottom: 3.2rem;
}

#nine {
    margin-bottom: 0.96rem; /* Reduced by 70% from 3.2rem */
}

/* Tighter spacing for related content */
#ten {
    margin-bottom: 0.48rem; /* Reduced by 70% from 1.6rem */
}

#eleven {
    margin-bottom: 1.6rem;
}

/* Last section - less bottom margin */
#eleven {
    margin-bottom: 1.6rem;
}

/* Hero section - no extra spacing */
#hero {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .home-main > div[id] {
        margin-bottom: 1.6rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    
    #one {
        margin-top: 1.2rem;
    }
    
    #one {
        margin-bottom: 2.4rem;
    }
    
    #nine {
        margin-bottom: 0.72rem; /* Reduced by 70% from 2.4rem */
    }
    
    #ten {
        margin-bottom: 0.36rem; /* Reduced by 70% from 1.2rem */
    }
    
    #eleven {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .home-main > div[id] {
        margin-bottom: 1.2rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    
    #one {
        margin-top: 0.8rem;
    }
    
    #one {
        margin-bottom: 1.6rem;
    }
    
    #nine {
        margin-bottom: 0.48rem; /* Reduced by 70% from 1.6rem */
    }
    
    #ten {
        margin-bottom: 0.24rem; /* Reduced by 70% from 0.8rem */
    }
    
    #eleven {
        margin-bottom: 0.8rem;
    }
}

/* ===== EDITORIAL SPACING END ===== */

/* ===== SPECIFIC TITLE SPACING OVERRIDES START ===== */

/* Override excessive margins for titles in nine, ten, eleven sections */
#nine .one-rule-title {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

#ten .action-reaction {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

#eleven .rule-title {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* More space before twelve and tighter logo spacing */
#eleven {
    margin-bottom: 4rem;
}

#twelve .section-logo {
    margin-bottom: 1.5rem; /* Increased from 0.5rem */
}

#twelve .one-rule-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500; /* Medium instead of SemiBold (600) */
}

/* Same spacing for thirteen as twelve */
#thirteen .section-logo {
    margin-bottom: 1.5rem;
    max-width: 120px; /* Smaller and more elegant */
}

#thirteen .one-rule-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 400; /* Regular weight for elegance */
    font-size: 1.75rem; /* Smaller size */
}

/* RouninSeven text in red like Get WESNTowers link */
#thirteen .wesntowers-text {
    color: #8B1E1E;
}

@media (max-width: 768px) {
    #thirteen .section-logo {
        max-width: 90px;
    }
    
    #thirteen .one-rule-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #thirteen .section-logo {
        max-width: 70px;
    }
    
    #thirteen .one-rule-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    #nine .one-rule-title {
        margin-bottom: 0.75rem;
        margin-top: 0.5rem;
    }
    
    #ten .action-reaction {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }
    
    #eleven .rule-title {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }
    
    #eleven {
        margin-bottom: 3rem;
    }
    
    #twelve .section-logo {
        margin-bottom: 1.25rem; /* Increased from 0.5rem */
    }
    
    #twelve .one-rule-title {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-weight: 500; /* Medium instead of SemiBold (600) */
    }
}

@media (max-width: 480px) {
    #nine .one-rule-title {
        margin-bottom: 0.5rem;
        margin-top: 0.25rem;
    }
    
    #ten .action-reaction {
        margin-bottom: 0.25rem;
        margin-top: 0.25rem;
    }
    
    #eleven .rule-title {
        margin-bottom: 0.25rem;
        margin-top: 0.25rem;
    }
    
    #eleven {
        margin-bottom: 2rem;
    }
    
    #twelve .section-logo {
        margin-bottom: 1rem; /* Increased from 0.5rem */
    }
    
    #twelve .one-rule-title {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-weight: 500; /* Medium instead of SemiBold (600) */
    }
}

/* ===== SPECIFIC TITLE SPACING OVERRIDES END ===== */

#get-one .hero-title {
    margin-top: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    
}
