/*
Theme Name: Raj Electrical Solutions - Pro Edition
Theme URI: https://rajelectricalsolutions.in
Author: Ravi Raj
Description: Clean, readable, custom WordPress theme for Raj Electrical Solutions with larger typography, WhatsApp booking, Visiting Rate Card, Warranty Terms, Customer Reviews, and Our Partners section.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: res-theme
*/

:root {
    --res-primary: #0f3d5e;
    --res-secondary: #1e6f9f;
    --res-accent: #f59e0b;
    --res-snow: #f8fafc;
    --res-dark: #0b2234;
    --res-text: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--res-text);
    background-color: var(--res-snow);
    font-size: 17px;
    line-height: 1.65;
}
a { text-decoration: none; color: inherit; }

/* Header & Navigation */
.res-header {
    background: rgba(11, 34, 52, 0.98);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.res-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}
.res-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 14px;
}
.res-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.res-brand-title {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
}
.res-brand-sub {
    font-size: 13px;
    color: #93c5fd;
    display: block;
}
.res-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.res-nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    transition: color 0.2s;
}
.res-nav-links a:hover { color: var(--res-accent); }
.res-btn-call {
    background: var(--res-accent);
    color: #0b2234 !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Clean Hero Section (Mountain graphic removed) */
.res-hero {
    position: relative;
    background: linear-gradient(135deg, #09263d 0%, var(--res-primary) 55%, #165985 100%);
    color: #fff;
    padding: 85px 0 85px 0;
    text-align: center;
}
.res-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
}
.res-hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
}
.res-badge {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.32);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}
.res-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.res-hero p {
    font-size: 19px;
    color: #e0f2fe;
    margin-bottom: 32px;
    line-height: 1.65;
}
.res-hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.res-btn-primary {
    background: var(--res-accent);
    color: #0b2234;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s;
}
.res-btn-whatsapp {
    background: #16a34a;
    color: #fff;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
    transition: transform 0.2s;
}
.res-btn-primary:hover, .res-btn-whatsapp:hover { transform: translateY(-2px); }

/* Sections */
.res-section { padding: 70px 0; }
.res-sec-header { text-align: center; max-width: 760px; margin: 0 auto 44px auto; }
.res-sec-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--res-dark);
    margin-bottom: 12px;
}
.res-sec-header p { color: #475569; font-size: 17px; }

/* Services Grid */
.res-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
@media (max-width: 900px) { .res-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .res-grid-3 { grid-template-columns: 1fr; } }

.res-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 61, 94, 0.06);
    transition: transform 0.25s ease;
}
.res-service-card:hover { transform: translateY(-5px); }
.res-service-icon {
    width: 54px;
    height: 54px;
    background: #e0f2fe;
    color: var(--res-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}
.res-service-card h3 { font-size: 21px; margin-bottom: 10px; color: var(--res-dark); }
.res-service-card p { font-size: 16px; color: #475569; }

/* Visiting Rate Card & Warranty Split Grid */
.res-rates-warranty-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 850px) { .res-rates-warranty-grid { grid-template-columns: 1fr; } }

.res-card-panel {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 61, 94, 0.06);
}
.res-rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.res-rate-table th, .res-rate-table td {
    padding: 14px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}
.res-rate-table th {
    background: #f1f5f9;
    color: var(--res-dark);
    font-weight: 700;
}
.res-rate-badge {
    background: #e0f2fe;
    color: var(--res-primary);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    font-size: 15px;
}
.res-warranty-panel {
    background: linear-gradient(160deg, #0f3d5e 0%, #0b2234 100%);
    color: #fff;
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.res-warranty-list {
    list-style: none;
    margin: 18px 0;
}
.res-warranty-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 16px;
    color: #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.res-warranty-list li:last-child { border-bottom: none; }

/* Customer Reviews Cards */
.res-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 61, 94, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.res-stars {
    color: #f59e0b;
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.res-review-text {
    font-size: 16px;
    color: #334155;
    font-style: italic;
    margin-bottom: 18px;
}
.res-reviewer-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--res-dark);
}
.res-reviewer-loc {
    font-size: 14px;
    color: #64748b;
}

/* Booking Section */
.res-booking-box {
    background: linear-gradient(135deg, #0b2234 0%, #134e75 100%);
    color: #fff;
    border-radius: 16px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(11, 34, 52, 0.2);
}
@media (max-width: 850px) { .res-booking-box { grid-template-columns: 1fr; padding: 28px; } }

.res-form-group { margin-bottom: 16px; }
.res-form-group label { display: block; font-size: 15px; margin-bottom: 6px; color: #bae6fd; font-weight: 600; }
.res-form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    font-size: 16px;
}
.res-submit-btn {
    width: 100%;
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
.res-submit-btn:hover { background: #16a34a; }

/* Our Partners Section */
.res-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.res-partner-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.res-partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--res-secondary);
}
.res-partner-logo {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 14px auto;
    display: block;
}
.res-partner-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.res-partner-card h3 {
    font-size: 20px;
    color: var(--res-dark);
    margin-bottom: 6px;
}
.res-partner-card p {
    font-size: 15px;
    color: #475569;
}

/* Footer */
.res-footer {
    background: #071927;
    color: #cbd5e1;
    padding: 50px 0 30px 0;
}
.res-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) { .res-footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp Button */
.res-float-wa {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    color: #fff;
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}
