/* ============================================
   AJ Vehicle Registration — Main Stylesheet
   ============================================
   Structure:
   1. Reset & Base
   2. CSS Variables (Design Tokens)
   3. Typography
   4. Layout Utilities
   5. Header & Navigation
   6. Hero Section
   7. Services Section / Service Cards
   8. Contact Section
   9. Forms
   10. Footer
   11. Animations & Transitions
   12. Responsive Breakpoints
   ============================================ */

/* -----------------------------------------
   1. Reset & Base
   ----------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    tab-size: 4;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

::selection {
    background-color: var(--brand-accent);
    color: #fff;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
}

/* -----------------------------------------
   2. CSS Variables (Design Tokens)
   ----------------------------------------- */
:root {
    /* Brand Palette */
    --brand-blue:   #1e3a8a;
    --brand-accent: #3b82f6;
    --brand-light:  #eff6ff;
    --brand-dark:   #0f172a;

    /* Grays */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;

    /* Shadows */
    --shadow-sm:        0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:        0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg:        0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-2xl:       0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-card:      0 4px 20px -2px rgba(0,0,0,0.05);
    --shadow-card-hover:0 20px 40px -4px rgba(0,0,0,0.1);
    --shadow-premium:   0 10px 40px -10px rgba(59,130,246,0.3);

    /* Misc */
    --whatsapp-green: #25D366;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --transition: all 0.3s ease-in-out;
}

/* -----------------------------------------
   3. Typography
   ----------------------------------------- */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }

/* -----------------------------------------
   4. Layout Utilities
   ----------------------------------------- */
.container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hidden {
    display: none !important;
}

/* -----------------------------------------
   5. Header & Navigation
   ----------------------------------------- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background-color: var(--brand-accent);
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    background-color: var(--brand-blue);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.025em;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-link.active {
    font-weight: 600;
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-accent);
    padding-bottom: 0.25rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--brand-accent);
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: var(--brand-blue);
    box-shadow: var(--shadow-premium);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    color: var(--gray-600);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--brand-blue);
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 1.875rem;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    background-color: #fff;
    border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    position: absolute;
    width: 100%;
    left: 0;
    transform-origin: top;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem 1.5rem;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.mobile-link:hover {
    background-color: var(--gray-50);
}

.mobile-link.active {
    color: var(--brand-blue);
    font-weight: 600;
    background-color: var(--brand-light);
}

.mobile-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
    background-color: var(--brand-accent);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* -----------------------------------------
   6. Hero Section
   ----------------------------------------- */
.hero {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-accent) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='a' width='20' height='20' x='0' y='0' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M0 0h100v100H0z'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Mobile hero background image overlay */
.hero-mobile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-mobile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-mobile-bg .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    mix-blend-mode: multiply;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    justify-content: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    color: var(--brand-blue);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: var(--gray-50);
    box-shadow: var(--shadow-premium);
    transform: translateY(-4px);
}

.btn-hero-primary .material-symbols-outlined {
    font-size: 20px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Hero Image */
.hero-image {
    display: none;
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transform: rotate(-1deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-image:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent);
}

/* -----------------------------------------
   7. Services Section / Service Cards
   ----------------------------------------- */
.services-section {
    padding: 5rem 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Service Card */
.service-card {
    background-color: #fff;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.service-card .card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background-color: var(--brand-light);
    border-bottom-left-radius: 9999px;
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-card:hover .card-accent {
    transform: scale(1.5);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--brand-light);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background-color: var(--brand-accent);
    color: #fff;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    line-height: 1.625;
    font-size: 0.875rem;
}

/* -----------------------------------------
   8. Contact Section
   ----------------------------------------- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.contact-section--full {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.contact-info > div:first-child p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-item-icon {
    background-color: var(--brand-light);
    color: var(--brand-accent);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-item h4 {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.125rem;
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--brand-accent);
}

.contact-link i {
    width: 1rem;
}

.contact-link--whatsapp {
    color: var(--whatsapp-green);
    font-weight: 500;
}

.contact-link--whatsapp:hover {
    color: #16a34a;
}

.contact-link--whatsapp i {
    font-size: 1.125rem;
}

/* -----------------------------------------
   9. Forms
   ----------------------------------------- */
.form-card {
    background-color: #fff;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
    color: var(--gray-800);
}

.form-select {
    color: var(--gray-600);
}

.form-textarea {
    resize: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    background-color: var(--brand-blue);
    color: #fff;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-submit:hover {
    background-color: var(--brand-accent);
    box-shadow: var(--shadow-premium);
    transform: translateY(-4px);
}

/* -----------------------------------------
   10. Footer
   ----------------------------------------- */
.site-footer {
    background-color: var(--brand-dark);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--brand-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--brand-accent);
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.625;
}

/* Footer columns */
.footer-column h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: #fff;
}

/* Footer connect links */
.footer-connect {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-connect a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-connect a:hover {
    color: #fff;
}

.footer-connect .whatsapp-link:hover {
    color: var(--whatsapp-green);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-align: center;
}

.footer-bottom a {
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.75rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

/* -----------------------------------------
   11. Animations & Transitions
   ----------------------------------------- */
.micro-bounce {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.micro-bounce:hover {
    transform: translateY(-4px);
}

.smooth-transition {
    transition: var(--transition);
}

/* -----------------------------------------
   12. Responsive — sm (640px+)
   ----------------------------------------- */
@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-image {
        height: 450px;
    }
}

/* -----------------------------------------
   Responsive — md (768px+)
   ----------------------------------------- */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom p {
        text-align: left;
    }
}

/* -----------------------------------------
   Responsive — lg (1024px+)
   ----------------------------------------- */
@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero {
        padding-top: 9rem;
        padding-bottom: 6rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1 {
        font-size: 3.75rem;
        line-height: 1;
    }

    .hero-subtitle {
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-mobile-bg {
        display: none;
    }

    .hero-image {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .form-card {
        padding: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
