/* Font declarations */
@font-face {
    font-family: 'ClarityCity';
    src: url('../fonts/WOFF2/ClarityCity-Regular.woff2') format('woff2'),
         url('../fonts/WOFF/ClarityCity-Regular.woff') format('woff'),
         url('../fonts/EOT/ClarityCity-Regular.eot') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClarityCity';
    src: url('../fonts/WOFF2/ClarityCity-Bold.woff2') format('woff2'),
         url('../fonts/WOFF/ClarityCity-Bold.woff') format('woff'),
         url('../fonts/EOT/ClarityCity-Bold.eot') format('embedded-opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClarityCity';
    src: url('../fonts/WOFF2/ClarityCity-Black.woff2') format('woff2'),
         url('../fonts/WOFF/ClarityCity-Black.woff') format('woff'),
         url('../fonts/EOT/ClarityCity-Black.eot') format('embedded-opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Global styles */
:root {
    --font-primary: 'ClarityCity', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: bold;
}

p {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

/* Helper classes */
.font-bold {
    font-weight: 900;
    font-family: 'ClarityCity';
    font-size: 4rem;
}

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

/* Layout Styles */
main {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    left: 0;
    background-color: rgb(247, 247, 247);
}

/* Top Quote Row */
.quote-row {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 2rem;
    background-color: rgb(247, 247, 247);
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.quote-row .quote-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-weight: bold;
    font-family: 'ClarityCity';
}

.quote-row .quote-text {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: 'ClarityCity';
    font-weight: bold;
    font-size: 1.4rem;
    font-family: 'ClarityCity';
}

.quote-row .quote-reference {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-family: 'ClarityCity';
    font-size: 1rem;
    
}

/* Grid Layout */
.grid-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    max-width: 100vw;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    position: relative;
    left: 0;
    overflow-x: hidden;
}

.grid-1x2 {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    align-items: start;
    align-self: flex-start;
    position: relative;
    left: 0;
    background-color: rgb(247, 247, 247);
    margin: 0;
    padding: 0;
}

/* First Grid Image Styles */
.grid-1x2:first-child .right-cell img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Second Grid Image Styles */
.grid-1x2:nth-child(2) .right-cell:first-of-type img {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Left Cell Styles */
.left-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 2rem;
    width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
    left: 0px;
    
    
}

.left-cell .btn-primary {
    align-self: flex-start;
    margin-right: auto;
}

.left-cell-header {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
    font-family: 'ClarityCity';
}

.left-cell p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'ClarityCity';
    font-weight: normal;
}

.grid-1x2:first-child .left-cell {
    align-items: flex-start;
    text-align: left;
    padding-left: 15vw;
}

.grid-1x2:nth-child(2) .left-cell {
    align-items: flex-start;
    text-align: left;
    padding-right: 15vw;
}


/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: #fdb52a;
    color: rgb(0, 0, 0);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'ClarityCity';
    font-weight: bold;

}

.btn-primary:hover {
    background-color: #000000;
    color: white;
}

.btn-free-ebook {
    display: inline-block;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
    margin-left: 15vw;
}

.btn-free-ebook:hover {
    transform: scale(1.05);
}

.btn-free-ebook img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Right Cell Styles */
.right-cell {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    width: 100%;
    height: auto;
    min-height: 300px;
    position: relative;
    left: 0;
}

.right-cell img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin: 0;
    align-self: flex-start;
} 

.after-grids {
    background-color: rgb(247, 247, 247);
    width: 100vw;
    height: 20px;
    position: relative;
    left: 0;
}

/* Footer Styles */
.site-footer {
    background-color: #000000;
    padding: 3rem 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    font-family: 'ClarityCity';
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section h4 {
    font-family: 'ClarityCity';
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'ClarityCity';
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fdb52a;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #ffffff;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    padding: 0 !important;
    margin: 0 !important;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fdb52a;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .grid-1x2 {
        grid-template-columns: 100%;
    }

    .grid-1x2 .right-cell {
        order: 2;
    }

    .grid-1x2 .left-cell {
        order: 1;
        margin-left: 0px;
    }

    .right-cell img {
        height: 300px;
        object-fit: cover;
    }

    .left-cell .btn-primary {
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0;
    }

    .grid-1x2:first-child .left-cell {
        padding: 2rem;
    }
    
    .grid-1x2:first-child .right-cell {
        padding-left: 2rem;
    }

    .grid-1x2:nth-child(2) .left-cell {
        padding: 2rem;
    }

    .grid-1x2:nth-child(2) .right-cell {
        padding-right: 2rem;
    }

    .footer-content {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-section ul {
        width: 100%;
    }
    
    .footer-section ul li {
        width: 100%;
    }

    .quote-row {
        flex-direction: column;
        padding: 0rem 1rem;
    }

    .btn-free-ebook {
        margin-left: 0;
        margin-top: 0rem;
        order: 2;
    }

    .quote-row p {
        order: 1;
    }

    .quote-container {
        padding-top: 1rem;
    }
}

/* Override Bootstrap container padding */
.base-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ebook Popup Styles */
.ebook-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.ebook-popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ebook-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ebook-popup-left img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ebook-popup-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ebook-popup-right h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.ebook-popup-right p {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

.ebook-popup-right ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ebook-popup-right li {
    margin-bottom: 0.5rem;
    color: #666;
}

.btn-close-popup {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #fdb52a;
    color: black;
    border: none;
    border-radius: 0.5rem;
    font-family: 'ClarityCity';
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-close-popup:hover {
    background-color: #000000;
    color: white;
}

@media (max-width: 768px) {
    .ebook-popup-grid {
        grid-template-columns: 1fr;
    }
    
    .ebook-popup-content {
        padding: 1rem;
    }
}

.ebook-link {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: none;
}

.ebook-link:hover {
    color: #000000;
    border-bottom: 2px solid #000000;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.confession-wall-link {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: none;
}

.confession-wall-link:hover {
    color: #000000;
    border-bottom: 2px solid #000000;
}