/* Font styles matching cyberchaperone.com/proj/lucy/v2/ */

/* CSS Custom Properties for consistent styling */
:root {
    --font-inter: 'Inter', sans-serif;
    --font-playfair: 'Playfair Display', serif;
    --font-lora: 'Lora', serif;
    --font-dancing: 'Dancing Script', cursive;
    --font-crimson: 'Crimson Text', serif;
    
    --text-primary: #1e293b;
    --text-secondary: #2c3e50;
    --text-dark: #333;
    --text-black: #000000;
}

/* Base HTML font size - critical for proper rem calculations */
html {
    font-size: 16px !important;
}

/* Base body font styles */
body {
    font-family: var(--font-inter) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
}
a:visited {
    color: black !important;
}
a:focus, a:hover, a:active, a.active {

    text-decoration: none !important;
}
/* Typography matching client website */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-inter);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-black);
}

/* Responsive Typography - Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
}

/* Font family utility classes */
.font-inter {
    font-family: var(--font-inter);
}

.font-playfair {
    font-family: var(--font-playfair);
}

.font-lora {
    font-family: var(--font-lora);
}

.font-dancing {
    font-family: var(--font-dancing);
}

.font-crimson {
    font-family: var(--font-crimson);
}

/* Font weight utilities */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

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

/* Button styles matching client website */
.btn {
    font-family: var(--font-inter);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Quote/blockquote styles with Playfair Display (as used on client site) */
blockquote {
    font-family: var(--font-playfair);
    font-style: italic;
    color: var(--text-secondary);
}

/* Ensure consistent rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Navigation Overrides - Match cyberchaperone.com/proj/lucy/v2/ exactly */

/* Nav menu spacing */
.nav-menu {
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Nav link font size and weight - must match client site */
.nav-link {
    font-size: 1rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Nav container padding */
.nav-container {
    padding: 0.5rem 0.5rem !important;
}

/* Ensure navbar elements inherit correct sizing */
.navbar * {
    box-sizing: border-box !important;
}

/* Footer Styles - Match cyberchaperone.com/proj/lucy/v2/ exactly */
:root {
    --primary-color: #0084A8;
    --secondary-color: #5a6c7d;
    --accent-color: #D4A855;
    --background-light: #f7f9fb;
    --background-white: #ffffff;
    --border-light: #e1e7ee;
    --transition-fast: 0.15s ease-in-out;
}

.footer {
    background: #2C3E50 !important;
    color: var(--text-primary) !important;
    padding: 3rem 0 1rem !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
}

.footer-info {
    text-align: left !important;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

.footer-info p {
    color: white !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.footer-links {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
}

.footer-links a {
    color: white !important;
    text-decoration: none !important;
    transition: color var(--transition-fast) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.footer-bottom {
    text-align: center !important;
    padding-top: 2rem !important;
    border-top: 1px solid var(--border-light) !important;
    background: #2C3E50 !important;
    margin-left: -9999px !important;
    margin-right: -9999px !important;
    padding-left: 9999px !important;
    padding-right: 9999px !important;
    padding-bottom: 1rem !important;
}

.footer-bottom p {
    color: white !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .footer {
        display: none !important;
    }
}

/* Blog Post Content - Constrain media to stay within content area */
/* Ensure content item and wrapper prevent overflow */
.content-item {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.e-content {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Additional safety for any media in the item column */
#item {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Constrain all images and videos to viewport/text column width */
.e-content img,
.e-content video,
.e-content iframe,
.e-content embed,
.e-content object {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Specific handling for inline videos */
.e-content video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

#item img,
#item video,
#item iframe,
#item embed,
#item object {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

/* Ensure figures and picture elements also constrain */
.e-content figure,
.e-content picture {
    max-width: 100% !important;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.e-content figure img,
.e-content figure video,
.e-content picture img,
.e-content picture video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Blog list item images (card images) */
.card-image {
    max-width: 100% !important;
    overflow: hidden !important;
    width: 100%;
}

.card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* Mobile specific constraints - ensure no overflow */
@media (max-width: 768px) {
    #item {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
    
    .e-content {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .e-content img,
    .e-content video,
    .e-content iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}
