/* ============================================
   CRU-TECH AUTO — Main Stylesheet
   Clean & Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black:   #0d0d0d;
    --white:   #ffffff;
    --grey:    #f4f4f4;
    --mid-grey:#888888;
    --red:     #d62828;
    --red-dark:#a81e1e;
    --text:    #1a1a1a;
    --border:  #e0e0e0;
    --shadow:  0 4px 24px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--black);
}

.logo span {
    color: var(--red);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--black);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    color: var(--text);
}

.nav-links a:hover { background: var(--grey); }
.nav-links a.active { color: var(--red); font-weight: 600; }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.nav-cta {
    margin-top: 8px;
    text-align: center;
    padding: 12px !important;
    border-bottom: none !important;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.btn-dark:hover { background: #333; border-color: #333; }

/* ===== HERO ===== */
.hero {
    min-height: auto;
    background: var(--black);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #0d0d0d 100%);
}

/* Subtle grid overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(214,40,40,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(214,40,40,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-accent {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214,40,40,0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-tag {
    display: inline-block;
    background: rgba(214,40,40,0.15);
    border: 1px solid rgba(214,40,40,0.3);
    color: #e87474;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero h1 span { color: var(--red); }

.hero p {
    font-size: 1.15rem;
    color: #aaaaaa;
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-stat h3 span { color: var(--red); }

.hero-stat p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* ===== SECTION COMMON ===== */
section { padding: 90px 24px; }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(214,40,40,0.08);
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--mid-grey);
    max-width: 540px;
    line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services-section { background: var(--grey); }

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
    flex-wrap: wrap;
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(214,40,40,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

.service-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--red);
    margin-top: 20px;
    transition: gap 0.2s;
}

.service-card:hover .card-arrow { gap: 10px; }

/* ===== WHY US ===== */
.why-us { background: var(--white); }

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

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-num {
    min-width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.why-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

.why-visual {
    background: var(--black);
    border-radius: 16px;
    padding: 48px 40px;
    color: var(--white);
}

.why-visual h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--white);
}

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

.why-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
}

.why-stat h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -1px;
}

.why-stat p {
    font-size: 0.82rem;
    color: #888;
    margin-top: 4px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--black);
    padding: 80px 24px;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    max-width: 500px;
}

.cta-banner h2 span { color: var(--red); }

.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
    background: #0a0a0a;
    color: #aaa;
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #222;
    margin-bottom: 32px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 18px;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: #888;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-bottom a { color: #888; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: var(--black);
    padding: 140px 24px 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.page-hero h1 span { color: var(--red); }

.page-hero p {
    font-size: 1.1rem;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CONTACT FORM ===== */
.contact-section { background: var(--grey); }

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

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--mid-grey);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mid-grey);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin: 0;
}

.contact-form-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

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

.form-submit { width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; }

/* ===== BLOG ===== */
.blog-section { background: var(--white); }

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

.blog-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: var(--white);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-card-img {
    height: 200px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 2.5rem;
    overflow: hidden;
}

.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }

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

.blog-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--mid-grey);
    font-weight: 500;
    margin-bottom: 12px;
    align-items: center;
}

.blog-meta .tag {
    background: rgba(214,40,40,0.08);
    color: var(--red);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--mid-grey);
    line-height: 1.6;
    margin-bottom: 18px;
}

.blog-card .read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.blog-card:hover .read-more { gap: 10px; }

/* ===== ABOUT ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-intro-visual {
    background: var(--black);
    border-radius: 16px;
    padding: 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-intro-visual::before {
    content: 'CRU';
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    letter-spacing: -4px;
}

.about-intro-visual h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-intro-visual p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.7;
}

.about-values {
    background: var(--grey);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.value-card .value-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
    padding: 80px 24px;
    border-bottom: 1px solid var(--border);
}

.service-detail:nth-child(even) { background: var(--grey); }

.service-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner { direction: rtl; }
.service-detail:nth-child(even) .service-detail-inner > * { direction: ltr; }

.service-detail-visual {
    background: var(--black);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.15);
    overflow: hidden;
    position: relative;
}

.service-detail-visual .service-big-icon {
    font-size: 6rem;
    color: rgba(214,40,40,0.2);
}

.service-detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.service-detail p {
    color: var(--mid-grey);
    line-height: 1.75;
    margin-bottom: 28px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
}

.service-feature::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .why-grid,
    .contact-grid,
    .about-intro,
    .service-detail-inner { grid-template-columns: 1fr; gap: 40px; }

    .service-detail:nth-child(even) .service-detail-inner { direction: ltr; }

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

    .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    section { padding: 64px 20px; }

    .cta-inner { flex-direction: column; text-align: center; }

    .form-row { grid-template-columns: 1fr; }

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

    .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero h1 { letter-spacing: -1px; }
    .hero-btns { flex-direction: column; }
    .hero-stats { gap: 24px; }
    .hero-stat h3 { font-size: 1.6rem; }
}
