/* 
 * RFS Forklift Service - Main Stylesheet
 * Based on the website design from the images
 */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #2c3e8c;       /* Dark blue */
    --secondary-color: #ffcc00;      /* Yellow */
    --accent-color: #ffdb4d;         /* Light yellow */
    --dark-color: #222;              /* Dark gray/black */
    --light-color: #f5f5f5;          /* Light gray */
    --text-color: #333;              /* Text color */
    --white: #fff;                   /* White */
    --gray: #6c757d;                 /* Gray */
    --light-gray: #e9ecef;           /* Light gray */
    --font-main: 'Roboto', Arial, sans-serif;
    --font-heading: 'Roboto Condensed', Arial, sans-serif;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    width: 180px;
}

.logo img {
    width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--light-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-text {
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== FEATURES SECTION ===== */
.feature-box {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-text {
    color: var(--gray);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    padding: 30px;
}

.about-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text {
    margin-bottom: 20px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-list li:before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light-color);
}

.service-box {
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.service-text {
    color: var(--gray);
    margin-bottom: 15px;
}

/* ===== PRODUCTS SECTION ===== */
.product-box {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.product-box:hover {
    transform: translateY(-5px);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-price {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.product-price del {
    color: var(--gray);
    font-weight: normal;
    font-size: 14px;
    margin-right: 8px;
}

.product-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 18px;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-top {
    margin-bottom: 60px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background-color: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        padding-bottom: 0;
    }
    
    .nav {
        margin-top: 15px;
        width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-item {
        margin: 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-link {
        padding: 15px;
        display: block;
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Hero Section Enhanced Styles */
.hero {
    background: linear-gradient(135deg, #253993 0%, #1e2c5a 100%);
    color: white;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/icons/forklift-bg-pattern.png') repeat;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

/* Enhanced Title Styling */
.hero-title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2) !important;
    letter-spacing: 2px;
    margin-bottom: 25px !important;
    position: relative;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .hero-title {
        color: #ffffff !important;
        -webkit-text-fill-color: initial;
    }
}

/* Add glow effect */
.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 10px;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Subtitle styling */
.hero-subtitle {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    color: #ffcc00 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 35px !important;
    letter-spacing: 1px;
}

/* Hero text styling */
.hero-text {
    font-size: 1.3rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 45px !important;
    max-width: 900px;
}

/* Enhanced button styling */
.hero .btn-primary {
    background: linear-gradient(45deg, #ffcc00, #ffa500) !important;
    color: #253993 !important;
    border: none !important;
    padding: 18px 45px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(255, 204, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero .btn-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 35px rgba(255, 204, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(45deg, #ffd700, #ffb347) !important;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    .hero-subtitle {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.6rem !important;
    }
    
    .hero-text {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    .hero .btn-primary {
        padding: 15px 35px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
    }
    
    .hero-text {
        font-size: 1rem !important;
    }
}