/* --- Add this to the TOP of your style.css --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #2c3e50; /* Dark Slate */
    --accent-color: #00A4E4; /* Bright Blue */
    --bg-color: #ffffff;
    --light-bg-color: #f4f7fa;
    --border-color: #e1e5ea;
    --text-color: #333;
    --text-light-color: #6c757d;
    --savings-bg-color: #e6ffed;
    --savings-text-color: #00873d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 0;
}

h1, h2, h3 {
    color: var(--secondary-color);
    font-weight: 600;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
p { font-size: 1.1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-color);
}

.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color); /* Added for consistent sizing */
}
.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    margin: 0 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-actions .button-secondary {
    margin-right: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: var(--light-bg-color);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
    color: var(--text-light-color);
}

.hero .button { margin: 0 0.5rem; }

/* --- Feature Sections --- */
.features {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* --- Pricing Page --- */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    background: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.pricing-card.highlight {
    border-color: var(--primary-color);
    border-width: 2px;
}

.pricing-card h3 {
    font-size: 1.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}
.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light-color);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.pricing-card ul li::before {
    content: '✔';
    color: var(--savings-text-color, #28a745);
    position: absolute;
    left: 0;
}

.pricing-card .button {
    width: 100%;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-bg-color);
    padding: 3rem 0;
    margin-top: 4rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-content p {
    margin: 0;
    font-size: 1rem;
}


/* --- Corrected Pricing Display Styles --- */
.price-display {
    margin-bottom: 1rem;
    position: relative;
}

.old-price {
    font-size: 1.5rem;
    color: var(--text-light-color);
    margin-bottom: -10px;
    display: block;
}

.price-display .price {
    margin: 0;
}

.savings-badge {
    display: inline-block;
    background-color: var(--savings-bg-color);
    color: var(--savings-text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1rem;
    border: 1px solid var(--savings-text-color);
}

/* --- Consulting Page Styles --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.process-step h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.quote-section {
    padding-top: 0;
}

.quote-card {
    background: var(--light-bg-color);
    border-radius: 12px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-card h2 {
    margin-bottom: 0.5rem;
}

.quote-card > p {
    color: var(--text-light-color);
    margin-bottom: 2rem;
}

.quote-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select[multiple] {
    height: 120px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form .button {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-actions .button-secondary {
        margin-right: 0;
    }

    .main-nav {
        position: relative;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .quote-card {
        padding: 2rem 1.5rem;
    }
}