/*
 * U2ME™ — global.css
 * Found It Safe LLC — getu2me.com
 *
 * This is the single shared stylesheet for the entire site.
 * It covers: CSS variables, reset, typography, header/nav,
 * mobile menu, footer, and common utility classes.
 *
 * Page-specific styles remain in each page's own <style> block.
 *
 * NOTE ON COLOR VARIABLES:
 * The original site used inverted variable names from a dark-theme
 * migration. Those names are preserved here for compatibility:
 *   --black = #FFFFFF  (the page background — white)
 *   --white = #1a1a1a  (the primary text color — near-black)
 * Do not rename these without a full site-wide find-and-replace.
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
    /* Brand colors */
    --green:        #40b681;
    --dark-green:   #2d8a62;
    --accent-teal:  #00997A;

    /* Background / text (inverted names — see note above) */
    --black:        #FFFFFF;   /* page background */
    --white:        #1a1a1a;   /* primary text */
    --cream:        #f5f5f5;
    --gray:         #6B6B6B;

    /* Typography */
    --font-body:    'Outfit', sans-serif;
    --font-display: 'Bebas Neue', cursive;
    --font-serif:   'Libre Baskerville', serif;

    /* Layout */
    --nav-height:   80px;
    --max-width:    1400px;
    --page-padding: 5%;

    /* Transitions */
    --transition:   0.3s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    padding-top: var(--nav-height);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ============================================================
   3. HEADER & DESKTOP NAVIGATION
   ============================================================ */

.brand-header {
    background: var(--black);
    padding: 12px var(--page-padding);
    border-bottom: 3px solid var(--green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    height: 40px;
    width: auto;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 2px;
}

.trademark {
    color: var(--green);
    font-size: 0.7rem;
    vertical-align: super;
}

/* Desktop nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--green);
}

/* "Order Now" CTA button in nav */
.nav-cta {
    background: var(--green);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.nav-cta:hover {
    background: var(--dark-green);
    color: #ffffff;
}

/* "Order Now" dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
    /* Extend the hover zone downward so cursor can travel to the menu
       without the gap causing the dropdown to collapse */
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 12px); /* sits flush with the extended hover zone */
    right: 0;
    background: #ffffff;
    border: 2px solid var(--green);
    border-radius: 12px;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    /* Small top padding so content doesn't touch the invisible bridge */
    padding-top: 4px;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* Subtle visual distinction for the Business item */
.dropdown-item-business {
    background: rgba(0, 153, 122, 0.04);
    border-top: 1px solid rgba(0, 153, 122, 0.15) !important;
}

.dropdown-item-business:hover {
    background: rgba(0, 153, 122, 0.1) !important;
}

.dropdown-item-business .dropdown-title {
    color: #006b55;
}

.dropdown-item-business:hover .dropdown-title {
    color: var(--accent-teal) !important;
}

.dropdown-item-business .dropdown-value {
    color: var(--accent-teal);
}

.nav-dropdown-content a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(64, 182, 129, 0.15);
}

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

.nav-dropdown-content a:hover {
    background: rgba(64, 182, 129, 0.08);
}

.dropdown-title {
    font-weight: 700;
    display: block;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.dropdown-microcopy {
    font-size: 0.8rem;
    color: #555;
    display: block;
    line-height: 1.4;
    margin-bottom: 6px;
}

.dropdown-value {
    font-size: 0.75rem;
    color: #1a7a4a;
    font-weight: 600;
    display: block;
}

.nav-dropdown-content a:hover .dropdown-title {
    color: var(--green);
}

.nav-dropdown-content a:hover .dropdown-microcopy {
    color: #333;
}


/* ============================================================
   4. HAMBURGER & MOBILE MENU
   ============================================================ */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all var(--transition);
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 20px var(--page-padding);
    border-bottom: 2px solid var(--green);
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    color: #1a1a1a;
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(64, 182, 129, 0.15);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(64, 182, 129, 0.2);
    margin: 10px 0;
}

.mobile-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9ab5a0;
    padding: 18px 0 6px;
    display: block;
}

/* Mobile CTA cards (inside mobile menu) */
.mobile-cta-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(64, 182, 129, 0.06);
    border: 2px solid rgba(64, 182, 129, 0.25);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-cta-card:hover {
    background: rgba(64, 182, 129, 0.12);
    border-color: var(--green);
}

.mobile-cta-card.corporate {
    border-color: rgba(0, 153, 122, 0.25);
    background: rgba(0, 153, 122, 0.06);
}

.mobile-cta-card.corporate:hover {
    background: rgba(0, 153, 122, 0.12);
    border-color: var(--accent-teal);
}


.mobile-cta-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(64, 182, 129, 0.15);
    border-radius: 8px;
}

.mobile-cta-icon-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 4px;
    background: rgba(64, 182, 129, 0.15);
    border-radius: 8px;
    object-fit: contain;
}

.mobile-cta-text {
    flex: 1;
}

.mobile-cta-text strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mobile-cta-text span {
    display: block;
    color: #555;
    font-size: 0.8rem;
    line-height: 1.4;
}

.mobile-value-line {
    color: #1a7a4a;
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
}


/* ============================================================
   5. FOOTER
   ============================================================ */

.site-footer {
    background: #f8f8f8;
    border-top: 3px solid var(--green);
    padding: 60px var(--page-padding) 30px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-brand-logo {
    height: 36px;
    width: auto;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--green);
}

.footer-links {
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding-top: 20px;
    text-align: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.trademark-note {
    color: #555;
    font-size: 0.75rem;
    margin-top: 5px !important;
}


/* ============================================================
   6. COMMON UTILITY CLASSES
   ============================================================ */

/* Section wrapper */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--green);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 182, 129, 0.35);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--green);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--green);
    transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-secondary:hover {
    background: var(--green);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Guarantee badge */
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 182, 129, 0.08);
    border: 1px solid rgba(64, 182, 129, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.guarantee-badge:hover {
    background: rgba(64, 182, 129, 0.15);
    border-color: var(--green);
}

/* Screen-reader only */
.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;
}


/* ============================================================
   7. RESPONSIVE — MOBILE BREAKPOINTS
   ============================================================ */

@media (max-width: 768px) {

    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    /* Footer stacks to single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --page-padding: 4%;
    }
}
