:root {
    --blue-dark: #1a3a5c;
    --blue-mid: #2a5f8f;
    --blue-light: #3a7fbf;
    --orange: #e8872a;
    --orange-hover: #d4751e;
    --gray-dark: #2c2c2c;
    --gray-mid: #444;
    --gray-light: #f4f6f8;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    color: var(--blue-mid);
    text-decoration: none;
}

a:hover {
    color: var(--orange);
}

/* Navigation */
.top-nav {
    background: var(--blue-dark);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none
}

.top-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

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

.top-nav .nav-logo span {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.top-nav .nav-links {
    display: flex;
    gap: 0;
}

.top-nav .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 18px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
    background: transparent;
    /* 🔥 removes box */
    color: var(--white);
}

.top-nav .nav-links a {
    position: relative;
}

/* subtle underline instead of box */
.top-nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 2px;
    background: var(--orange);
    opacity: 0;
    transition: opacity 0.2s;
}

.top-nav .nav-links a:hover::after,
.top-nav .nav-links a.active::after {
    opacity: 1;
}

/* =========================
   HERO (DEFAULT - ALL PAGES)
========================= */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px 60px;
}

/* =========================
   HOMEPAGE VIDEO HERO
========================= */
.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

/* Video background */
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Dark overlay */
.hero-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Content on top */
.hero-video .hero-content {
    position: relative;
    z-index: 1;

    padding: 80px 20px 60px;
    /* 👈 key change */
    max-width: 900px;
    margin: 0 auto;
}





/* Content on top */
.hero-video .hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px 60px;
}

.hero-video img {
    width: 160px;
    max-width: 80%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    margin-bottom: 25px;
    /* 👈 ADD THIS */
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-video h1 {
    margin-bottom: 15px;
    font-size: 2.4rem;
}

.hero-video .tagline {
    font-size: 1.20rem;
    /* 👈 bigger */
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-video .hero-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);

    padding: 14px 28px;
    border-radius: 6px;

    font-weight: 600;
    font-size: 1rem;

    transition: background 0.2s, transform 0.1s;
}

.hero-video .hero-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

.hero img {
    width: 140px;
    /* 👈 controls size */
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.image-gallery img {
    width: 70px;
    /* 👈 THIS fixes everything */
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;

    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;

    display: block;
    margin: 0 auto;
    /* 👈 THIS centers it */
}

/* Close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Hover effect */
.nav:hover,
.lightbox .close:hover {
    color: var(--orange);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-mid);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--blue-mid);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: var(--blue-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    color: var(--gray-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card .card-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
}

.card .card-link:hover {
    color: var(--orange-hover);
}

.card button.card-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.card button.card-link:hover {
    color: var(--orange-hover);
}

/* Printer Cards */
.printer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.printer-card {
    background: var(--white);
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--orange);
}

.printer-card h3 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.printer-card .printer-brand {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: block;
}

.printer-card table {
    width: 100%;
    border-collapse: collapse;
}

.printer-card table td {
    padding: 6px 0;
    font-size: 0.93rem;
    color: var(--gray-mid);
    border-bottom: 1px solid #eee;
}

.printer-card table td:first-child {
    font-weight: 600;
    color: var(--gray-dark);
    width: 45%;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 30px;
}

/* Contact Info */
.contact-info-section {
    text-align: center;
}

.contact-info-section p {
    color: var(--gray-mid);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.contact-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-subscribe {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.footer-subscribe input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.footer-subscribe input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.footer-subscribe button:hover {
    background: var(--orange-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .top-nav .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .top-nav .nav-links.open {
        display: flex;
    }

    .top-nav .nav-links a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 50px 20px 40px;
    }

    .hero img {
        width: 120px;
    }

    .section {
        padding: 40px 0;
    }

    .footer-subscribe {
        flex-direction: column;
    }
}

/* ===== SMART HOME PAGE FIXES ===== */

.ha-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31, 111, 235, 0.1);
    color: #1f6feb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.ha-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Card improvements */
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Price styling */
.price {
    font-size: 1.4rem;
    color: #e8872a;
    margin: 10px 0;
    font-weight: 700;
}

/* ===== GLOBAL CTA BUTTON ===== */
.cta-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;

    width: auto;
    /* 🔥 prevents stretching */
    max-width: fit-content;
    /* 🔥 ensures it hugs content */
}

.hero,
.cta-section {
    text-align: center;
}

.hero .cta-btn,
.cta-section .cta-btn {
    display: inline-block;
}



.cta-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #2a5f8f;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn:hover {
    background: #1a3a5c;
}

/* CTA section spacing */
.cta-section {
    padding: 100px 20px;
    margin-bottom: 40px;
}

.cta-text {
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #444;
}

.cta-section .cta-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cta-section .cta-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.cart-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 18px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.cart-nav-btn:hover {
    color: var(--white);
}

/* ===== CART PAGE ===== */

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info {
    flex: 1;
}

.qty-controls button {
    background: var(--blue-mid);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-btn {
    background: none;
    border: none;
    color: red;
    font-size: 1.2rem;
}

/* form */
.form-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 6px;
}

.empty {
    text-align: center;
    padding: 40px;
}

/* ===== CART FORM FIX ===== */

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.95rem;
    display: block;
}

.form-box textarea {
    min-height: 100px;
    resize: vertical;
}

/* spacing for form */
.form-box h3 {
    margin-bottom: 15px;
}

/* ===== MATERIALS PAGE FIX ===== */

/* Hero CTA (this page only) */
.hero .cta-btn {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;

    margin-top: 20px;
    /* 👈 ADD THIS LINE */
}

.hero .cta-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

/* ===== CONTACT PAGE FIX ===== */

.page-header {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-details h2,
.contact-form-wrap h2 {
    color: var(--blue-dark);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

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

.submit-btn {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.submit-btn:hover {
    background: var(--orange-hover);
}

/* mobile fix */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.cart-price {
    font-weight: 600;
    color: var(--blue-dark);
    min-width: 80px;
    text-align: right;
}

.cart-total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 20px;
    color: var(--blue-dark);
}

.thank-you {
    text-align: center;
    padding: 80px 20px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--blue-dark);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 9999;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#drawer-items {
    flex: 1;
    overflow-y: auto;
}

.drawer-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawer-footer {
    margin-top: 20px;
}

/* Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Items */
.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.drawer-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.drawer-item-info {
    flex: 1;
}

.drawer-total {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-subscribe {
        flex-direction: column;
        gap: 10px;
    }

    .footer-subscribe input,
    .footer-subscribe button {
        width: 100%;
    }
}

.site-footer {
    overflow-x: hidden;
}

.footer-subscribe button {
    margin-top: 5px;
}

/* PAYMENT METHODS */

.footer-payments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.payment-title {
    font-size: 0.9rem;
    margin-bottom: 14px;
    opacity: 0.8;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.payment-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    height: 64px;

    transition: 0.2s ease;
}

.payment-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.apple-pay,
.google-pay,
.paypal {
    height: 42px;
}

.interac {
    height: 38px;
}

/* CART PAYMENT METHODS */

.cart-payment-note {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #f8f8f8;
}

.cart-payment-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.cart-payment-icons img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.cart-payment-icons {
    justify-content: center;
}

.cart-payment-icons img {
    transition: transform 0.2s ease;
}

.cart-payment-icons img:hover {
    transform: scale(1.08);
}

.cart-etransfer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

/* ALTERNATIVE PAYMENTS */

.alt-payment-section {
    margin-top: 18px;
    text-align: center;
}

.alt-payment-text {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #000000;
}

.alt-payment-btn {
    display: inline-block;

    width: 100%;
    margin-top: 8px;

    padding: 14px 18px;
    border-radius: 10px;

    background: transparent;
    border: 2px solid var(--blue-dark);

    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1rem;

    cursor: pointer;
    transition: 0.2s ease;
}

.alt-payment-btn:hover {
    background: var(--blue-dark);
    color: white;
}

.alt-shipping-options {
    margin: 15px 0;
    text-align: left;
}

.alt-shipping-options label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.alt-shipping-options select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.stripe-checkout-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.shipping-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.colour-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.colour-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
}

.colour-swatch:hover {
    transform: scale(1.12);
}

.colour-swatch.selected {
    border: 3px solid #111;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

.colour-label {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
}