/*
   INDOFACT HIGH-FIDELITY INDUSTRIAL DESIGN
   Theme: Indofact - Industry & Factory
   Author: Antigravity AI
*/

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

:root {
    --primary: #ff5e14;
    --primary-alt: #e14e0d;
    --dark: #1a1a1b;
    --dark-alt: #111111;
    --navy: #0e2136;
    --gold: #ffcc13;
    --grey: #f4f4f4;
    --text: #555555;
    --headings: #1a1a1b;
    --white: #ffffff;
    --border: #e2e2e2;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Force light theme - override Dark Reader (only for public pages, not admin) */
/* Admin pages use their own theme system via admin-theme.css */
body.public-page {
    background: #ffffff;
}

@media (prefers-color-scheme: dark) {
    body.public-page {
        color-scheme: light;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.7;
}

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

body.public-page {
    background: #ffffff;
}

/* Admin pages use their own styles */
body.admin-body,
html.admin-html {
    background: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

ul {
    list-style: none;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--dark-alt);
    padding: 10px 0;
    font-size: 13px;
    color: #bbb;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    color: var(--primary);
    margin-right: 8px;
}

.top-bar-right a {
    color: #bbb;
    margin-left: 20px;
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* --- HEADER --- */
header {
    background: var(--navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

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

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
}

.header-cta {
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--dark);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/types-of-electrical-wires-and-cables.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.hero-btns {
    margin-top: 30px;
}

.btn {
    padding: 15px 40px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--dark);
}

/* --- SECTIONS --- */
section {
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--primary);
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    border-bottom: 5px solid var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

/* --- ABOUT SECTION --- */
.about-box {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--primary);
}

/* --- PRICING SECTION --- */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border: 2px solid var(--primary);
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.price-tag span {
    font-size: 18px;
    color: var(--text);
}

.price-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.price-list li i {
    color: var(--primary);
    margin-right: 10px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--dark);
    color: var(--white);
}

.contact-section h2 {
    color: var(--white);
}

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

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #252526;
    border: none;
    color: #fff;
    font-family: inherit;
}

.contact-form .cf-turnstile {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background: var(--dark-alt);
    color: #888;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    padding: 0;
}

.footer-col a {
    color: #bbb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-col a:hover::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    text-decoration: none;
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-contact-item span {
    color: #bbb;
    font-size: 15px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 14px;
}


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

/* --- INNER PAGES --- */
.page-hero {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/types-of-electrical-wires-and-cables.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
}

.content-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.content-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--headings);
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* --- ADVANCED CAROUSEL (EV-SLIDER) --- */
.ev-slider-section {
    padding: 0;
    /* Full width option */
    background: #000;
}

.ev-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    /* Default height */
    overflow: hidden;
}

.ev-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ev-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-slide-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ev-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.ev-slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.ev-slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.ev-slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Arrows */
.ev-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.ev-slider-arrow:hover {
    background: var(--primary);
}

.ev-slider-arrow.prev {
    left: 20px;
}

.ev-slider-arrow.next {
    right: 20px;
}

/* Dots */
.ev-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.ev-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.ev-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 6px;
}

/* Editor Specifics */
.admin-mode .ev-slide-content {
    background: rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {

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

    .about-box {
        flex-direction: column;
        gap: 40px;
    }

    .about-img img {
        box-shadow: 15px 15px 0 var(--primary);
    }
}

@media (max-width: 767px) {
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-left span {
        margin: 0 5px;
        display: inline-block;
    }

    .top-bar-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .top-bar-right a {
        margin: 0 10px;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .section-title h2 {
        font-size: clamp(22px, 7vw, 28px);
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .services-grid,
    .footer-grid,
    .pricing-row,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: clamp(24px, 8vw, 36px);
        line-height: 1.2;
        text-align: center;
        letter-spacing: -0.02em;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .page-hero h1 {
        font-size: clamp(20px, 6.5vw, 30px);
        padding: 0 15px;
        text-align: center;
        letter-spacing: -0.02em;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        width: 100%;
        line-height: 1.2;
    }

    .page-hero .container {
        padding: 0 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 18px;
    }

    .header-cta {
        display: none;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 90px 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        display: block !important;
    }

    header nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li a {
        font-size: 18px;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-cta-mobile {
        display: block !important;
        margin-top: 30px;
        background: var(--primary);
        color: var(--white) !important;
        padding: 16px;
        text-align: center;
        font-weight: 800;
        text-transform: uppercase;
        border-radius: 4px;
    }

    .price-card {
        padding: 30px 20px;
    }

    .pricing-row {
        gap: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 14px;
    }

    .about-text {
        text-align: center;
    }

    .about-text .section-title {
        text-align: center !important;
    }

    .about-text .section-title h2 {
        text-align: center !important;
    }

    .about-img img {
        box-shadow: 10px 10px 0 var(--primary);
    }

    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col h4 {
        width: 100%;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col p {
        text-align: center;
        max-width: 400px;
    }

    .footer-col ul {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-col ul li {
        text-align: center;
        margin-bottom: 12px;
    }

    .footer-col ul li a {
        display: inline-flex;
        justify-content: center;
        text-align: center;
    }

    .footer-col a:hover {
        transform: none;
    }

    .footer-col a:hover::before {
        display: none;
    }

    .footer-contact-item {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 220px !important;
        max-width: 100% !important;
        margin: 0 auto 14px auto !important;
        text-align: left !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .footer-contact-item i {
        margin-top: 3px !important;
        flex-shrink: 0 !important;
        width: 18px !important;
        min-width: 18px !important;
        text-align: center !important;
        color: var(--primary) !important;
        font-size: 16px !important;
    }

    .footer-contact-item span {
        flex: 1 !important;
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        color: #bbb !important;
    }
}

@media (hover: none) {
    .service-item:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
        filter: brightness(0.9);
    }
}