/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://offerte.live
 Description:  Child theme for Hello Elementor
 Author:       Lead Architect
 Author URI:   https://offerte.live
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --primary-color: #FF5722;
    --primary-hover: #E64A19;
    --secondary-color: #007bff;
    --text-color: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --success-color: #10b981;
    --border-radius: 8px;
    --container-width: 1140px;
}

body {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Global Container Management */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 90%;
    position: relative;
}

/* Break out of parent theme constraints */
.site-header:not(.dynamic-header),
.site-footer:not(.dynamic-header) {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* Branding / Header */
.logo-link {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: 1.8rem;
    letter-spacing: -1.5px;
    display: block;
}

.site-header {
    background: #ffffff !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.nav-container {
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 90% !important;
}

.header-menu {
    list-style: none !important;
    display: flex !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-menu a {
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    font-size: 1rem;
    transition: color 0.3s;
}

.header-menu a:hover {
    color: var(--primary-color) !important;
}

/* Hero Section - Premium Fix */
.hero-section {
    background-size: cover !important;
    background-position: center !important;
    padding: 160px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    margin-bottom: 40px !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

/* Hero Postcode Area - Button only, no pill background */
.postcode-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    padding: 0;
}

.postcode-box input {
    border: none !important;
    padding: 17px 25px !important;
    border-radius: 50px !important;
    width: 200px !important;
    font-size: 1.05rem !important;
    outline: none !important;
    color: #333 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.postcode-box button {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 17px 38px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.postcode-box button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.6);
}

/* General Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: #0f172a;
    letter-spacing: -1px;
}

/* Grids */
.comparison-grid,
.news-grid,
.lead-perks-grid {
    display: grid !important;
    gap: 30px !important;
    width: 100% !important;
}

.comparison-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.lead-perks-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-bottom: 60px !important;
}

/* Cards Styling */
.provider-card,
.news-card,
.perk-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-card:hover,
.news-card:hover,
.perk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.provider-card,
.perk-card {
    padding: 50px 35px;
    text-align: center;
    position: relative;
    /* needed for absolute badge */
}

/* Perk emoji icon */
.perk-icon {
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 20px;
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--success-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provider-card img {
    width: 90px;
    height: auto;
    margin-bottom: 25px;
}

.provider-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.provider-card .rating {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.provider-card .cta {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 800;
    transition: background 0.3s;
}

/* News Card Specifics */
.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 35px;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    line-height: 1.3;
}

.news-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
}

/* Lead Form Section */
.lead-form-section {
    background: #f1f5f9;
}

.lead-form-container {
    background: #fff;
    padding: 70px;
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
    max-width: 850px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: left;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 18px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    font-size: 1rem;
    background: #fbfcfd;
}

.lead-form button {
    width: 100%;
    margin-top: 40px;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 22px !important;
    border-radius: 4px !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(255, 87, 34, 0.25);
}

.form-disclaimer {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 30px;
    line-height: 1.7;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer - DARK & PERFECTLY ALIGNED */
.site-footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 100px 0 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-bottom: 100px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

.footer-col p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 40px 0;
    text-align: center;
    font-size: 1rem;
}

/* ===========================
   Single Post & Page Layout
=========================== */
.page-wrap {
    background: var(--light-bg);
    padding: 70px 0;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* Entry Card (post/page content box) */
.entry-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.entry-body {
    padding: 50px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.entry-meta {
    color: #94a3b8;
    font-size: 0.95rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
}

.entry-content h2,
.entry-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin: 40px 0 15px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content a {
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    padding: 35px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sidebar-cta {
    display: inline-block;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.sidebar-cta:hover {
    background: var(--primary-hover);
}

.sidebar-posts {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8fafc;
}

.sidebar-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-posts a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 992px) {

    .comparison-grid,
    .lead-perks-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    .news-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-menu {
        justify-content: center;
    }
}