/* 2Drive.co.za — shared dark theme
   Sister-site palette to k53passright.co.za: same dark navy shell,
   Inter type, glass cards and cyan/indigo UI accent, with 2Drive's
   own green/blue brand gradient standing in for the K53 green/gold. */

:root {
    --bg-main: #0B0F19;
    --bg-card: #161B26;
    --bg-card-hover: #1B2231;
    --accent: #38BDF8; /* Electric Cyan */
    --accent-2: #818CF8; /* Indigo */
    --accent-hover: #0EA5E9;
    --brand-green: #22C55E; /* 2Drive brand green */
    --brand-blue: #3B82F6;  /* 2Drive brand blue */
    --fb-color: #1877F2;
    --fb-hover: #166FE5;
    --wa-color: #25D366;
    --wa-hover: #1DA851;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-faint: #6B7280;
    --border: rgba(255, 255, 255, 0.07);
    --border-soft: rgba(255, 255, 255, 0.04);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(ellipse 800px 500px at 15% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 5%, rgba(129, 140, 248, 0.10), transparent 60%);
    background-repeat: no-repeat;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

::selection {
    background: rgba(56, 189, 248, 0.3);
    color: var(--text-main);
}

a { color: inherit; }

/* ---------- Fixed & Sticky Floating Header ---------- */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover { color: var(--text-main); }

.btn-pill {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(56, 189, 248, 0.18);
}

.btn-pill-outline {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-pill-outline:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
    transform: none;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.4rem;
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
}

/* Mobile slide-in menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-main);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active { transform: translateX(0); }

#mobile-menu .mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-menu .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

#mobile-menu .mobile-menu-links a { text-decoration: none; color: var(--text-main); }
#mobile-menu .mobile-menu-links a.accent { color: var(--accent); }

@media (min-width: 900px) {
    #mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 3rem 1.25rem 0;
}

h1.page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    text-align: center;
}

h1.page-title span,
.gradient-text {
    display: inline-block;
    background: linear-gradient(to right, var(--brand-green), var(--brand-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.hero-divider {
    height: 4px;
    width: 120px;
    margin: 0 auto 3rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
}

/* ---------- Section titles ---------- */
.section-eyebrow {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* ---------- Glass card / about panel ---------- */
main { flex: 1; }

.glass-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.about-section {
    max-width: 860px;
    margin: 0 auto 4rem;
    padding: 0 1.25rem;
}

.about-card {
    padding: 2.25rem;
    line-height: 1.75;
    color: var(--text-main);
}

.about-card p { margin-bottom: 1.25rem; color: var(--text-muted); }
.about-card p:last-child { margin-bottom: 0; }
.about-card p.lead { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }

.about-callout {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid var(--accent);
    padding: 1.1rem 1.4rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: var(--text-main) !important;
    margin: 1.5rem 0;
}

.about-note {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
    font-weight: 600;
    color: var(--accent-2) !important;
}

/* ---------- Category / feature cards (index) ---------- */
.category-grid {
    max-width: 1120px;
    margin: 0 auto 5rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 750px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.category-card:hover::before { opacity: 1; }

.category-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #0d1220;
}

.category-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover .category-thumb img { transform: scale(1.06); }

.category-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.6), transparent 55%);
}

.category-body {
    padding: 1.4rem 1.25rem 1.6rem;
    text-align: center;
}

.category-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin-bottom: 0.35rem;
}

.category-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Province grid & cards ---------- */
.provinces-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.province-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.province-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #0d1220;
}

.province-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.province-card-body {
    padding: 1rem 1.1rem 1.2rem;
    text-align: center;
}

.province-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.province-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.province-card:hover::before { opacity: 1; }
.province-card:hover .province-thumb img { transform: scale(1.06); }

.province-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.province-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(60%);
}

.province-card.coming-soon .province-card-body::after {
    content: 'Coming Soon';
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- Contact / company card ---------- */
.company-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.company-logo-box {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo-box img { max-width: 75%; max-height: 75%; }

.company-info { flex: 1; min-width: 240px; }

.company-info h1 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.company-info p { color: var(--text-muted); }

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-action {
    padding: 0.65rem 1.2rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    transition: var(--transition);
}

.btn-action:hover { transform: translateY(-2px); }

.btn-tel { background: var(--brand-blue); }
.btn-email { background: #EF4444; }
.btn-whatsapp { background: var(--wa-color); }
.btn-whatsapp:hover { background: var(--wa-hover); }

/* ---------- Contact form ---------- */
.contact-section { padding: 2.25rem; margin-bottom: 3rem; }
.contact-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.submit-btn {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(56, 189, 248, 0.18); }

/* ---------- Facebook community strip ---------- */
.facebook-community-section {
    max-width: 1120px;
    margin: 0 auto 4rem;
    padding: 2.75rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.facebook-community-section h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.facebook-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--fb-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.btn-fb:hover {
    background-color: var(--fb-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.btn-fb svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
footer.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 3rem 1.5rem;
    margin-top: auto;
}

.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}

@media (min-width: 750px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
        align-items: center;
    }
    .footer-col:last-child { text-align: right; }
    .footer-col:last-child .footer-links { justify-content: flex-end; }
}

.footer-col { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

@media (min-width: 750px) {
    .footer-col:first-child { align-items: flex-start; }
}

.footer-col img { height: 44px; width: auto; }

.footer-col p { color: var(--text-faint); font-size: 0.8rem; line-height: 1.5; }
.footer-col p a { color: var(--text-faint); }

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-email {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-email:hover { color: var(--accent-hover); }

.footer-links { display: flex; gap: 0.75rem; justify-content: center; }

.social-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-soft);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.social-box:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-box svg { width: 18px; height: 18px; }

/* ---------- Back to Top ---------- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--bg-card);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 9998;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#backToTop.show { opacity: 1; visibility: visible; }

#backToTop:hover {
    background-color: var(--accent);
    color: var(--bg-main);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

#backToTop svg { width: 22px; height: 22px; fill: currentColor; }
