/* ============================================================
   FUTURE-SUCCESS.ORG - COMPLETE STANDALONE STYLESHEET
   ============================================================ */

/* --- 1. Reset & Base Settings --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.3rem; 
    line-height: 1.6;
    color: #414a55;
    background-color: #f2f5f9;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Custom Utility Classes (Replaces Bootstrap) --- */
.fw-semibold {
    font-weight: 600 !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    color: #111184 !important;
}

.h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    color: #111184 !important;
}

.h3 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    color: #111184 !important;
}

/* --- 3. Base Typography & Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h2 {
    color: #d9822b; /* Golden Orange */
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 25px;
}

h3 {
    color: #1b2a47; /* Dark Navy */
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    color: #3366cc;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
}

/* --- 4. Site Header (Dark Navy & Sticky) --- */
.site-header {
    background-color: #1b2a47;
    color: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows the menu to shift and wrap as items are added */
    
    position: sticky; 
    top: 0;
    z-index: 1000; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 

    --stripe-height: 25px; 
    margin-bottom: var(--stripe-height); 
}

/* --- Standalone Orange Accent Stripe --- */
.site-header::after {
    content: "";
    display: block;
    width: 100%;
    height: var(--stripe-height); 
    background-color: #d9822b; 
    position: absolute;
    top: 100%; 
    left: 0;
    z-index: 1;
}

.header-logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.header-logo p {
    font-size: 0.9rem;
    color: #b6c2d3;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Prevents items from sliding off the right edge */
    justify-content: flex-end; /* Keeps items aligned to the right, shifting left as they grow */
}

.nav-menu a {
    color: #e0e4ed;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-menu a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- 5. White Main Container (1200px Max, responsive) --- */
.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 50px 60px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* --- 6. Homepage Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 0;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: #1b2a47;
    margin-top: 0;
    font-size: 1.3rem;
}

.card p {
    color: #414a55;
    font-size: 1rem;
    flex-grow: 1;
}

.card .card-link {
    color: #1b2a47;
    font-weight: 600;
    margin-top: 15px;
    align-self: flex-start;
}
.card .card-link:hover {
    text-decoration: underline;
}

/* --- 7. Share Section --- */
.share-section {
    text-align: center;
    padding: 50px 20px 40px 20px;
    background-color: #ffffff;
}

.share-section p {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #414a55;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}
.social-icon:hover {
    transform: scale(1.1);
    color: #ffffff;
    text-decoration: none;
}

.social-icon.fb  { background-color: #1877f2; }
.social-icon.tw  { background-color: #000000; }
.social-icon.in  { background-color: #0077b5; }
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.reddit { background-color: #ff4500; }
.social-icon.email { background-color: #6c757d; }
.social-icon.copy { background-color: #17a2b8; }

/* --- 8. Site Footer (Dark Navy) --- */
.site-footer {
    background-color: #1b2a47;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    position: relative;
}

.footer-content p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #e0e4ed;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
}

.footer-links a {
    color: #a6b8d4;
}
.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-links a:not(:last-child)::after {
    content: "|";
    color: #5c6e8a;
    margin-left: 15px;
}

/* --- 9. Policy Footer (Orange background, white text) --- */
.policy-footer {
    background-color: #d9822b; 
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
    color: #ffffff; 
}

.footer-tagline {
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ffffff; 
}

.policy-footer + .site-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

/* --- 10. Scroll to Top Button (Orange) --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #d9822b;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}
.scroll-top-btn:hover {
    background-color: #c06d1e;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* --- 11. Fully Responsive Mobile Adjustments --- */
@media (max-width: 992px) {
    .main-container {
        padding: 40px 30px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        --stripe-height: 10px; 
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }
    .main-container {
        margin: 20px 15px;
        padding: 30px 25px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        --stripe-height: 8px; 
    }
    .main-container {
        margin: 10px 10px;
        padding: 25px 15px;
        border-radius: 4px;
    }
}

/* --- 12. DROPDOWN MENU (UPDATED TO DARK NAVY BLUE) --- */
.nav-menu .dropdown {
    position: relative !important;
    display: inline-block !important;
}

.nav-menu .dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background-color: #1b2a47 !important; /* UPDATED: Dark Navy to match header */
    box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
    z-index: 9999 !important;
    border-radius: 0 0 4px 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column !important; /* Forces the vertical stack */
}

.nav-menu .dropdown:hover .dropdown-content {
    display: flex !important; /* Switches to flex display on hover */
}

.nav-menu .dropdown-content a {
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    text-align: left !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    width: 100% !important; /* Ensures they fill the box horizontally */
    box-sizing: border-box !important;
    transition: background-color 0.2s !important;
}

.nav-menu .dropdown-content a:last-child {
    border-bottom: none !important;
}

.nav-menu .dropdown-content a:hover {
    background-color: #111c30 !important; /* UPDATED: Slightly darker navy for hover state */
}

.nav-menu .dropdown:hover .dropbtn {
    color: #ffffff !important;
}

/* Hides TOP NAV until we are ready. Delete THIS TO SHOW TOP NAV BAR*/
a[href="/resources"] { display: none !important; }
a[href="/products"] { display: none !important; }
/* Hides TOP NAV until we are ready. Delete THIS TO SHOW TOP NAV BAR*/


/* --- UPDATED NAV MENU (Prevents dropping off screen) --- */
.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important; /* Pushes it to the right, but shifts left if it runs out of space */
    flex-wrap: wrap !important;    /* Wraps to a second line if it gets too wide */
}

.nav-menu a {
    color: #e0e4ed !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.nav-menu a:hover {
    color: #ffffff !important;
}

/* FORCE THE DROPDOWN TO ANCHOR TO THE RIGHT EDGE OF THE SCREEN */
.nav-menu li:last-child .dropdown-content {
    left: auto !important;
    right: 0 !important;
    min-width: 250px !important; /* Make it slightly wider */
}


/* ULTIMATE OVERRIDE - Forces Products dropdown to appear instantly */
.nav-menu > li:last-child:hover > .dropdown-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  
}

/* --- NUCLEAR FIX: LOGO LINK (Removes underline permanently) --- */
.logo-link {
    text-decoration: none !important;
    display: inline-block !important;
    border-bottom: none !important;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* TARGET THE INNER TEXT DIRECTLY TO KILL THE UNDERLINE */
.logo-link h1,
.logo-link h1:hover,
.logo-link p,
.logo-link p:hover {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    border-bottom: none !important;
}

/* Preserve the exact text colors */
.logo-link h1 {
    color: #ffffff !important;
}
.logo-link p {
    color: #b6c2d3 !important;
}
