/*
 * Farmen Oto Elektronik — Premium Light Theme Stylesheet
 * Red accent on a clean white/light-gray canvas
 */

:root {
    --primary: #E30B21;
    --primary-hover: #b30819;
    --bg-main: #ffffff;
    --bg-alt: #f5f6f8;
    --bg-dark: #1a1a22;
    /* footer only */
    --card-bg: #ffffff;
    --text-dark: #111117;
    --text-body: #4a4a5a;
    --text-muted: #7a7a8c;
    --border: #e4e4ec;
    --whatsapp: #25D366;
    --whatsapp-hover: #1faa55;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, .1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .13);
    --radius: 10px;
    --transition: all .3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    overflow-x: hidden;
    line-height: 1.7;
}

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

a:hover,
a:focus {
    color: var(--primary-hover);
    text-decoration: none;
    outline: none;
}

p {
    color: var(--text-body);
    margin-bottom: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

img {
    border-radius: var(--radius);
    transition: transform .4s ease;
    box-shadow: var(--shadow-md);
}

img:hover {
    transform: scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/***  Back to Top  ***/
.back-to-top {
    position: fixed;
    display: none;
    background: var(--primary);
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 44px;
    font-size: 18px;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(227, 11, 33, .35);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top i {
    color: #fff;
}

.back-to-top:hover {
    background: var(--text-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.back-to-top:hover i {
    color: #fff;
}


/***  Navigation  ***/
#nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 12px 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    z-index: 999;
}

#nav.nav-sticky {
    height: 68px;
    padding: 8px 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-sm);
}

#nav .navbar {
    padding: 0;
    background: transparent !important;
}

#nav .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark) !important;
    letter-spacing: -.5px;
}

#nav .navbar-brand span {
    color: var(--primary);
}

#nav .nav-link {
    color: var(--text-body) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: var(--transition);
}

#nav .nav-link:hover,
#nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(227, 11, 33, .07);
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler-icon {
    filter: invert(0);
}

@media (max-width: 768px) {
    #nav {
        background: rgba(255, 255, 255, .98) !important;
    }

    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        margin-top: 12px;
        box-shadow: var(--shadow-md);
    }
}


/***  Hero / Header  ***/
.header {
    position: relative;
    padding: 210px 0 130px;
    text-align: center;
    background:
        linear-gradient(175deg, #fff 0%, #f5f6f8 55%, #ffe8ea 100%),
        url(../img/header.jpg) no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Subtle diagonal stripe overlay */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg,
            rgba(227, 11, 33, .025) 0px,
            rgba(227, 11, 33, .025) 1px,
            transparent 1px,
            transparent 40px);
    pointer-events: none;
}

/* Red left accent bar */
.header::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.header h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.header h1 span {
    color: var(--primary);
}

.header p {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-body);
    max-width: 680px;
    margin: 0 auto 40px;
}

.header .btn {
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    margin: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .3s cubic-bezier(.165, .84, .44, 1);
    border: none;
}

.header .btn-call {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(227, 11, 33, .3);
}

.header .btn-call:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(227, 11, 33, .45);
}

.header .btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .25);
}

.header .btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, .4);
}

@media (max-width: 767.98px) {
    .header {
        padding: 150px 0 90px;
    }

    .header h1 {
        font-size: 38px;
        letter-spacing: -.5px;
    }

    .header p {
        font-size: 17px;
    }

    .header .btn {
        width: 90%;
        justify-content: center;
        margin: 6px auto;
        display: flex;
    }
}


/***  Section Header (shared)  ***/
.section-header {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-header h4 {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.5px;
    position: relative;
    padding-bottom: 14px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 28px;
    }
}


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

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

.about .about-img img {
    width: 100%;
    display: block;
    box-shadow: none;
}

.about .about-content {
    margin-bottom: 28px;
}

.about .about-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about .about-content h3::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.about .about-content p {
    color: var(--text-body);
    font-size: 15.5px;
}

@media (max-width: 767.98px) {
    .about {
        padding: 60px 0;
    }

    .about .about-img {
        margin-bottom: 36px;
    }
}


/***  Services  ***/
.service {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service .row {
    margin-bottom: 70px;
}

.service .row:last-child {
    margin-bottom: 0;
}

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

.service .service-img img {
    width: 100%;
    display: block;
    box-shadow: none;
}

.service .service-detail {
    padding: 12px 0;
}

.service .service-detail h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.service .service-detail h3 i {
    color: var(--primary);
    font-size: 24px;
}

.service .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    color: var(--text-body);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service .list-group-item:last-child {
    border-bottom: none;
}

.service .list-group-item i.fa-check-circle {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 767.98px) {
    .service {
        padding: 60px 0;
    }

    .service .row {
        margin-bottom: 50px;
    }

    .service .service-img {
        margin-bottom: 24px;
    }

    .service .service-detail h3 {
        font-size: 20px;
    }
}


/***  FAQ Section  ***/
.faq-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #d0d0dc;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
    gap: 12px;
}

.faq-question:hover {
    background: #fafafa;
    color: var(--primary);
}

.faq-question[aria-expanded="true"],
.faq-question:not(.collapsed) {
    color: var(--primary);
    background: #fff9f9;
}

.faq-question i {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--primary);
    transition: transform .3s ease;
}

.faq-question[aria-expanded="true"] i,
.faq-question:not(.collapsed) i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    background: #fff9f9;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    padding: 18px 0;
    margin: 0;
    font-size: 15px;
    color: var(--text-body);
}

@media (max-width: 767.98px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 18px;
    }
}


/***  Call To Action  ***/
.call-to-action {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 60%, #f5f6f8 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle red radial glow */
.call-to-action::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 11, 33, .06) 0%, transparent 70%);
    pointer-events: none;
}

.call-to-action .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.call-to-action .section-header h2 {
    color: var(--text-dark);
}

.call-to-action p {
    color: var(--text-body);
    font-size: 17px;
}

/* Override: p inside call-to-action isn't white anymore */
.call-to-action p.text-white {
    color: var(--text-body) !important;
}

.call-to-action .btn {
    padding: 16px 36px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(227, 11, 33, .3);
    transition: var(--transition);
}

.call-to-action .btn:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(227, 11, 33, .45);
}


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

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 0;
}

.contact-item {
    transition: var(--transition);
}

.icon-container {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
}

.contact-item:hover .icon-container {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(227, 11, 33, .3);
}

.contact-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-body);
}

.map-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .contact {
        padding: 60px 0;
    }
}


/***  Footer  ***/
.footer {
    background: var(--bg-dark);
    border-top: 3px solid var(--primary);
    padding-top: 60px;
}

.footer h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

.footer p {
    color: rgba(255, 255, 255, .65);
    font-size: 14.5px;
}

.footer .footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-left: 8px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(227, 11, 33, .35);
}

.footer .footer-bottom {
    padding: 28px 0;
}

.footer .copyright {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .45);
    text-align: center;
}

.footer .copyright a {
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
}

.footer .copyright a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
    }

    .footer h2 {
        font-size: 22px;
    }

    .footer .social-links {
        margin-top: 16px;
    }
}