/* ========================================
   Alvey's Automotive — Styles
   Plum + Amber Palette
   ======================================== */

/* --- CSS Variables --- */
:root {
    --plum-dark: #3D1A4E;
    --plum: #5B2C6F;
    --plum-light: #7D3C91;
    --plum-muted: #9B59B6;
    --plum-pale: #F4ECF7;
    --plum-bg: #FBF5FF;
    --amber: #F5B041;
    --amber-light: #F7C56E;
    --amber-dark: #E09A20;
    --amber-pale: #FFF8E7;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F8F8;
    --gray-100: #F0F0F0;
    --gray-200: #E0E0E0;
    --gray-300: #C8C8C8;
    --gray-500: #777777;
    --gray-700: #444444;
    --gray-900: #1A1A1A;
    --shadow-sm: 0 2px 8px rgba(91, 44, 111, 0.06);
    --shadow-md: 0 4px 20px rgba(91, 44, 111, 0.1);
    --shadow-lg: 0 8px 40px rgba(91, 44, 111, 0.12);
    --shadow-xl: 0 16px 60px rgba(91, 44, 111, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--plum-dark);
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 50%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: var(--plum-dark);
    border-color: var(--amber);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
    border-color: var(--amber-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--plum-dark);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 16px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--plum-pale);
    color: var(--plum);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-tag.light {
    background: rgba(245, 176, 65, 0.2);
    color: var(--amber);
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header.light {
    text-align: center;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-desc.light {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--plum-dark);
}

.logo-accent {
    color: var(--amber);
}

.navbar.scrolled .logo-accent {
    color: var(--amber-dark);
}

.logo-accent-light {
    color: var(--plum);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

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

.nav-cta {
    background: var(--amber);
    color: var(--plum-dark) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--amber-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger {
    background: var(--plum-dark);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 26, 78, 0.88) 0%,
        rgba(91, 44, 111, 0.75) 50%,
        rgba(125, 60, 145, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 176, 65, 0.2);
    border: 1px solid rgba(245, 176, 65, 0.4);
    color: var(--amber);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease both;
}

.hero-headline {
    font-size: clamp(44px, 7vw, 80px);
    color: var(--white);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-trust {
    display: flex;
    gap: 32px;
    animation: fadeUp 0.8s 0.4s ease both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
}

.trust-item svg {
    color: var(--amber);
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--plum) 0%, var(--amber) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--plum-pale);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--plum-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--plum);
    color: var(--white);
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--plum-dark);
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--plum-bg);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--white);
}

.about-img-float img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.about-stats {
    position: absolute;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: var(--plum-dark);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-stats .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.about-stats .stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    color: var(--gray-500);
    margin-bottom: 16px;
    font-size: 16px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-check {
    width: 28px;
    height: 28px;
    background: var(--plum-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}

.about-feature span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-700);
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 176, 65, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(245, 176, 65, 0.3);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.6;
}

.why-card h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.7;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--plum-bg);
}

.cta-card {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
    border-radius: var(--radius-xl);
    padding: 72px 60px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Decorative circle */
.cta-card::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    background: rgba(245, 176, 65, 0.1);
    border-radius: 50%;
}

.cta-card::before {
    content: '';
    position: absolute;
    right: 80px;
    top: -40px;
    width: 120px;
    height: 120px;
    background: rgba(245, 176, 65, 0.08);
    border-radius: 50%;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-card:hover {
    background: var(--plum-pale);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--plum);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--plum);
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--plum-dark);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
    animation: fadeUp 0.5s ease;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--plum-dark);
}

.form-success h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--plum-dark);
}

.form-success p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.form-success a {
    color: var(--plum);
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    background: var(--plum-dark);
    padding: 72px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--amber);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.footer-contact svg {
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--amber);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-card {
        padding: 56px 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--plum-dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 17px;
    }
    
    .nav-links a:hover {
        color: var(--amber) !important;
    }
    
    .nav-cta {
        margin-top: 8px;
    }
    
    .hero-headline {
        font-size: clamp(36px, 10vw, 56px);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-trust {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img-float {
        right: 10px;
        bottom: -20px;
        width: 180px;
    }
    
    .about-stats {
        left: 10px;
        top: -10px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 48px 28px;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services,
    .about,
    .why-us,
    .cta,
    .contact {
        padding: 72px 0;
    }
}
