/* Beyond Motherhood Project - Common Styles */
/* Shared across all project pages */

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: #34495e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: -40px -20px 40px -20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand img {
    height: 38px;
    width: auto;
    display: block;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.nav-brand a:hover {
    opacity: 0.85;
}

/* Hamburger menu button */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    gap: 5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a,
.nav-dropdown-toggle {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 18px;
    font-size: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.nav-menu a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    background-color: rgba(255,255,255,0.1);
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown styles */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c3e50;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

/* Desktop: hover to open */
@media (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

/* Mobile/Touch: click to open */
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    padding: 12px 20px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: #34495e;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-nav {
        margin: -40px -20px 20px -20px;
    }
    
    .nav-toggle {
        display: flex !important;
        order: 2;
        align-self: center;
    }
    
    .nav-container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .nav-brand {
        flex: 0 0 auto;
        order: 1;
    }
    
    .nav-brand a {
        padding: 10px 0;
    }
    
    .nav-menu {
        order: 3;
    }
    
    .nav-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu a,
    .nav-dropdown-toggle {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
    }
    
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: #2c3e50;
        display: none;
        width: 100%;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu a {
        padding: 10px 20px 10px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: #ecf0f1;
    margin: -40px -20px 40px -20px;
    padding: 8px 0;
    font-size: 13px;
}

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

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    margin-bottom: 0;
    line-height: 1.4;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: #95a5a6;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .breadcrumb {
        margin: -20px -20px 20px -20px;
        padding: 6px 0;
        font-size: 12px;
    }

    .breadcrumb-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        margin: -15px -8px 15px -8px;
    }

    .breadcrumb-container {
        padding: 0 18px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body { 
        margin: 0; 
        background: white; 
    }
    .container { 
        box-shadow: none; 
        margin: 0; 
        padding: 40px; 
    }
    .no-print,
    .main-nav,
    .breadcrumb {
        display: none;
    }
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #f8f9fa;
    padding: 40px 20px;
    line-height: 1.8;
    color: #2c3e50;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* ============================================
   HEADER COMPONENTS
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #34495e;
}

.brand {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 15px;
}

h1 {
    font-size: 32px;
    color: #34495e;
    margin: 15px 0 20px;
    font-weight: normal;
    line-height: 1.3;
}

h2 {
    font-size: 22px;
    color: #34495e;
    margin: 35px 0 15px 0;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    color: #34495e;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.subtitle,
.tagline,
.byline {
    font-style: italic;
    color: #7f8c8d;
    font-size: 16px;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
p {
    margin-bottom: 20px;
}

em {
    font-style: italic;
}

strong {
    font-weight: 600;
    color: #34495e;
}

ul {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ============================================
   COMMON CONTENT BLOCKS
   ============================================ */
.intro {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

.section {
    margin-bottom: 50px;
}

.emphasis,
.intro-emphasis {
    background: #ecf0f1;
    padding: 25px;
    border-left: 4px solid #34495e;
    margin: 30px 0;
    font-style: italic;
}

.important-box {
    background: #fff9e6;
    border: 2px solid #f39c12;
    padding: 25px;
    margin: 30px 0;
    border-radius: 6px;
}

.important-box h3 {
    color: #e67e22;
    margin-top: 0;
    font-size: 18px;
}

/* ============================================
   CATEGORY ACCENT COLORS
   ============================================ */
.category.embodied,
.nav-card.embodied { 
    --accent-color: #e74c3c; 
}

.category.powerful,
.nav-card.powerful { 
    --accent-color: #8e44ad; 
}

.category.soft,
.nav-card.soft { 
    --accent-color: #f39c12; 
}

.category.free,
.nav-card.free { 
    --accent-color: #3498db; 
}

.category.playful,
.nav-card.playful { 
    --accent-color: #2ecc71; 
}

.category.contemplative,
.nav-card.contemplative { 
    --accent-color: #34495e; 
}

.category.complex,
.nav-card.complex { 
    --accent-color: #95a5a6; 
}

.nav-card.project,
.nav-card.nudity,
.nav-card.adjectives {
    --accent-color: #34495e;
}

.nav-card.nudity {
    --accent-color: #e74c3c;
}

.nav-card.adjectives {
    --accent-color: #3498db;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-button,
.submit-button {
    display: inline-block;
    padding: 15px 35px;
    background: #34495e;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-button:hover,
.submit-button:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: #34495e;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Georgia', serif;
    font-size: 15px;
    color: #2c3e50;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #34495e;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-note {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and medium phones (481px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .container {
        padding: 40px 25px;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2 {
        font-size: 20px;
    }

    .intro {
        font-size: 15px;
    }

    .print-button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: 15px 8px;
        line-height: 1.7;
    }

    .container {
        padding: 30px 18px;
        border-radius: 4px;
    }

    h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    h2 {
        font-size: 19px;
        margin: 28px 0 12px 0;
    }

    h3 {
        font-size: 17px;
    }

    p {
        margin-bottom: 16px;
        text-align: left !important; /* Override justify on small screens */
    }

    .intro {
        font-size: 15px;
        text-align: left;
    }

    .emphasis,
    .intro-emphasis {
        padding: 18px;
        margin: 20px 0;
        font-size: 15px;
    }

    .important-box {
        padding: 18px;
        margin: 20px 0;
    }

    ul {
        padding-left: 24px;
    }

    li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .cta-button,
    .submit-button {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}
