/*
 Theme Name: GeneratePress Child
 Theme URI: https://thecalcvault.de
 Description: CalcVault child theme for GeneratePress
 Author: CalcVault
 Template: generatepress
 Version: 1.0.0
 Text Domain: generatepress-child
*/
/* All custom CSS goes here — never edit parent theme */
/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #333333;
    line-height: 1.7;
}
/* Calculator widget container */
.calcvault-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* Calculator inputs */
.calcvault-widget input[type="number"],
.calcvault-widget input[type="text"],
.calcvault-widget select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}
/* Calculator button */
.calcvault-widget button {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
.calcvault-widget button:hover {
    background: #1557b0;
}
/* Calculator result */
.calcvault-result {
    background: #f0f7ff;
    border-left: 4px solid #1a73e8;
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
}
.calcvault-result h3 {
    margin: 0 0 10px 0;
    color: #1a73e8;
    font-size: 18px;
}
.calcvault-result .result-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
}
/* Ad unit spacing */
.ad-unit-above-calc {
    margin: 20px 0;
    text-align: center;
}
.ad-unit-mid-content {
    margin: 30px 0;
    text-align: center;
}
.ad-unit-below-content {
    margin: 30px 0;
    text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
    .calcvault-widget {
        padding: 20px;
    }
    .calcvault-result .result-value {
        font-size: 22px;
    }
}

/* =============================================
   CalcVault Navigation Styles
   ============================================= */
/* Make Tools dropdown trigger obvious */
.main-navigation .main-nav ul li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 11px;
}
/* Dropdown menu styling */
.main-navigation ul ul {
    border-top: 3px solid #1a73e8;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 240px;
}
.main-navigation ul ul li a {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s;
}
.main-navigation ul ul li:last-child a {
    border-bottom: none;
}
.main-navigation ul ul li a:hover {
    background-color: #f0f7ff;
    color: #1a73e8 !important;
    padding-left: 26px;
}
/* Active page highlight */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-page-ancestor > a {
    color: #1a73e8 !important;
    font-weight: 600;
}
/* Mobile — show dropdown on tap */
@media (max-width: 768px) {
    .main-navigation ul ul {
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #1a73e8;
        margin-left: 16px;
    }
}

/* =============================================
   CalcVault Footer Styles
   ============================================= */
.site-info {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}
.calcvault-footer-nav {
    text-align: center;
    padding: 12px 20px 4px;
}
.calcvault-footer-nav .footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}
.calcvault-footer-nav .footer-menu li a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.calcvault-footer-nav .footer-menu li a:hover {
    color: #1a73e8;
    text-decoration: underline;
}
.calcvault-footer-nav .footer-menu li:not(:last-child)::after {
    content: "·";
    margin-left: 20px;
    color: #ccc;
}

/* =============================================
   CalcVault Contact Page Styles
   ============================================= */
.cv-contact-box {
    background: #f8faff;
    border: 1px solid #e0ecff;
    border-radius: 10px;
    padding: 30px;
    margin: 24px 0;
}
.cv-contact-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef2ff;
    gap: 20px;
}
.cv-contact-item:last-child {
    border-bottom: none;
}
.cv-contact-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cv-contact-value {
    font-size: 16px;
    color: #1a73e8;
    text-decoration: none;
}
.cv-contact-value:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .cv-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* =============================================
   CalcVault Homepage Styles
   ============================================= */
/* Hero section */
.cv-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    text-align: center;
    padding: 60px 40px;
    margin: -40px -40px 40px -40px;
    border-radius: 0;
}
.cv-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.2;
}
.cv-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 auto 28px auto;
    max-width: 600px;
}
.cv-hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cv-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}
/* Category sections */
.cv-category {
    margin-bottom: 40px;
}
.cv-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f0fe;
}
/* Tool cards grid */
.cv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
/* Individual tool card */
.cv-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.cv-tool-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 16px rgba(26,115,232,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.cv-tool-icon {
    font-size: 28px;
    min-width: 36px;
    text-align: center;
    margin-top: 2px;
}
.cv-tool-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}
.cv-tool-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
/* Stats bar */
.cv-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: #f0f7ff;
    border-radius: 10px;
    padding: 24px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.cv-stat {
    text-align: center;
}
.cv-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    display: block;
}
.cv-stat-label {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 4px;
}
/* Why CalcVault section */
.cv-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.cv-why-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.cv-why-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}
.cv-why-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}
.cv-why-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
/* Homepage responsive */
@media (max-width: 768px) {
    .cv-hero {
        padding: 40px 20px;
        margin: -30px -30px 30px -30px;
    }
    .cv-hero-title { font-size: 26px; }
    .cv-hero-subtitle { font-size: 15px; }
    .cv-stats { gap: 24px; }
    .cv-card-grid { grid-template-columns: 1fr; }
}

/* Hide page title on homepage only */
.home .entry-title {
    display: none;
}
/* Hide sidebar on homepage */
.home .widget-area {
    display: none;
}
/* Full width homepage content */
.home .content-area {
    width: 100% !important;
}

/* =============================================
   Full width layout for all calculator pages
   ============================================= */
/* Hide sidebar on all calculator pages */
.page-id-11 .widget-area,
.page-id-12 .widget-area,
.page-id-13 .widget-area,
.page-id-14 .widget-area,
.page-id-15 .widget-area,
.page-id-16 .widget-area,
.page-id-17 .widget-area,
.page-id-18 .widget-area,
.page-id-19 .widget-area,
.page-id-20 .widget-area,
.page-id-21 .widget-area,
.page-id-22 .widget-area,
.page-id-23 .widget-area,
.page-id-24 .widget-area,
.page-id-25 .widget-area {
    display: none;
}
/* Full width content on all calculator pages */
.page-id-11 .content-area,
.page-id-12 .content-area,
.page-id-13 .content-area,
.page-id-14 .content-area,
.page-id-15 .content-area,
.page-id-16 .content-area,
.page-id-17 .content-area,
.page-id-18 .content-area,
.page-id-19 .content-area,
.page-id-20 .content-area,
.page-id-21 .content-area,
.page-id-22 .content-area,
.page-id-23 .content-area,
.page-id-24 .content-area,
.page-id-25 .content-area {
    width: 100% !important;
}
/* Hide page title on calculator pages
   — calculator widget is the hero */
.page-id-11 .entry-title,
.page-id-12 .entry-title,
.page-id-13 .entry-title,
.page-id-14 .entry-title,
.page-id-15 .entry-title,
.page-id-16 .entry-title,
.page-id-17 .entry-title,
.page-id-18 .entry-title,
.page-id-19 .entry-title,
.page-id-20 .entry-title,
.page-id-21 .entry-title,
.page-id-22 .entry-title,
.page-id-23 .entry-title,
.page-id-24 .entry-title,
.page-id-25 .entry-title {
    display: none;
}

/* =============================================
   CalcVault About Page Styles
   ============================================= */
.cv-about-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 50px 40px;
    margin: -40px -40px 40px -40px;
    text-align: center;
}
.cv-about-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}
.cv-about-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    margin: 0 auto;
    max-width: 500px;
}
.cv-about-tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
    background: #f8faff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e0ecff;
}
.cv-about-tool-group h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}
.cv-about-tool-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cv-about-tool-group ul li {
    margin-bottom: 6px;
}
.cv-about-tool-group ul li a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.cv-about-tool-group ul li a:hover {
    color: #1a73e8;
}
.cv-about-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #5c4a00;
    margin-top: 30px;
    line-height: 1.6;
}
.cv-about-disclaimer a {
    color: #1a73e8;
}
@media (max-width: 768px) {
    .cv-about-hero {
        padding: 30px 20px;
        margin: -30px -30px 30px -30px;
    }
    .cv-about-title {
        font-size: 24px;
    }
}

/* Hide sidebar on supporting pages */
.page-id-6 .widget-area,
.page-id-7 .widget-area,
.page-id-8 .widget-area,
.page-id-9 .widget-area {
    display: none;
}
/* Full width on supporting pages */
.page-id-6 .content-area,
.page-id-7 .content-area,
.page-id-8 .content-area,
.page-id-9 .content-area {
    width: 100% !important;
}
/* Hide page titles on supporting pages
   — each page has its own hero heading */
.page-id-6 .entry-title,
.page-id-7 .entry-title,
.page-id-8 .entry-title,
.page-id-9 .entry-title {
    display: none;
}

/* Paycheck Calculator page (ID 60) — full width, no sidebar, no title */
.page-id-60 .widget-area,
.page-id-60 .entry-title {
    display: none;
}
.page-id-60 .content-area {
    width: 100% !important;
}

/* Student Loan Calculator page (ID 61) — full width, no sidebar, no title */
.page-id-61 .widget-area,
.page-id-61 .entry-title {
    display: none;
}
.page-id-61 .content-area {
    width: 100% !important;
}

/* Rent vs Buy Calculator page (ID 64) — full width, no sidebar, no title */
.page-id-64 .widget-area,
.page-id-64 .entry-title {
    display: none;
}
.page-id-64 .content-area {
    width: 100% !important;
}

/* Car Loan Calculator page (ID 68) — full width, no sidebar, no title */
.page-id-68 .widget-area,
.page-id-68 .entry-title {
    display: none;
}
.page-id-68 .content-area {
    width: 100% !important;
}

/* Inflation Calculator page (ID 70) — full width, no sidebar, no title */
.page-id-70 .widget-area,
.page-id-70 .entry-title {
    display: none;
}
.page-id-70 .content-area {
    width: 100% !important;
}
