/*
Theme Name: Divi Child - CAR CFR
Theme URI: https://carcfr.org
Description: Child theme pentru CAR CFR cu design custom
Author: CAR CFR
Template: Divi
Version: 1.0.0
*/

/* ========================================
   CUSTOM CSS VARIABLES
   ======================================== */
:root {
    --color-primary: #1e3a8a;        /* blue-900 */
    --color-primary-light: #3b82f6;  /* blue-600 */
    --color-accent: #dc2626;         /* red-600 */
    --color-yellow: #eab308;         /* yellow-500 */
    --color-yellow-hover: #facc15;   /* yellow-400 */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-white: #ffffff;
}

/* ========================================
   LOGO STYLING
   ======================================== */
#logo {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

.logo_container span {
    color: var(--color-accent) !important;
}

/* ========================================
   STICKY NAVIGATION
   ======================================== */
#main-header {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background: var(--color-white) !important;
}

#et-top-navigation nav > ul > li > a {
    font-weight: 500 !important;
    color: var(--color-gray-700) !important;
    transition: color 0.3s ease !important;
}

#et-top-navigation nav > ul > li > a:hover {
    color: var(--color-primary-light) !important;
}

#et-top-navigation nav > ul > li.current-menu-item > a {
    color: var(--color-primary-light) !important;
}

/* ========================================
   BUTTONS
   ======================================== */
.et_pb_button.btn-primary {
    background-color: var(--color-yellow) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.et_pb_button.btn-primary:hover {
    background-color: var(--color-yellow-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.et_pb_button.btn-secondary {
    background-color: transparent !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border: 2px solid var(--color-white) !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

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

.et_pb_button.btn-full {
    width: 100% !important;
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 14px 16px !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background-color: #1e3a8a !important;
    background-image: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.hero-section .et_pb_section {
    background-color: #1e3a8a !important;
    background-image: none !important;
}

.hero-section .et_pb_row {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.hero-section h1,
.hero-section .et_pb_text h1 {
    font-size: 3.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.hero-section .hero-subtitle,
.hero-section .et_pb_text.hero-subtitle,
.hero-section .et_pb_text.hero-subtitle p {
    font-size: 1.25rem !important;
    color: #bfdbfe !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.hero-section .et_pb_module {
    color: #ffffff !important;
}

.hero-section .et_pb_text {
    color: #ffffff !important;
}

/* Hero Buttons */
.hero-section .et_pb_button_wrapper .et_pb_button.btn-primary {
    background-color: #eab308 !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.hero-section .et_pb_button_wrapper .et_pb_button.btn-primary:hover {
    background-color: #facc15 !important;
}

.hero-section .et_pb_button_wrapper .et_pb_button.btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border: 2px solid #ffffff !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.hero-section .et_pb_button_wrapper .et_pb_button.btn-secondary:hover {
    background-color: #ffffff !important;
    color: #1e3a8a !important;
}

@media (max-width: 980px) {
    .hero-section h1,
    .hero-section .et_pb_text h1 {
        font-size: 2.25rem !important;
    }

    .hero-section .et_pb_row {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}

@media (max-width: 767px) {
    .hero-section h1,
    .hero-section .et_pb_text h1 {
        font-size: 2.25rem !important;
    }
}

/* ========================================
   SERVICE CARDS (BLURB MODULES)
   ======================================== */
.service-card .et_pb_blurb {
    padding: 2rem !important;
    background: var(--color-white) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    border-top: 4px solid var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.service-card .et_pb_blurb:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-5px) !important;
}

.service-card .et-pb-icon {
    font-size: 2.5rem !important;
    color: var(--color-primary) !important;
}

.service-card h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.service-card .et_pb_blurb_content p {
    color: var(--color-gray-600) !important;
    text-align: center !important;
}

/* ========================================
   SECTION SPACING
   ======================================== */
.services-section {
    padding: 5rem 1.5rem !important;
}

.services-section h2,
.services-section .et_pb_text h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
}

/* ========================================
   CALCULATOR BOX (FROM PLUGIN)
   ======================================== */
.calculator-wrapper {
    background: var(--color-white) !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* ========================================
   GUTENBERG BLOCKS STYLING
   ======================================== */

/* Hero Section Gutenberg */
.hero-section .wp-block-columns {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hero-section .wp-block-column {
    padding: 0 1.5rem !important;
}

.hero-section .wp-block-buttons {
    margin-top: 2rem !important;
    gap: 1rem !important;
}

.hero-section .wp-block-button.btn-primary .wp-block-button__link {
    background-color: var(--color-yellow) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 0.5rem !important;
    border: none !important;
}

.hero-section .wp-block-button.btn-primary .wp-block-button__link:hover {
    background-color: var(--color-yellow-hover) !important;
}

.hero-section .wp-block-button.btn-secondary .wp-block-button__link {
    background-color: transparent !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border: 2px solid var(--color-white) !important;
    border-radius: 0.5rem !important;
}

.hero-section .wp-block-button.btn-secondary .wp-block-button__link:hover {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
}

/* Services Section Gutenberg */
.services-section {
    text-align: center !important;
}

.services-section .wp-block-columns {
    max-width: 1200px !important;
    margin: 3rem auto 0 !important;
    gap: 2.5rem !important;
}

.services-section .service-card {
    background: var(--color-white) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    border-top: 4px solid var(--color-primary) !important;
    transition: all 0.3s ease !important;
    padding: 2rem !important;
}

.services-section .service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-5px) !important;
}

.services-section .service-card-inner {
    padding: 0 !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center !important;
}

.font-bold {
    font-weight: 700 !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.text-white {
    color: var(--color-white) !important;
}

/* ========================================
   SERVICES CARDS SHORTCODE
   ======================================== */
.services-section-custom {
    padding: 5rem 1.5rem !important;
    background: var(--color-white);
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    color: #1f2937;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card-custom {
    background: var(--color-white) !important;
    padding: 2rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    border-top: 4px solid var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.service-card-custom:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-5px) !important;
}

.service-icon {
    font-size: 2.5rem !important;
    color: var(--color-primary) !important;
    margin-bottom: 1rem !important;
    display: block;
}

.service-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    color: #1f2937;
}

.service-description {
    color: var(--color-gray-600) !important;
    text-align: center !important;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 980px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-section-custom {
        padding: 3rem 1rem !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 980px) {
    .hero-section {
        padding: 3rem 1rem !important;
    }

    .services-section {
        padding: 3rem 1rem !important;
    }

    .calculator-box {
        margin-top: 2rem !important;
    }
}

/* ========================================
   DIVI CUSTOMIZATIONS
   ======================================== */

/* Remove default Divi margins/padding that might interfere */
.et_pb_section {
    padding: 0 !important;
}

.et_pb_row {
    max-width: 1200px !important;
    padding: 0 !important;
}

/* Full width sections */
.et_pb_fullwidth_section {
    padding: 0 !important;
}

/* Clean up default Divi button styles */
.et_pb_button {
    letter-spacing: 0 !important;
    font-size: 1rem !important;
}

/* ========================================
   HOMEPAGE PREMIUM (DIVI 4)
   ======================================== */
.premium-hero-section {
    background: radial-gradient(circle at 20% 20%, #3154b2 0%, #1e3a8a 45%, #0d1d4f 100%) !important;
}

.premium-hero-section .et_pb_row {
    display: flex;
    align-items: center;
    gap: 34px;
}

.premium-hero-section .et_pb_column {
    margin-bottom: 0 !important;
}

.premium-hero-kicker p {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #dbeafe !important;
    font-size: 12px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-hero-title h1 {
    color: #ffffff !important;
    font-size: 58px !important;
    line-height: 1.1 !important;
    margin: 10px 0 16px;
}

.premium-hero-subtitle p {
    color: #c7d8ff !important;
    font-size: 22px !important;
    line-height: 1.7 !important;
    max-width: 560px;
    margin-bottom: 28px;
}

.premium-hero-section .et_pb_text .et_pb_button.btn-primary {
    background-color: #eab308 !important;
    color: #1e3a8a !important;
    border: 2px solid #eab308 !important;
    border-radius: 10px !important;
    padding: 14px 26px !important;
    font-weight: 700 !important;
}

.premium-hero-section .et_pb_text .et_pb_button.btn-primary:hover {
    background-color: #facc15 !important;
    border-color: #facc15 !important;
}

.premium-hero-section .et_pb_text .et_pb_button.btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 26px !important;
    font-weight: 600 !important;
}

.premium-hero-section .et_pb_text .et_pb_button.btn-secondary:hover {
    background-color: #ffffff !important;
    color: #1e3a8a !important;
}

.premium-hero-buttons .et_pb_text_inner p {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Multiple button modules side by side */
.hero-buttons-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.hero-buttons-inline > .et_pb_module {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.premium-calculator-card {
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(8, 20, 61, 0.28);
    padding: 28px;
}

.premium-calculator-header {
    color: #0f285f;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}

.premium-trust-strip .et_pb_text_inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.premium-services-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.premium-section-title h2 {
    font-size: 38px !important;
    margin-bottom: 0 !important;
    color: #0f172a;
}

.premium-section-lead p {
    color: #475569 !important;
    font-size: 18px !important;
}

.premium-service-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-top: 4px solid #1e3a8a !important;
    border-radius: 12px !important;
    padding: 32px 24px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

.premium-service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.premium-service-card .et_pb_blurb_content {
    max-width: 100% !important;
    text-align: center !important;
}

.premium-service-card .et_pb_module_header {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #1f2937 !important;
    text-align: center !important;
}

.premium-service-card .et_pb_blurb_description p {
    color: #6b7280 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 !important;
}

.premium-service-card .et-pb-icon {
    color: #1e3a8a !important;
    font-size: 40px !important;
    margin-bottom: 16px !important;
}

.premium-service-card .et_pb_main_blurb_image {
    text-align: center !important;
    margin-bottom: 16px !important;
}

.premium-steps-section {
    background-color: #f8fafc !important;
}

.premium-step-box .et_pb_text_inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 18px;
    min-height: 180px;
}

.premium-proof-card .et_pb_module,
.premium-faq-card .et_pb_module {
    border-radius: 16px;
}

.premium-proof-card .et_pb_testimonial {
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.08);
}

.premium-faq-card .et_pb_accordion {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.premium-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 65%, #2747a6 100%) !important;
}

.premium-cta-title h2,
.premium-cta-text p {
    color: #ffffff !important;
}

@media (max-width: 980px) {
    .premium-hero-section .et_pb_row {
        display: block;
    }

    .premium-hero-title h1 {
        font-size: 40px !important;
    }

    .premium-hero-subtitle p,
    .premium-section-lead p {
        font-size: 16px !important;
    }
}
