/*
Theme Name: Saud Al-Hadbah Law Firm
Theme URI: https://saudgroup.net/
Author: Saud Al-Hadbah Law Firm
Description: Custom Bilingual (RTL/LTR) WordPress Theme with Native Gutenberg Block Support, Customizer, and Consultation Database/Email System.
Version: 2.3.0
Text Domain: saudgroup
*/

:root {
    --logo-gold: #d4a017;
    --logo-gold-hover: #b58610;
    --logo-green: #00843d;
    --logo-green-dark: #006830;
    --sg-dark: #111820;
    --sg-dark-card: #1a2430;
    --sg-bg-warm: #f9f8f6;
    --sg-border: #e6e4df;
    --sg-text-main: #2c353d;
    --sg-text-muted: #6c757d;
}

body.rtl-mode {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

body.ltr-mode {
    font-family: 'Plus Jakarta Sans', sans-serif;
    direction: ltr;
    text-align: left;
}

body {
    color: var(--sg-text-main);
    background-color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
}

.entry-content > .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Top Meta Bar */
.top-bar {
    background-color: var(--sg-dark);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 9px 0;
    border-bottom: 2px solid var(--logo-gold);
}
.top-bar i { color: var(--logo-gold); }
.top-bar a {
    color: var(--logo-gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.top-bar a:hover { color: #ffffff; }

/* Language Switcher Button */
.btn-lang {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    background-color: transparent;
    color: var(--sg-dark);
    border: 2px solid var(--logo-green);
    font-weight: 700;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    font-size: 0.92rem;
}
.btn-lang i { color: var(--logo-green); transition: color 0.25s ease; }
.btn-lang:hover { background-color: var(--logo-green); color: #ffffff; }
.btn-lang:hover i { color: #ffffff; }

/* Main Header / Navbar */
.navbar-custom {
    background-color: #ffffff;
    padding: 14px 0;
    border-bottom: 3px solid var(--logo-green);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.navbar-brand { padding: 0; margin: 0; }
.brand-logo {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}
.nav-link {
    color: var(--sg-dark) !important;
    font-weight: 700;
    font-size: 0.96rem;
    margin: 0 10px;
    transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--logo-green) !important; }
.btn-gold {
    background-color: var(--logo-gold);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 22px;
    border: 1px solid var(--logo-gold);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-gold:hover {
    background-color: var(--logo-green);
    border-color: var(--logo-green);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Gutenberg Section & Card Utilities */
.saud-hero-bg {
    background: linear-gradient(180deg, rgba(17, 24, 32, 0.88) 0%, rgba(26, 36, 48, 0.94) 100%),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
    border-bottom: 4px solid var(--logo-gold);
}
.saud-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-top: 3px solid var(--logo-gold) !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
}
.saud-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--logo-green) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.saud-pillar-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-bottom: 3px solid var(--logo-green) !important;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* Consultation Booking Form Section */
.consultation-section {
    background-color: var(--logo-green);
    color: #ffffff;
    padding: 80px 0 110px;
    position: relative;
}
.consultation-title {
    color: var(--logo-gold);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.consult-form-wrap { max-width: 760px; margin: 0 auto; }
.consult-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ffffff;
}
.consult-input {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    padding: 13px 16px;
    font-size: 1rem;
    color: #222;
    margin-bottom: 22px;
    transition: border-color 0.2s;
}
.consult-input:focus { outline: none; border-color: var(--logo-gold); }
.btn-consult-submit {
    background-color: #ffffff;
    color: var(--sg-dark);
    font-weight: 800;
    padding: 12px 48px;
    border: 2px solid var(--sg-dark);
    border-radius: 2px;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn-consult-submit:hover {
    background-color: var(--logo-gold);
    border-color: var(--logo-gold);
    color: #ffffff;
}
.angled-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.angled-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 55px;
}
.angled-divider .shape-fill { fill: #ffffff; }

/* Footer & Contact */
.footer-section {
    background-color: var(--sg-dark);
    color: #cbd5e1;
    padding: 75px 0 30px;
    border-top: 4px solid var(--logo-gold);
}
.footer-logo-box {
    background: #ffffff;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--logo-green);
}
.footer-logo { height: 50px; width: auto; display: block; }
.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 22px;
    font-size: 1.2rem;
}
body.rtl-mode .footer-title { border-right: 3px solid var(--logo-gold); padding-right: 12px; }
body.ltr-mode .footer-title { border-left: 3px solid var(--logo-gold); padding-left: 12px; }
.hours-list { list-style: none; padding: 0; }
.hours-list li {
    padding: 9px 0;
    border-bottom: 1px dashed rgba(212, 160, 23, 0.25);
    display: flex;
    justify-content: space-between;
}
.footer-link { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--logo-gold); }
.gold-accent { color: var(--logo-gold); }

/* Common Layout & Utility Classes */
.section-padding { padding: 90px 0; }
.bg-warm { background-color: var(--sg-bg-warm); }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sg-dark);
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--sg-text-muted);
    max-width: 750px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(17, 24, 32, 0.88) 0%, rgba(26, 36, 48, 0.94) 100%),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0 105px;
    text-align: center;
    border-bottom: 4px solid var(--logo-gold);
}
.hero-badge {
    display: inline-block;
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid var(--logo-gold);
    color: var(--logo-gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-title {
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}
.hero-quote {
    max-width: 850px;
    margin: 0 auto 25px;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #f1f5f9;
}
.hero-ayah {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--logo-gold);
    font-weight: 700;
    font-size: 1.9rem;
    display: block;
    margin-top: 15px;
}
body.rtl-mode .hero-ayah {
    font-family: 'Amiri', serif;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-top: 3px solid var(--logo-gold);
    border-radius: 4px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--logo-green);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.service-icon {
    width: 66px;
    height: 66px;
    background-color: rgba(212, 160, 23, 0.12);
    color: var(--logo-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 22px;
    border: 2px solid var(--logo-gold);
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background-color: var(--logo-green);
    border-color: var(--logo-green);
    color: #ffffff;
}

/* About Section */
.about-section {
    background-color: var(--sg-dark);
    color: #ffffff;
    border-top: 3px solid var(--logo-gold);
    border-bottom: 3px solid var(--logo-green);
}
.quote-box {
    background-color: var(--sg-dark-card);
    border-left: 4px solid var(--logo-gold);
    padding: 26px;
    border-radius: 4px;
    line-height: 1.85;
    margin: 26px 0;
    color: #e2e8f0;
    font-size: 1rem;
    font-style: italic;
}
body.rtl-mode .quote-box {
    border-left: none;
    border-right: 4px solid var(--logo-gold);
}
.about-feature-card {
    background-color: var(--sg-dark-card);
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: 6px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}
.about-feature-card:hover {
    transform: translateX(6px);
    border-color: var(--logo-gold);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.15);
    background-color: rgba(26, 36, 48, 0.95);
}
body.rtl-mode .about-feature-card:hover {
    transform: translateX(-6px);
}
.about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: rgba(212, 160, 23, 0.12);
    border: 1px solid var(--logo-gold);
    color: var(--logo-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.about-feature-card:hover .about-feature-icon {
    background-color: var(--logo-green);
    border-color: var(--logo-green);
    color: #ffffff;
}

/* Team Stats & Bio Cards */
.stat-pillar {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-bottom: 3px solid var(--logo-green);
    border-radius: 6px;
    padding: 28px 24px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--logo-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.founder-card {
    background: linear-gradient(135deg, var(--sg-dark) 0%, var(--sg-dark-card) 100%);
    color: #ffffff;
    border-radius: 8px;
    border-left: 5px solid var(--logo-gold);
    padding: 40px 36px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
body.rtl-mode .founder-card {
    border-left: none;
    border-right: 5px solid var(--logo-gold);
}
.founder-avatar {
    width: 85px;
    height: 85px;
    background: rgba(212, 160, 23, 0.15);
    border: 2px solid var(--logo-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--logo-gold);
}
.founder-avatar-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--logo-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: block;
}
.founder-role {
    display: block;
    font-size: 0.85rem;
    color: var(--logo-gold);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.team-bio-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-top: 3px solid var(--logo-gold);
    border-radius: 6px;
    padding: 28px 26px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.team-bio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-top-color: var(--logo-green);
}
.team-bio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.team-avatar-sm {
    width: 52px;
    height: 52px;
    background: rgba(0, 132, 61, 0.1);
    border: 2px solid var(--logo-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--logo-green);
    flex-shrink: 0;
    overflow: hidden;
}
.team-photo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.team-bio-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--sg-dark);
}
.team-bio-card span {
    font-size: 0.85rem;
    color: var(--logo-gold);
    font-weight: 600;
    display: block;
}
.team-bio-card p {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.75;
    margin: 0;
}
.badge.bg-gold {
    background-color: var(--logo-gold) !important;
    color: #111820 !important;
    font-weight: 700;
    border-radius: 4px;
}

/* Dynamic Card Types Enhancements */
.team-bio-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.team-bio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.founder-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.founder-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}

