/*
Theme Name: GPS Track South Africa
Theme URI: https://gpstrack.co.za
Author: GPS Track South Africa
Author URI: https://gpstrack.co.za
Description: One-page marketing theme for GPS Track South Africa (advanced fleet & asset tracking).
Version: 1.0.0
Text Domain: gpstrack
*/

:root {
    --gp-bg: #020617;
    --gp-bg-soft: #020617;
    --gp-surface: #020617;
    --gp-surface-alt: #020617;
    --gp-border-soft: rgba(148, 163, 184, 0.28);
    --gp-border-strong: rgba(148, 163, 184, 0.6);
    --gp-text: #e5e7eb;
    --gp-text-soft: #9ca3af;
    --gp-accent: #38bdf8;
    --gp-accent-soft: rgba(56, 189, 248, 0.1);
    --gp-accent-strong: #0ea5e9;
    --gp-accent-secondary: #6366f1;
    --gp-danger: #f97373;
    --gp-radius-lg: 24px;
    --gp-radius-pill: 999px;
    --gp-shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.9);
    --gp-shadow-card: 0 18px 45px rgba(15, 23, 42, 0.7);
    --gp-max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    color: var(--gp-text);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Layout wrappers */

.gp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gp-main {
    flex: 1;
}

.gp-container {
    width: 100%;
    max-width: var(--gp-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .gp-container {
        padding: 0 2rem;
    }
}

/* Header */

.gp-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.75),
            rgba(15, 23, 42, 0.45));
    border-bottom: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
}

.gp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.75rem;
}

/* BRAND + LOGO */

.gp-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Light metallic shield / pill */
.gp-brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f9fafb, #e5e7eb, #cbd5f5, #9ca3af);
    border: 1px solid rgba(148, 163, 184, 0.9);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 0 2px rgba(148, 163, 184, 0.45);
    overflow: hidden;
}

/* Glassy highlight over the top half of the shield */
.gp-brand-logo::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    height: 55%;
    border-radius: 999px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.25),
            transparent);
    pointer-events: none;
}

/* Subtle inner vignette to give depth */
.gp-brand-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

/* Logo itself – smaller */
.gp-logo-img {
    position: relative;
    z-index: 1;
    display: block;
    height: 38px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 960px) {
    .gp-logo-img {
        height: 48px;
    }
}

/* NAV */

.gp-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.gp-nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

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

.gp-nav-link {
    position: relative;
    padding-bottom: 0.1rem;
    color: var(--gp-text-soft);
    transition: color 0.18s ease, opacity 0.18s ease;
}

.gp-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gp-accent), var(--gp-accent-secondary));
    border-radius: 999px;
    transition: width 0.21s ease;
}

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

.gp-nav-link:hover::after {
    width: 70%;
}

.gp-nav-login-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons – modern / advanced */

.gp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--gp-radius-pill);
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 0.55rem 1.7rem;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        opacity 0.12s ease;
}

.gp-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.gp-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Primary / main CTA (Login, etc.) */
.gp-btn-primary {
    background: linear-gradient(135deg, var(--gp-accent-strong), var(--gp-accent-secondary));
    border-color: rgba(148, 163, 184, 0.4);
    color: #0b1120;
    box-shadow:
        0 14px 40px rgba(56, 189, 248, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}

.gp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 55px rgba(56, 189, 248, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}

.gp-btn-primary:hover::before {
    opacity: 1;
}

/* Outline / ghost (Request demo) */
.gp-btn-outline {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--gp-text-soft);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.7);
}

.gp-btn-outline:hover {
    border-color: var(--gp-accent);
    color: var(--gp-accent);
    transform: translateY(-1px);
    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}

.gp-btn-outline:hover::before {
    opacity: 1;
}

/* Hero */

.gp-hero {
    padding: 2.75rem 0 3.25rem;
}

@media (min-width: 900px) {
    .gp-hero {
        padding: 3.5rem 0 4.5rem;
    }
}

.gp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr);
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 960px) {
    .gp-hero-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    }
}

.gp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--gp-radius-pill);
    padding: 0.25rem 0.65rem 0.25rem 0.3rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--gp-text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.gp-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #f9fafb, #4ade80, #16a34a);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.gp-pill-text-strong {
    color: var(--gp-accent);
}

.gp-hero-title {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .gp-hero-title {
        font-size: 2.6rem;
    }
}

@media (min-width: 1100px) {
    .gp-hero-title {
        font-size: 3rem;
    }
}

.gp-hero-highlight {
    background: linear-gradient(90deg, var(--gp-accent), var(--gp-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gp-hero-subtitle {
    font-size: 0.98rem;
    max-width: 32rem;
    color: var(--gp-text-soft);
    margin-bottom: 1.5rem;
}

.gp-hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.75rem;
}

.gp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: var(--gp-radius-pill);
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--gp-text-soft);
}

.gp-hero-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gp-accent);
}

.gp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.gp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--gp-text-soft);
}

.gp-hero-meta strong {
    color: var(--gp-text);
}

.gp-hero-right {
    position: relative;
}

.gp-hero-ui {
    border-radius: 32px;
    padding: 1.25rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--gp-shadow-card);
    position: relative;
    overflow: hidden;
}

.gp-hero-ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gp-hero-ui-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.gp-hero-ui-tag {
    font-size: 0.74rem;
    color: var(--gp-text-soft);
    padding: 0.15rem 0.6rem;
    border-radius: var(--gp-radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.6);
}

.gp-hero-ui-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.gp-metric-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 1));
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
}

.gp-metric-label {
    color: var(--gp-text-soft);
    margin-bottom: 0.25rem;
}

.gp-metric-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.gp-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #4ade80;
}

.gp-metric-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #4ade80;
}

.gp-hero-ui-list {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
    padding: 0.8rem 0.85rem;
    font-size: 0.78rem;
}

.gp-hero-ui-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.gp-hero-ui-row:not(:last-child) {
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.gp-hero-ui-row-label {
    color: var(--gp-text-soft);
}

.gp-hero-ui-row-value {
    font-weight: 500;
}

/* Sections */

.gp-section {
    padding: 2.75rem 0;
}

@media (min-width: 900px) {
    .gp-section {
        padding: 3.25rem 0;
    }
}

.gp-section-header {
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.gp-section-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gp-accent);
    margin-bottom: 0.45rem;
}

.gp-section-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

@media (min-width: 900px) {
    .gp-section-title {
        font-size: 1.7rem;
    }
}

.gp-section-lead {
    font-size: 0.94rem;
    color: var(--gp-text-soft);
}

/* Feature grid */

.gp-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 720px) {
    .gp-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gp-card {
    border-radius: 20px;
    border: 1px solid var(--gp-border-soft);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    padding: 1.1rem 1rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
    position: relative;
    overflow: hidden;
}

.gp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.gp-card-inner {
    position: relative;
    z-index: 1;
}

.gp-card-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gp-accent);
    margin-bottom: 0.35rem;
}

.gp-card-title {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.gp-card-text {
    font-size: 0.86rem;
    color: var(--gp-text-soft);
}

.gp-card-list {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.83rem;
    color: var(--gp-text-soft);
}

.gp-card-list li {
    margin-bottom: 0.2rem;
}

/* Two-column section */

.gp-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr);
    gap: 1.75rem;
    align-items: start;
}

@media (min-width: 900px) {
    .gp-two-column {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

.gp-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
}

.gp-badge {
    padding: 0.15rem 0.7rem;
    border-radius: var(--gp-radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    color: var(--gp-text-soft);
}

/* Contact section */

.gp-contact {
    border-radius: 32px;
    border: 1px solid var(--gp-border-soft);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
    box-shadow: var(--gp-shadow-soft);
    padding: 1.75rem 1.3rem;
}

@media (min-width: 900px) {
    .gp-contact {
        padding: 2rem 1.75rem;
    }
}

.gp-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr);
    gap: 1.75rem;
}

@media (min-width: 960px) {
    .gp-contact-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
    }
}

.gp-contact-meta {
    font-size: 0.88rem;
    color: var(--gp-text-soft);
}

.gp-contact-meta p {
    margin: 0 0 0.6rem;
}

.gp-contact-meta strong {
    color: var(--gp-text);
}

.gp-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.gp-contact-pill {
    border-radius: var(--gp-radius-pill);
    padding: 0.15rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.76rem;
    color: var(--gp-text-soft);
}

/* Contact form */

.gp-form {
    display: grid;
    gap: 0.85rem;
}

.gp-form-row {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 720px) {
    .gp-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gp-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.84rem;
}

.gp-label {
    color: var(--gp-text-soft);
}

.gp-label span {
    color: var(--gp-accent);
}

.gp-input,
.gp-textarea,
.gp-select {
    border-radius: 999px;
    border: 1px solid var(--gp-border-soft);
    background: rgba(15, 23, 42, 0.9);
    color: var(--gp-text);
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    width: 100%;
}

.gp-input::placeholder,
.gp-textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.gp-input:focus,
.gp-textarea:focus,
.gp-select:focus {
    border-color: var(--gp-accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
    background: rgba(15, 23, 42, 0.98);
}

.gp-textarea {
    min-height: 120px;
    border-radius: 18px;
    resize: vertical;
    padding-top: 0.7rem;
}

/* Checkbox group */

.gp-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gp-checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.22rem 0.75rem;
    border: 1px solid var(--gp-border-soft);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.gp-checkbox-pill input {
    margin: 0;
}

.gp-checkbox-small {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--gp-text-soft);
}

/* Feedback messages */

.gp-notice {
    border-radius: 16px;
    padding: 0.7rem 0.8rem;
    font-size: 0.83rem;
    margin-bottom: 0.7rem;
}

.gp-notice-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}

.gp-notice-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

/* Footer */

.gp-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.6rem 0 1.4rem;
    background: rgba(15, 23, 42, 0.98);
}

.gp-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gp-text-soft);
}

@media (min-width: 900px) {
    .gp-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.gp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.gp-footer-links a {
    color: var(--gp-text-soft);
}

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