/* ==========================================================================
   SYE BOOKS OFFICIAL STYLESHEET
   Aesthetic: Cozy Shabby Chic / Vintage Artisan Bookstore
   ========================================================================== */

:root {
    /* Color Palette Design Tokens */
    --color-base-bg: #67804f;       /* Rich Leaf Sage Green Background */
    --color-canvas: #ffffff;        /* Pure White Reading Canvas */
    --color-text-dark: #000000;     /* Deep Black High-Contrast Typography */
    --color-text-light: #ffffff;    /* High-Contrast Light Typography */
    --color-text-muted: #d5e4db;    /* Soft Muted Text for Darker Elements */
    --color-footer-bg: #35472e;     /* Dark Moss Sage Footer */
    --color-footer-border: #a3b899; /* Light Moss Sage Accents */
    
    /* Navigation Gradient (Satin Rose Gold / Brushed Copper Pink) */
    --grad-nav: linear-gradient(180deg, #E5C2C4 0%, #D1A1A5 40%, #B58A8E 85%, #8C5E62 100%);
    --nav-border-dark: #3A1215;
    --nav-hover-overlay: rgba(80, 26, 29, 0.18);
    
    /* Button Gradients */
    --grad-btn-default: linear-gradient(180deg, #7A6F82 0%, #5E5366 100%);
    --grad-btn-hover: linear-gradient(180deg, #501A1D 0%, #3A1215 100%);
    
    /* Typography */
    --font-primary: 'Verdana', sans-serif;
}

/* Master Reset & Typography Foundations */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-base-bg);
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* Master Centered Page Framework */
.page-wrapper {
    max-width: 1350px; /* Targets 1920x1080 graphic scaling limits */
    margin: 0 auto;    /* Centers the website wrapper globally */
    padding: 0 30px;
}

/* 100% Proportional Un-cropped Header Banner with Thin Border */
.header-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1080; /* Preserves native banner proportions */
    border-left: 1px solid var(--color-text-dark);  
    border-right: 1px solid var(--color-text-dark); 
}

/* Premium Framed Navigation Bar Strip */
.main-nav {
    background: var(--grad-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-left: 1px solid var(--color-text-dark);  
    border-right: 1px solid var(--color-text-dark); 
    border-bottom: 2px solid var(--nav-border-dark); /* Contrast metallic edge shadow */
    border-top: 1px solid rgba(255, 255, 255, 0.5);  /* Inner bevel reflection */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Main Horizontal Menu Array */
.menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

/* Individual Menu Nodes */
.menu-item {
    position: relative; /* Anchor drop-down menus precisely */
}

.menu-item > a {
    display: block;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 16px 25px;
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
}

/* Interactive Hover States & Micro-Movements */
.menu-item > a:hover,
.menu-item.active > a {
    color: var(--color-text-light);
    background: var(--nav-hover-overlay);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px); /* Subtle mechanical lift movement */
}

/* --- DYNAMIC DROP-DOWN MENU TREES --- */
.dropdown-tree {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Offset starting entry point */
    background-color: var(--color-canvas);
    min-width: 280px;
    list-style: none;
    border: 1px solid var(--color-text-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
}

/* Show the tree on menu item hover */
.menu-item:hover .dropdown-tree {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-tree li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px dashed #EAE5DF;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-tree li:last-child a {
    border-bottom: none;
}

.dropdown-tree li a:hover {
    background-color: var(--color-base-bg);
    color: var(--color-text-light);
}

/* Premium Framed Content Canvas */
.welcome-box {
    background-color: var(--color-canvas);
    padding: 60px 40px;
    text-align: center;
    border-left: 1px solid var(--color-text-dark);   
    border-right: 1px solid var(--color-text-dark);  
    border-bottom: 1px solid var(--color-text-dark); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
}

.welcome-box h1 {
    color: var(--color-text-dark); 
    font-size: 2.6rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.divider {
    width: 160px;
    height: 4px;
    border-top: 4px double var(--color-text-dark); /* Classic Double Divider */
    margin: 15px auto;
}

.tagline {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-text-dark); 
    margin-bottom: 25px;
}

.body-text {
    font-size: 1.1rem; /* Premium scale reading size */
    color: var(--color-text-dark); 
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- CONTACT FORM FIELD ARCHITECTURE --- */
.form-container {
    max-width: 600px;
    margin: 40px auto 10px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: #FDFBF7; 
    border: 1px solid var(--color-text-dark);
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--color-canvas);
    border: 1px solid var(--color-accent-burgundy); 
    box-shadow: 0 0 8px rgba(80, 26, 29, 0.15);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-text-light);
    background: var(--grad-btn-default); 
    border: 1px solid var(--color-text-dark);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--grad-btn-hover); 
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* Technical SEO Footer Framework (Dark Moss Sage) */
.main-footer {
    background-color: var(--color-footer-bg); 
    color: var(--color-text-light);
    padding: 50px 40px 30px 40px;
    border-left: 1px solid var(--color-text-dark);
    border-right: 1px solid var(--color-text-dark);
    border-bottom: 1px solid var(--color-text-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.footer-col h3 {
    color: #E5C2C4; 
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(229, 194, 196, 0.3);
    padding-bottom: 8px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted); 
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #E5C2C4; 
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--color-footer-border);
}

/* Responsive Sizing Adaptations for Mobile Displays */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 15px;
    }
    .menu-list {
        flex-direction: column;
    }
    .menu-item > a {
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    .dropdown-tree {
        position: static;
        transform: none;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: #F4F0EA;
    }
    .menu-item:hover .dropdown-tree {
        display: block;
    }
    .welcome-box {
        padding: 40px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}