/*
Theme Name: Rock Oil
Description: A modern Elementor-compatible theme for Rock Oil NV - Truly Your One Stop Energy Hub. Features full theme builder support for custom headers and footers.
Version: 1.0.1
Author: Rock Oil NV
Text Domain: rock-oil
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Tags: elementor, one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-red: #ed1c24;
    --dark-red: #c41e3a;
    --light-red: #ff4757;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --font-primary: 'Rajdhani', sans-serif;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

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

/* WordPress Core Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Elementor Compatibility */
.elementor-page .site-header,
.elementor-page .site-footer {
    position: relative;
    z-index: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--primary-red);
    color: var(--white);
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.3);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Scroll to Top Button Animation */
@keyframes scrollToTopBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.scroll-to-top.show {
    animation: scrollToTopBounce 0.6s ease-out;
}

/* Scroll to Top Button Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Scroll to Top Button Loading State */
.scroll-to-top.loading {
    pointer-events: none;
}

.scroll-to-top.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to Top Button Success State */
.scroll-to-top.success {
    background: #28a745;
}

.scroll-to-top.success i {
    transform: scale(1.2);
}

/* Scroll to Top Button Touch State */
.scroll-to-top.touch-active {
    transform: scale(0.95);
    background: var(--dark-red);
}

/* Scroll to Top Button Bounce Animation */
.scroll-to-top.bounce {
    animation: scrollToTopBounce 0.6s ease-out;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .scroll-to-top {
        border: 2px solid var(--white);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top i {
        transition: none;
    }
    
    .scroll-to-top:hover i {
        transform: none;
    }
    
    .scroll-to-top.touch-active {
        transform: none;
    }
    
    @keyframes scrollToTopBounce {
        0%, 100% {
            transform: translateY(0);
        }
    }
    
    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
}

/* ===================================
   Font Awesome Utility Classes
   =================================== */

/* Icon Text Layout */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.icon-text-label {
    font-weight: inherit;
}

/* Icon with Background */
.icon-with-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    transition: all 0.3s ease;
}

.icon-with-bg:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

/* Icon with Border */
.icon-with-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

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

/* Icon Sizes */
.icon-sm {
    font-size: 0.875em;
}

.icon-md {
    font-size: 1.25em;
}

.icon-lg {
    font-size: 1.5em;
}

.icon-xl {
    font-size: 2em;
}

/* Icon Colors */
.icon-primary {
    color: var(--primary-red);
}

.icon-secondary {
    color: var(--dark-red);
}

.icon-success {
    color: #28a745;
}

.icon-info {
    color: #17a2b8;
}

.icon-warning {
    color: #ffc107;
}

.icon-danger {
    color: #dc3545;
}

.icon-light {
    color: var(--gray-light);
}

.icon-dark {
    color: var(--gray-dark);
}

/* Icon Animations */
.icon-bounce {
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.icon-pulse {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.icon-shake {
    animation: iconShake 0.5s ease-in-out;
}

@keyframes iconShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Icon Lists */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.5em;
}

.icon-list li i {
    width: 1.25em;
    text-align: center;
    color: var(--primary-red);
}

/* Icon Buttons */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-button:hover {
    background: var(--dark-red);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.icon-button-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.icon-button-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1em;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: var(--gray-medium);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons li a:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.social-icons .fa-facebook-f:hover {
    background: #1877f2;
}

.social-icons .fa-twitter:hover {
    background: #1da1f2;
}

.social-icons .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons .fa-linkedin-in:hover {
    background: #0077b5;
}

.social-icons .fa-youtube:hover {
    background: #ff0000;
}

.social-icons .fa-whatsapp:hover {
    background: #25d366;
}

/* Icon Cards */
.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2em;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.icon-card i {
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 1em;
}

.icon-card h3 {
    margin: 0 0 0.5em 0;
    color: var(--gray-dark);
}

.icon-card p {
    margin: 0;
    color: var(--gray-medium);
}

/* Responsive Icon Adjustments */
@media (max-width: 768px) {
    .icon-text {
        flex-direction: column;
        text-align: center;
        gap: 0.25em;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .icon-card {
        padding: 1.5em;
    }
    
    .icon-card i {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .icon-button {
        padding: 0.5em 1em;
        font-size: 0.9em;
    }
    
    .social-icons li a {
        width: 2em;
        height: 2em;
    }
    
    .icon-card {
        padding: 1em;
    }
    
    .icon-card i {
        font-size: 2em;
    }
}