/* =============================================
   YOURBRAND EYEWEAR — style.css
   
   HOW TO CUSTOMIZE:
   1. Change colors in :root below
   2. Change fonts by replacing the font-family values
   3. Each section is clearly labeled
   ============================================= */

/* ---- GLOBAL DESIGN TOKENS ---- */
:root {
    --primary:        #1c2e4a;   /* Dark navy — main brand color */
    --primary-light:  #2d4a70;   /* Lighter navy for hovers */
    --accent:         #fb7112;   /* Orange — CTA buttons, highlights */
    --accent-light:   #ff8c35;   /* Lighter orange for hover states */
    --white:          #ffffff;
    --off-white:      #f8f9fa;
    --text:           #2c3e50;   /* Main body text */
    --text-muted:     #7f8c8d;   /* Secondary / muted text */
    --border:         #e0e6ed;
    --success:        #27ae60;
    --error:          #e74c3c;
    --nav-height:     68px;
    --marquee-height: 36px;
    --radius:         8px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.12);
    --transition:     0.25s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* =============================================
   SECTION 1: MARQUEE BAR
   ============================================= */
.marquee-bar {
    height: var(--marquee-height);
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-marquee 35s linear infinite;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    gap: 0;
}

.marquee-track:hover {
    animation-play-state: paused; /* Pauses on hover so user can read */
}

.marquee-track strong {
    font-weight: 700;
    color: #f9ca74;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* -50% because content is duplicated */
}

/* =============================================
   SECTION 2: NAVBAR
   ============================================= */
.navbar {
    height: var(--nav-height);
    background: var(--primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* CTA button in nav */
.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   SECTION 3: HERO CAROUSEL
   ============================================= */
.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--primary);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

/* Dark overlay so text is readable over photos */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 24px;
    max-width: 700px;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.slide-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.slide-sub {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    font-weight: 400;
}

.slide-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 14px 38px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
}

.slide-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.5);
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.9);
}

.carousel-arrow.left  { left: 20px; }
.carousel-arrow.right { right: 20px; }

/* Dot indicators */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), width var(--transition);
}

.dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

/* =============================================
   SECTION 4: BRANDS CAROUSEL
   ============================================= */
.brands-section {
    padding: 72px 24px;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.brands-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

/* The scrollable track */
.brands-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    /* Hide scrollbar but keep scroll functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 4px;
}

.brands-track::-webkit-scrollbar {
    display: none;
}

/* Individual brand card */
.brand-card {
    flex: 0 0 160px;
    height: 88px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.brand-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.15);
    transform: translateY(-4px);
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}

/* When you add logo images, they'll look good with this */
.brand-card img {
    max-height: 52px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter var(--transition);
}

.brand-card:hover img {
    filter: grayscale(0%);
}

/* Brand nav arrows */
.brand-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.brand-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =============================================
   SECTION 5: FOOTER
   ============================================= */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.80);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr 1.6fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 8px;
}

.footer-col p a {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.footer-col p a:hover {
    color: var(--accent-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

/* Brand column */
.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.brand-col p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    font-size: 22px;
    opacity: 0.75;
    transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
}

.footer-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-col p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 14px;
}

.newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-box input {
    padding: 11px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.newsletter-box input::placeholder {
    color: rgba(255,255,255,0.40);
}

.newsletter-box input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.13);
}

.newsletter-box button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.newsletter-box button:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.newsletter-feedback {
    margin-top: 6px;
    font-size: 13px;
    min-height: 18px;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* =============================================
   INNER PAGE SHARED STYLES
   (Used by eyeglasses.html, about.html etc.)
   ============================================= */
.page-hero {
    background: var(--primary);
    color: var(--white);
    padding: 64px 24px;
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 17px;
    opacity: 0.8;
    max-width: 560px;
    margin: 0 auto;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.coming-soon-box {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.coming-soon-box .big-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.coming-soon-box p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 28px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 13px 30px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* =============================================
   EYE POWER PAGE — OTP FORM
   ============================================= */
.eye-power-section {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 24px;
}

.otp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.otp-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.otp-card .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.form-group input.error {
    border-color: var(--error);
}

.field-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
}

.full-width-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

.otp-info {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background var(--transition), width var(--transition);
}

.step.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.step.done {
    background: var(--success);
}

/* Results table */
.power-results {
    margin-top: 24px;
}

.power-results h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.power-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.power-table th {
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.power-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.power-table tr:last-child td {
    border-bottom: none;
}

.power-table tr:hover td {
    background: var(--off-white);
}

/* =============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================= */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .brand-col {
        grid-column: 1 / -1;
    }

    .newsletter-col {
        grid-column: 1 / -1;
    }

    .newsletter-box {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .newsletter-box input {
        flex: 1;
        min-width: 200px;
    }

    .newsletter-box button {
        flex-shrink: 0;
    }

    .slide-content h1 {
        font-size: 38px;
    }

    .brand-card {
        flex: 0 0 140px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================= */
@media (max-width: 640px) {
    /* Navbar */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--marquee-height) + var(--nav-height));
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

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

    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 8px;
        padding: 13px !important;
    }

    /* Hero */
    .hero-carousel {
        height: 340px;
    }

    .slide-content h1 {
        font-size: 26px;
    }

    .slide-sub {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-btn {
        padding: 11px 26px;
        font-size: 14px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    /* Brands */
    .brands-section {
        padding: 48px 16px;
    }

    .brand-card {
        flex: 0 0 130px;
        height: 76px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 20px 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* OTP card */
    .otp-card {
        padding: 28px 20px;
    }
}
