/* ═══════════════════════════════════════════════════════════════════════════
   UK WIDE WEB SERVICES - PROFESSIONAL HEADER & FOOTER
   Modern styling inspired by GoDaddy/123-reg
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Brand Colors */
    --ukwws-navy: #0f172a;
    --ukwws-navy-light: #1e293b;
    --ukwws-navy-lighter: #334155;
    --ukwws-red: #dc2626;
    --ukwws-red-hover: #b91c1c;
    --ukwws-red-dark: #991b1b;

    /* Neutrals */
    --ukwws-white: #ffffff;
    --ukwws-gray-50: #f9fafb;
    --ukwws-gray-100: #f3f4f6;
    --ukwws-gray-200: #e5e7eb;
    --ukwws-gray-300: #d1d5db;
    --ukwws-gray-400: #9ca3af;
    --ukwws-gray-500: #6b7280;
    --ukwws-gray-600: #4b5563;
    --ukwws-gray-700: #374151;

    /* Typography */
    --ukwws-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --header-height: 70px;
    --topbar-height: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP BAR (Contact info, support hours)
   ═══════════════════════════════════════════════════════════════════════════ */
.ukwws-topbar {
    background: var(--ukwws-navy);
    border-bottom: 1px solid var(--ukwws-navy-light);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.ukwws-topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ukwws-topbar-left,
.ukwws-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ukwws-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ukwws-gray-300);
}

.ukwws-topbar-item svg {
    width: 14px;
    height: 14px;
    color: var(--ukwws-red);
}

.ukwws-topbar-item a {
    color: var(--ukwws-gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.ukwws-topbar-item a:hover {
    color: var(--ukwws-white);
}

.ukwws-topbar-phone {
    font-weight: 600;
    color: var(--ukwws-white);
}

@media (max-width: 768px) {
    .ukwws-topbar {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.ukwws-header {
    background: var(--ukwws-navy-light);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* Logo */
.ukwws-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.ukwws-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ukwws-red) 0%, var(--ukwws-red-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ukwws-white);
    font-size: 18px;
}

.ukwws-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ukwws-logo-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--ukwws-white);
    letter-spacing: -0.02em;
}

.ukwws-logo-tagline {
    font-size: 11px;
    color: var(--ukwws-gray-400);
    font-weight: 400;
}

/* Main Navigation */
.ukwws-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ukwws-nav-item {
    position: relative;
}

.ukwws-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ukwws-gray-300);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.ukwws-nav-link:hover {
    color: var(--ukwws-white);
    background: var(--ukwws-navy-lighter);
}

.ukwws-nav-link.active {
    color: var(--ukwws-white);
    background: var(--ukwws-navy);
}

.ukwws-nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.ukwws-nav-item:hover .ukwws-nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.ukwws-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--ukwws-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    padding: 8px 0;
    margin-top: 8px;
}

.ukwws-nav-item:hover .ukwws-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ukwws-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--ukwws-gray-700);
    text-decoration: none;
    transition: all 0.15s;
}

.ukwws-dropdown-link:hover {
    background: var(--ukwws-gray-50);
    color: var(--ukwws-red);
}

.ukwws-dropdown-link svg {
    width: 18px;
    height: 18px;
    color: var(--ukwws-gray-400);
}

.ukwws-dropdown-link:hover svg {
    color: var(--ukwws-red);
}

.ukwws-dropdown-divider {
    height: 1px;
    background: var(--ukwws-gray-200);
    margin: 8px 0;
}

/* Header Actions (Search, Cart, Account) */
.ukwws-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ukwws-search-btn,
.ukwws-cart-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ukwws-gray-300);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ukwws-search-btn:hover,
.ukwws-cart-btn:hover {
    background: var(--ukwws-navy-lighter);
    color: var(--ukwws-white);
}

.ukwws-search-btn svg,
.ukwws-cart-btn svg {
    width: 20px;
    height: 20px;
}

.ukwws-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--ukwws-red);
    color: var(--ukwws-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ukwws-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ukwws-red);
    color: var(--ukwws-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ukwws-account-btn:hover {
    background: var(--ukwws-red-hover);
    color: var(--ukwws-white);
    transform: translateY(-1px);
}

.ukwws-account-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.ukwws-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--ukwws-white);
    cursor: pointer;
    border-radius: 8px;
}

.ukwws-mobile-toggle:hover {
    background: var(--ukwws-navy-lighter);
}

.ukwws-mobile-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .ukwws-nav {
        display: none;
    }

    .ukwws-mobile-toggle {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.ukwws-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.ukwws-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ukwws-search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
}

.ukwws-search-input-wrapper {
    position: relative;
}

.ukwws-search-input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 18px;
    font-family: var(--ukwws-font);
    background: var(--ukwws-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ukwws-search-input:focus {
    outline: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--ukwws-red);
}

.ukwws-search-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ukwws-gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ukwws-gray-600);
    transition: all 0.2s;
}

.ukwws-search-close:hover {
    background: var(--ukwws-red);
    color: var(--ukwws-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.ukwws-footer {
    background: var(--ukwws-navy);
    color: var(--ukwws-gray-300);
    font-family: var(--ukwws-font);
}

/* Footer Top - Newsletter/CTA */
.ukwws-footer-cta {
    background: linear-gradient(135deg, var(--ukwws-red) 0%, var(--ukwws-red-dark) 100%);
    padding: 48px 24px;
}

.ukwws-footer-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.ukwws-footer-cta-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ukwws-white);
    margin: 0 0 8px 0;
}

.ukwws-footer-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.ukwws-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--ukwws-white);
    color: var(--ukwws-red);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.ukwws-footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--ukwws-red-dark);
}

/* Footer Main */
.ukwws-footer-main {
    padding: 64px 24px;
    border-bottom: 1px solid var(--ukwws-navy-lighter);
}

.ukwws-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
}

@media (max-width: 1024px) {
    .ukwws-footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ukwws-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ukwws-footer-container {
        grid-template-columns: 1fr;
    }
}

/* Footer Brand Column */
.ukwws-footer-brand {
    grid-column: span 1;
}

@media (min-width: 1025px) {
    .ukwws-footer-brand {
        grid-column: span 1;
    }
}

.ukwws-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.ukwws-footer-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--ukwws-red) 0%, var(--ukwws-red-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ukwws-white);
    font-size: 18px;
}

.ukwws-footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--ukwws-white);
}

.ukwws-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ukwws-gray-400);
    margin: 0 0 24px 0;
}

/* Social Links */
.ukwws-footer-social {
    display: flex;
    gap: 12px;
}

.ukwws-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ukwws-navy-light);
    border-radius: 8px;
    color: var(--ukwws-gray-400);
    transition: all 0.2s;
}

.ukwws-footer-social a:hover {
    background: var(--ukwws-red);
    color: var(--ukwws-white);
    transform: translateY(-2px);
}

.ukwws-footer-social svg {
    width: 18px;
    height: 18px;
}

/* Footer Link Columns */
.ukwws-footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ukwws-white);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ukwws-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.ukwws-footer-links a {
    font-size: 14px;
    color: var(--ukwws-gray-400);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ukwws-footer-links a:hover {
    color: var(--ukwws-white);
    padding-left: 4px;
}

/* Contact Info in Footer */
.ukwws-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ukwws-gray-400);
}

.ukwws-footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--ukwws-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.ukwws-footer-contact-item a {
    color: var(--ukwws-gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.ukwws-footer-contact-item a:hover {
    color: var(--ukwws-white);
}

.ukwws-footer-contact-item strong {
    color: var(--ukwws-white);
    font-weight: 600;
}

/* Trust Badges */
.ukwws-footer-trust {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ukwws-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ukwws-navy-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--ukwws-gray-300);
}

.ukwws-trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--ukwws-red);
}

/* Footer Bottom */
.ukwws-footer-bottom {
    padding: 24px;
}

.ukwws-footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ukwws-footer-copyright {
    font-size: 13px;
    color: var(--ukwws-gray-500);
}

.ukwws-footer-legal {
    display: flex;
    gap: 24px;
}

.ukwws-footer-legal a {
    font-size: 13px;
    color: var(--ukwws-gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.ukwws-footer-legal a:hover {
    color: var(--ukwws-white);
}

.ukwws-footer-payment {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ukwws-footer-payment img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ukwws-footer-payment img:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OVERRIDE WHMCS DEFAULT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide default WHMCS header/nav */
.header-lined,
header.header-lined,
#main-menu,
.navbar-header,
.navbar-default,
.main-menu-wrapper,
.header-wrapper .container {
    display: none !important;
}

/* Hide default WHMCS footer */
footer.site-footer,
.footer-text-right,
.site-footer .footer-wrapper {
    display: none !important;
}

/* Adjust main content area */
body {
    font-family: var(--ukwws-font);
}

.main-content {
    padding-top: 0 !important;
}

/* Make sure our custom elements show */
.ukwws-topbar,
.ukwws-header,
.ukwws-footer {
    display: block !important;
}

/* Fix nav wrapping - make items fit */
.ukwws-nav {
    flex-wrap: nowrap !important;
}

.ukwws-nav-link {
    padding: 10px 12px !important;
    font-size: 13px !important;
}

.ukwws-header-container {
    max-width: 1600px !important;
}
