/* ==============================================
MASTER STYLESHEET FOR KRB WELLNESS
==============================================
*/

/* -------------------------------------
1. Root Variables (Color Palette)
-------------------------------------
*/
:root {
    --color-sage-dark: #5d7c5e;
    --color-sage-light: #7d9d7e;
    --color-earth-dark: #a87f5e;
    --color-earth-light: #c89f7e;
    --color-off-white: #f5f5eb;
    --color-off-white-darker: #ebe9dc;
    --color-bg-alt: #fafaf7;
    --color-white: #ffffff;
    --color-text-dark: #3d3d3d;
    --color-text-medium: #4a4a4a;
    --color-text-light: #6a6a6a;
    --color-border: #d4d4c8;
    --color-footer-bg: #3d4a3d;
    --color-footer-text: #e8e8dd;
}


/* -------------------------------------
2. Global & Base Styles
-------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Page-specific background for application page */
body.page-application {
    background: var(--color-bg-alt);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Base H2 for index.html */
h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-sage-dark);
}

/* -------------------------------------
3. Header & Navigation (Unified)
-------------------------------------
*/
header {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky; /* Unified: Sticky on all pages */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none; /* Unified */
    color: var(--color-white); /* Unified */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* -------------------------------------
4. Hero Section (Base + Page Specifics)
-------------------------------------
*/
.hero {
    background: linear-gradient(135deg, var(--color-earth-light) 0%, var(--color-earth-dark) 100%);
    color: var(--color-white);
    text-align: center;
}

/* Page-specific padding */
.page-home .hero { padding: 6rem 2rem; }
.page-services .hero { padding: 4rem 2rem; }
.page-application .hero { padding: 3rem 2rem; }

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px; /* Base width */
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.page-services .hero p,
.page-application .hero p {
    max-width: 700px; /* Override for specific pages */
    margin-bottom: 0;
}

/* -------------------------------------
5. Button Styles (Refactored)
-------------------------------------
*/

/* Base button style (Off-white) */
.cta-button {
    display: inline-block;
    text-decoration: none;
    background: var(--color-off-white);
    color: var(--color-sage-dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: var(--color-white);
}

/* Modifier for Green Gradient Button */
.cta-button--primary {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
}

.cta-button--primary:hover {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-dark) 100%);
    box-shadow: 0 5px 15px rgba(125, 157, 126, 0.3);
}

/* Modifier for Full Width */
.cta-button--full-width {
    display: block;
    width: 100%;
}


/* -------------------------------------
6. Form Styles (Unified on Application.html)
-------------------------------------
*/
.form-container,
.application-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    max-width: 800px; /* Unified max-width */
    margin: 2rem auto;
}

/* Specific override for index.html contact form width */
.page-home .form-container {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-sage-dark);
}

input, textarea, select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--color-bg-alt); /* Light background for fields */
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-sage-light);
    box-shadow: 0 0 0 3px rgba(125, 157, 126, 0.1);
    background: var(--color-white);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
    padding: 1.25rem 3rem; /* Unified on larger style */
    border: none;
    border-radius: 50px;
    font-size: 1.2rem; /* Unified on larger style */
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 2rem; /* Unified */
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 157, 126, 0.3);
}

/* Success/Error Messages (Unified on larger padding) */
.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #f5c6cb;
}


/* -------------------------------------
7. Page-Specific Styles: index.html
-------------------------------------
*/
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}

.credentials {
    background: var(--color-off-white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-sage-light);
}

.credentials h3 {
    color: var(--color-sage-dark);
    margin-bottom: 1rem;
}

.credentials ul {
    list-style: none;
    padding-left: 0;
}

.credentials li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-medium);
}

.credentials li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-sage-light);
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-off-white);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--color-earth-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 157, 126, 0.2);
}

.service-card h3 {
    color: var(--color-sage-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-medium);
}
   
.service-button {
    text-align: center;
    margin-top: 3rem;
}

.approach-content {
    background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-off-white-darker) 100%);
    padding: 3rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 5px solid var(--color-sage-light);
}

.approach-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}

.approach-content strong {
    color: var(--color-sage-dark);
}

/* -------------------------------------
8. Page-Specific Styles: services.html
-------------------------------------
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    color: var(--color-sage-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro p {
    color: var(--color-text-medium);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: var(--color-off-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--color-earth-light);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(125, 157, 126, 0.15);
}

.pricing-card.featured {
    border-top: 4px solid var(--color-sage-light);
    background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-off-white-darker) 100%);
}

.pricing-card.featured .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--color-sage-light);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.pricing-header h3 {
    color: var(--color-sage-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-earth-light);
    margin: 0.5rem 0;
}

.price-period {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: normal;
}

.flat-rate {
    font-size: 2rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-medium);
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-sage-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-features li strong {
    color: var(--color-sage-dark);
}

.recommended-for {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--color-sage-light);
}

.recommended-for h4 {
    color: var(--color-sage-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recommended-for p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

.meet-greet {
    background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-off-white-darker) 100%);
    padding: 3rem;
    border-radius: 15px;
    margin: 4rem 0;
    border-left: 5px solid var(--color-earth-light);
}

.meet-greet h2 {
    color: var(--color-sage-dark);
    margin-bottom: 1rem;
}

.meet-greet p {
    color: var(--color-text-medium);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.meet-greet ul {
    list-style: none;
    margin: 1.5rem 0;
}

.meet-greet li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-medium);
}

.meet-greet li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-sage-light);
    font-weight: bold;
}

.final-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-earth-light) 0%, var(--color-earth-dark) 100%);
    color: var(--color-white);
    border-radius: 15px;
    margin-top: 3rem;
}

.final-cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* -------------------------------------
9. Page-Specific Styles: application.html
-------------------------------------
*/
.page-application .container {
    max-width: 800px;
    padding: 3rem 2rem;
}

.intro-box {
    background: var(--color-off-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--color-sage-light);
}

.intro-box h2 {
    color: var(--color-sage-dark);
    margin-bottom: 1rem;
}

.intro-box p {
    color: var(--color-text-medium);
    margin-bottom: 0.75rem;
}

.intro-box ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--color-text-medium);
}

.intro-box li {
    margin: 0.5rem 0;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-off-white);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--color-sage-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-number {
    background: var(--color-sage-light);
    color: var(--color-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.required {
    color: var(--color-earth-light);
}

.textarea-large {
    min-height: 180px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
    color: var(--color-text-medium);
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
    color: var(--color-text-medium);
}

.helper-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
    font-style: italic;
}

/* -------------------------------------
10. Footer (Unified)
-------------------------------------
*/
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem; /* Unified margin */
}

footer a {
    color: var(--color-earth-light);
}

/* -------------------------------------
11. Responsive (Unified)
-------------------------------------
*/
@media (max-width: 768px) {
    /* --- Nav --- */
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* --- Hero --- */
    .hero h1 {
        font-size: 2rem;
    }

    /* --- Index Page --- */
    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* --- Services Page --- */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2rem;
    }
    
    /* --- Application Page --- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 2rem 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}