/*
Theme Name: Greendale Consulting
Theme URI: https://greendale.ai
Author: Greendale Consulting
Author URI: https://greendale.ai
Description: Custom theme for Greendale Consulting - Agricultural Financial Consultants
Version: 1.0
License: Private
Text Domain: greendale
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2C5282;
    --secondary-blue: #4A90E2;
    --light-blue: #6BB0FF;
    --accent-gold: #FFD93D;
    --text-gray: #718096;
    --dark-gray: #2D3748;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --success-green: #48BB78;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 50px;
    margin-right: 15px;
}

.site-title {
    font-size: 1.75rem;
    color: var(--primary-blue);
    font-weight: 300;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-blue);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-gray);
}

.btn-primary:hover {
    background: #E5C500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.service-benefits li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* Process Section */
.process-section {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Calculators */
.calculator-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.calculator-content {
    display: none;
}

.calculator-content.active {
    display: block;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    font-size: 16px;
}

.results-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    display: none;
}

.results-box.show {
    display: block;
}

.result-highlight {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #CBD5E0;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4A5568;
    color: #CBD5E0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ========================================
 *    CALCULATOR STYLES - Professional Framework
 *    ======================================== */

/* Container and General Styles */
[data-calculator-type] {
	    margin: 30px 0;
}

[data-calc-form] {
	    background: #f9f9f9;
	    padding: 30px;
	    border-radius: 12px;
	    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	    max-width: 700px;
	    margin: 20px auto;
}

/* Progress Bar */
[data-calc-form] .calc-progress-container {
	    margin-bottom: 30px;
}

[data-progress-label] {
	    display: flex;
	    justify-content: space-between;
	    align-items: center;
	    margin-bottom: 10px;
	    font-weight: 600;
	    color: #333;
}

[data-step-number], [data-total-steps] {
	    font-weight: 700;
	    color: #667eea;
}

[data-progress-bar-track] {
	    height: 8px;
	    background: #e0e0e0;
	    border-radius: 4px;
	    overflow: hidden;
}

[data-progress-bar] {
	    height: 100%;
	    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	    transition: width 0.3s ease;
	    border-radius: 4px;
}

/* Form Steps */
[data-step] {
	    display: none;
	    animation: fadeIn 0.3s ease-in;
}

[data-step].active {
	    display: block;
}

@keyframes fadeIn {
	from {
		        opacity: 0;
	}
	to {
		        opacity: 1;
	}
}

[data-step] h3 {
	    color: #333;
	    margin: 0 0 20px 0;
	    font-size: 18px;
	    font-weight: 600;
}

/* Form Fields */
[data-calc-form] label {
	    display: block;
	    margin-bottom: 12px;
	    color: #555;
	    font-weight: 500;
	    font-size: 14px;
}

[data-calc-form] input[type="text"],
[data-calc-form] input[type="email"],
[data-calc-form] input[type="tel"],
[data-calc-form] input[type="number"],
[data-calc-form] select,
[data-calc-form] textarea {
	    width: 100%;
	    padding: 10px 12px;
	    margin-top: 6px;
	    border: 1px solid #ddd;
	    border-radius: 6px;
	    font-size: 14px;
	    font-family: inherit;
	    box-sizing: border-box;
	    transition: border-color 0.3s ease;
}

[data-calc-form] input:focus,
[data-calc-form] select:focus,
[data-calc-form] textarea:focus {
	    outline: none;
	    border-color: #667eea;
	    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-calc-form] input[type="checkbox"] {
	    margin-right: 8px;
	    width: 18px;
	    height: 18px;
	    cursor: pointer;
}

[data-calc-form] label:has(input[type="checkbox"]) {
	    display: flex;
	    align-items: center;
	    margin-bottom: 12px;
	    cursor: pointer;
}

/* Buttons */
[data-calc-form] button {
	    padding: 12px 24px;
	    border: none;
	    border-radius: 6px;
	    font-size: 14px;
	    font-weight: 600;
	    cursor: pointer;
	    transition: all 0.3s ease;
}

[data-calc-next], [data-calc-submit] {
	    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	    color: white;
}

[data-calc-next]:hover, [data-calc-submit]:hover {
	    transform: translateY(-2px);
	    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

[data-calc-next]:disabled, [data-calc-submit]:disabled {
	    opacity: 0.6;
	    cursor: not-allowed;
	    transform: none;
}

[data-calc-prev] {
	    background: #e0e0e0;
	    color: #333;
}

[data-calc-prev]:hover {
	    background: #d0d0d0;
}

/* Button Container */
[data-calc-buttons] {
	    display: flex;
	    gap: 15px;
	    justify-content: space-between;
	    margin-top: 30px;
}

/* Results Display */
[data-calc-results] {
	    display: none;
	    margin-top: 30px;
	    padding: 20px;
	    background: #f0f7ff;
	    border-left: 4px solid #667eea;
	    border-radius: 6px;
}

[data-calc-results].show {
	    display: block;
}

[data-calc-results] h4 {
	    margin: 0 0 15px 0;
	    color: #333;
	    font-size: 16px;
}

[data-result-item] {
	    display: flex;
	    justify-content: space-between;
	    padding: 10px 0;
	    border-bottom: 1px solid #e0e0e0;
}

[data-result-item]:last-child {
	    border-bottom: none;
}

[data-result-label] {
	    font-weight: 600;
	    color: #555;
}

[data-result-value] {
	    color: #667eea;
	    font-weight: 700;
	    font-size: 16px;
}

/* Notifications */
.calc-notification {
	    padding: 15px 20px;
	    margin-bottom: 20px;
	    border-radius: 6px;
	    font-size: 14px;
	    animation: slideDown 0.3s ease-in;
}

.calc-success {
	    background: #d4edda;
	    color: #155724;
	    border: 1px solid #c3e6cb;
}

.calc-error {
	    background: #f8d7da;
	    color: #721c24;
	    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
	from {
		        opacity: 0;
		        transform: translateY(-10px);
	}
	to {
		        opacity: 1;
		        transform: translateY(0);
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	[data-calc-form] {
		        padding: 20px;
	}
	    
	[data-calc-buttons] {
		        flex-direction: column;
	}
	    
	[data-calc-buttons] button {
		        width: 100%;
	}
	    
	[data-progress-label] {
		        font-size: 14px;
	}
}

/* Accessibility */
[data-calc-form] label {
	    cursor: pointer;
}

[data-calc-form] input:focus-visible,
[data-calc-form] select:focus-visible,
[data-calc-form] textarea:focus-visible {
	    outline: 2px solid #667eea;
	    outline-offset: 2px;
}
}
}
	}
	}
	}
	}
}
	}
	}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
	}
	}
}
}
}
}
}
}
}
}
}
}

/* Service Card Centered Layout */
.service-card {
	    text-align: center;
	    display: flex;
	    flex-direction: column;
	    align-items: center;
}

.service-icon {
	    margin-left: auto;
	    margin-right: auto;
}

.service-card h3 {
	    text-align: center;
	    width: 100%;
}

.service-card p,
.service-card .service-description {
	    text-align: center;
	    width: 100%;
}

.service-benefits {
	    list-style: none;
	    padding: 0;
	    margin: 1.5rem 0;
	    width: 100%;
	    display: flex;
	    flex-direction: column;
	    align-items: center;
}

.service-benefits li {
	    padding-left: 0;
	    position: relative;
	    margin-bottom: 0.75rem;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    gap: 8px;
	    text-align: center;
}

.service-benefits li::before {
	    display: none;
}

.service-benefits li svg {
	    flex-shrink: 0;
	    width: 20px;
	    height: 20px;
}

.service-card .btn,
.service-card .button,
.service-card a[class*="btn"],
.service-card > a:last-child {
	    margin-top: auto;
	    display: inline-block;
	    text-align: center;
	    align-self: center;
}
}
}
}
}
}
}
}
}
}