/*
Theme Name: SVL Energy
Theme URI: 
Author: Bash
Author URI: 
Description: A premium, custom-built WordPress theme for SVL - Energy for a Better Tomorrow. Features a modern design tailored for the LPG industry with specialized post types and templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svl-energy
*/

/* ==========================================================================
   1. GLOBAL VARIABLES (BRANDING & LAYOUT)
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #D32F2F;      /* Vibrant Fire Red (Action button, accents) */
    --color-primary-hover: #B71C1C;
    --color-secondary: #0D47A1;    /* Deep Trust Blue (Headers, footers, structural) */
    --color-secondary-light: #1565C0;
    
    /* Neutral Palette */
    --color-dark: #1F2937;         /* Very dark slate for intense contrast */
    --color-text: #4B5563;         /* Comfortable dark gray for reading */
    --color-text-light: #9CA3AF;
    --color-background: #FFFFFF;
    --color-surface-light: #F9FAFB; /* Off-white for section backgrounds */
    
    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

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

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

/* ==========================================================================
   4. LAYOUT & GRID
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background-color: var(--color-surface-light);
}

.section-dark {
    background-color: var(--color-secondary);
    color: white;
}

.section-dark h2, 
.section-dark h3, 
.section-dark p {
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   5. COMPONENTS : BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(211, 47, 47, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

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

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: -1px;
}

.site-logo span {
    color: var(--color-primary); /* The Fire part */
}

.site-slogan {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
}

@media (min-width: 768px) {
    .site-slogan { display: block; }
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background-color: var(--color-dark);
    color: white;
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Overlay for potential background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(31, 41, 55, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ==========================================================================
   8. SERVICES CARDS
   ========================================================================== */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-text-light);
    flex-grow: 1;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0a192f; /* Very dark blue */
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-widget-area {
    margin-bottom: var(--spacing-lg);
}

.footer-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

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

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
}

.footer-widget a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   10. PREMIUM AESTHETICS & MICRO-ANIMATIONS
   ========================================================================== */

/* Fade-in up animation for cards and sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .station-card, .team-member, .info-block, .vision-box, .mission-box {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Add slight delay to siblings for cascading entry effect */
.grid-2 > *:nth-child(2) { animation-delay: 0.1s; }
.grid-3 > *:nth-child(2) { animation-delay: 0.1s; }
.grid-3 > *:nth-child(3) { animation-delay: 0.2s; }
.grid-4 > *:nth-child(2) { animation-delay: 0.1s; }
.grid-4 > *:nth-child(3) { animation-delay: 0.2s; }
.grid-4 > *:nth-child(4) { animation-delay: 0.3s; }

/* Dynamic Hero Section */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    background: linear-gradient(-45deg, rgba(13, 71, 161, 0.9), rgba(31, 41, 55, 0.9), rgba(211, 47, 47, 0.8), rgba(0, 0, 0, 0.9));
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
}

/* Glassmorphism for About Snapshot Image block and similar placeholder elements */
.about-image, .service-image, .member-photo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.about-image:hover, .service-image:hover, .member-photo:hover {
    transform: scale(1.02);
}

/* Smooth Input Focus State */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

/* CTA Section interactive hover */
.section-dark.cta {
    position: relative;
    overflow: hidden;
}

.section-dark.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.section-dark.cta:hover::after {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   11. FORM PLUGIN OVERRIDES (CF7 & WPForms)
   ========================================================================== */
.custom-form-wrapper .wpcf7-form input:not([type="submit"]),
.custom-form-wrapper .wpcf7-form textarea,
.custom-form-wrapper .wpforms-form input:not([type="submit"]),
.custom-form-wrapper .wpforms-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    color: var(--color-dark);
}

.custom-form-wrapper .wpcf7-form input:focus,
.custom-form-wrapper .wpcf7-form textarea:focus,
.custom-form-wrapper .wpforms-form input:focus,
.custom-form-wrapper .wpforms-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.custom-form-wrapper .wpcf7-form input[type="submit"],
.custom-form-wrapper .wpforms-form button[type="submit"] {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-form-wrapper .wpcf7-form input[type="submit"]:hover,
.custom-form-wrapper .wpforms-form button[type="submit"]:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
