/* ============================================
   Silver Star Motors — Custom Styles
   Palette: Terracotta (#C85A3C) + Sand (#E8D5C0)
   ============================================ */

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

:root {
    --terracotta: #C85A3C;
    --terracotta-dark: #A84630;
    --terracotta-light: #E8A87C;
    --sand: #E8D5C0;
    --sand-light: #F5EDE3;
    --sand-dark: #C4A882;
    --cream: #FDF8F3;
    --charcoal: #2A2420;
    --charcoal-light: #4A403A;
    --white: #FFFFFF;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(42, 36, 32, 0.08);
    --shadow-md: 0 8px 30px rgba(42, 36, 32, 0.12);
    --shadow-lg: 0 20px 60px rgba(42, 36, 32, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 90, 60, 0.1);
    transition: box-shadow 0.3s ease;
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.nav-logo:hover {
    color: var(--terracotta);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--charcoal-light);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--terracotta) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--terracotta-dark) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 36, 32, 0.92) 0%,
        rgba(42, 36, 32, 0.75) 50%,
        rgba(200, 90, 60, 0.4) 100%
    );
}

.hero-geo {
    position: absolute;
    z-index: 2;
    opacity: 0.15;
}

.hero-geo--tl {
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: var(--terracotta);
    border-radius: 50%;
}

.hero-geo--br {
    bottom: -120px;
    right: -60px;
    width: 500px;
    height: 500px;
    background: var(--sand);
    border-radius: 50%;
}

.hero-geo--accent {
    top: 20%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: var(--terracotta-light);
    transform: rotate(45deg);
    opacity: 0.25;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 168, 124, 0.15);
    border: 1px solid rgba(232, 168, 124, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--terracotta-light);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-headline-accent {
    color: var(--terracotta-light);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

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

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 90, 60, 0.35);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Marquee --- */
.marquee {
    background: var(--terracotta);
    overflow: hidden;
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Base --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

/* --- Inventory --- */
.inventory {
    background: var(--cream);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.inv-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.inv-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.inv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inv-card:hover .inv-card-img img {
    transform: scale(1.05);
}

.inv-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inv-card-body {
    padding: 24px;
}

.inv-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.inv-card-body p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.inv-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--terracotta);
    transition: color 0.2s ease;
}

.inv-card-link:hover {
    color: var(--terracotta-dark);
}

.inventory-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: center;
}

.inventory-cta p {
    font-size: 1rem;
    color: var(--charcoal-light);
}

/* --- Why Us --- */
.why-us {
    background: var(--sand-light);
    overflow: hidden;
}

.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-us-visual {
    position: relative;
}

.why-us-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-us-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--terracotta);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.why-us-content {
    max-width: 520px;
}

.why-us-content .section-title {
    text-align: left;
}

.why-us-content .section-sub {
    text-align: left;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-card {
    display: flex;
    gap: 14px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(200, 90, 60, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    line-height: 1.5;
}

/* --- Process --- */
.process {
    background: var(--charcoal);
    color: var(--white);
}

.process .section-tag {
    color: var(--terracotta-light);
}

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

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.07);
}

.process-step-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.process-step-geo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--terracotta);
    transform: rotate(45deg);
    opacity: 0.2;
    border-radius: 4px;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.process-step-line {
    display: none;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--sand);
    overflow: hidden;
    position: relative;
}

.testimonials-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.testimonials-shape {
    position: absolute;
    border-radius: 50%;
}

.testimonials-shape--1 {
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: var(--terracotta);
    opacity: 0.08;
}

.testimonials-shape--2 {
    bottom: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: var(--terracotta-light);
    opacity: 0.12;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-stars {
    font-size: 1.1rem;
    color: var(--terracotta);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

/* --- Contact --- */
.contact {
    background: var(--cream);
}

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

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-sub {
    text-align: left;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(200, 90, 60, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--terracotta);
    text-decoration: underline;
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--sand);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--cream);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 90, 60, 0.1);
}

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

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

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

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}

/* --- Map --- */
.map-section {
    border-top: 4px solid var(--terracotta);
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone,
.footer-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--terracotta-light);
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .why-us-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-us-content {
        max-width: 100%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 243, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(200, 90, 60, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 32px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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