/* css/style.css */
:root {
    --color-primary-bg: #FAF7F2;
    --color-secondary-bg: #FFFFFF;
    --color-accent-primary: #386641; /* Green */
    --color-accent-secondary: #E67E22; /* Orange/Gold */
    --color-accent-tag-bg: rgba(56, 102, 65, 0.08);
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-text-muted: #555555;
    --color-border-light: #E8E0D5;
    --color-crossed-out: #BDBDBD;
    --color-popup-overlay-bg: rgba(0, 0, 0, 0.75); /* Darker overlay */

    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-unit: 8px;
    /* --header-height: 80px; REMOVED */
    --section-padding-y: calc(var(--spacing-unit) * 12);
    --section-padding-x: calc(var(--spacing-unit) * 2);
    --container-max-width: 900px;
    --border-radius: 30px;
    --border-radius-card: 12px;
    --border-radius-popup: 10px; /* For popup */
}

/* --- Global Resets & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--color-primary-bg);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* padding-top: var(--header-height); REMOVED */
}
body.no-scroll { overflow: hidden; } /* For popup active state */
a { text-decoration: none; color: var(--color-accent-primary); transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { opacity: 0.75; }
img { max-width: 100%; height: auto; display: block; }
.container { width: calc(100% - (var(--section-padding-x) * 2)); max-width: var(--container-max-width); margin: 0 auto; }
.section-padding { padding: var(--section-padding-y) var(--section-padding-x); }
.bg-secondary { background-color: var(--color-secondary-bg); }
.text-center { text-align: center; }

/* Standalone Logo Styling (if header is fully removed) */
.logo-standalone-container {
    padding: calc(var(--spacing-unit) * 3) var(--section-padding-x);
    text-align: center; /* Or left/right as preferred */
}
.logo-image-standalone {
    height: 100px; /* Adjust as needed */
    width: auto;
    display: inline-block; /* If centered */
}


.section-title-medium {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: calc(var(--spacing-unit) * 5);
    line-height: 1.25;
}
.section-title-large {
    font-family: var(--font-headings);
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--color-accent-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.15;
}

/* --- Buttons --- */
.btn { /* ... same as before ... */
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.85) calc(var(--spacing-unit) * 4.5);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.btn-primary {
    background-color: var(--color-accent-primary);
    color: var(--color-text-light);
    border-color: var(--color-accent-primary);
}
.btn-primary:hover {
    background-color: var(--color-accent-secondary);
    border-color: var(--color-accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}
.btn-secondary { /* ... same as before ... */
    background-color: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
    box-shadow: none;
}
.btn-secondary:hover {
    background-color: var(--color-accent-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.1);
}
.btn-large { /* ... same as before ... */
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 6.5);
    font-size: 1.1rem;
}
.btn-small { /* ... same as before ... */
    padding: calc(var(--spacing-unit) * 1.1) calc(var(--spacing-unit) * 2.8);
    font-size: 0.85rem;
    font-weight: 600;
}


/* --- Hero Section (adjust top padding if no header above it) --- */
.hero-section {
    min-height: 40vh; /* Can be a bit less if no header */
    padding-top: calc(var(--section-padding-y) * 0.5); /* Reduced top if no header */
    padding-bottom: calc(var(--section-padding-y) * 0.8);
    /* ... rest of hero styles same as previous refinement ... */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-content-container { max-width: 700px; }
.hero-main-headline {
    font-family: var(--font-headings);
    font-size: clamp(3rem, 8vw, 5.2rem);
    font-weight: 900;
    color: var(--color-accent-primary);
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    animation: fadeInUp 0.7s 0.2s ease-out backwards;
}
.hero-sub-headlines-group { margin-bottom: calc(var(--spacing-unit) * 3.5); }
.hero-sub-headline-part {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.25;
    display: block;
    animation: fadeInUp 0.7s ease-out backwards;
}
.hero-sub-headline-part:nth-child(1) { animation-delay: 0.4s; }
.hero-sub-headline-part.hero-sub-headline-accent {
    color: var(--color-accent-secondary);
    animation-delay: 0.55s;
}
.hero-intro-paragraph {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto calc(var(--spacing-unit) * 5) auto;
    line-height: 1.65;
    animation: fadeInUp 0.7s 0.7s ease-out backwards;
}
.hero-main-cta { animation: fadeInScale 0.6s 0.9s ease-out backwards; }


/* --- Benefits Section REFINED --- */
.benefits-section { text-align: center; }
.benefits-section .section-title-medium {
    color: var(--color-accent-primary);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.benefits-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    max-width: 620px;
    margin: 0 auto calc(var(--spacing-unit) * 6) auto;
    min-height: 100px;
}
.benefits-body p { margin-bottom: var(--spacing-unit); }
.key-features-list {
    list-style: none;
    padding-left: 0;
    max-width: 480px; /* Max width for the list itself */
    margin: 0 auto; /* Center the list block */
    min-height: 220px;
    /* text-align: left; -- Kept from before, but items will be centered if list is narrow */
}
.key-feature-item {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    padding: calc(var(--spacing-unit) * 1.75) 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex; /* For icon and text alignment */
    align-items: center; /* Vertically align icon and text */
    justify-content: center; /* Center content of each list item */
    text-align: center; /* Center text within the item */
}
.key-feature-item:first-child { padding-top: 0; }
.key-feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.key-feature-item::before {
    content: '✓';
    color: var(--color-accent-primary);
    font-size: 1.3em;
    font-weight: bold;
    margin-right: calc(var(--spacing-unit) * 1.25); /* Space between icon and text */
    line-height: 1;
    flex-shrink: 0; /* Prevent icon from shrinking */
}
.key-feature-item strong { color: var(--color-accent-secondary); font-weight: 700;}


/* --- Templates Showcase Section (No change needed for this refinement) --- */
/* ... same as before ... */
.templates-showcase-section .section-title-medium { margin-bottom: calc(var(--spacing-unit) * 2); }
.showcase-intro {
    max-width: 650px;
    margin: 0 auto calc(var(--spacing-unit) * 6) auto;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4.5);
}
.template-card { /* ... same card styles ... */
    background-color: var(--color-secondary-bg);
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Softer shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.template-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.09);
}
.template-card-image-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    background-color: #f0f0f0;
}
.template-card-image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.template-card-content {
    padding: calc(var(--spacing-unit) * 3);
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.template-card-content h3 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-unit);
}
.template-card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    flex-grow: 1;
}
.template-card-content .btn-secondary { margin-top: auto; }


/* --- Problem/Solution Section REFINED --- */
.problem-solution-section .column-headline {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 4.5vw, 2.4rem); /* Consistent medium size */
    font-weight: 800; /* Bolder */
    color: var(--color-text-dark);
    margin-bottom: calc(var(--spacing-unit) * 4); /* More space below */
    line-height: 1.2;
    padding-bottom: var(--spacing-unit);
    border-bottom: 3px solid; /* Underline effect */
    display: inline-block; /* To make border only under text */
}
.problem-column .column-headline { border-color: var(--color-accent-secondary); }
.solution-column .column-headline { border-color: var(--color-accent-primary); }

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: calc(var(--spacing-unit) * 7);
}
@media (min-width: 768px) { /* Two columns for tablet and up */
    .problem-solution-grid { grid-template-columns: 1fr 1fr; }
}
/* ... rest of points-list styles same as before ... */
.highlight-text { color: var(--color-accent-primary); } /* Keep this for JS */
.crossed-out {
    text-decoration: line-through solid var(--color-crossed-out) 3px;
    color: var(--color-crossed-out);
    padding-right: 0.3em;
}
.points-list { list-style: none; padding-left: 0; }
.points-list li {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    padding-left: calc(var(--spacing-unit) * 3.5); /* Increased padding */
    position: relative;
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.points-list li::before {
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 3px; /* Adjust vertical alignment */
    font-size: 1.2em;
}
.solution-column .points-list li::before { content: '✓'; color: var(--color-accent-primary); }
.problem-column .points-list li::before { content: '✗'; color: var(--color-accent-secondary); }
.solution-intro {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

/* --- Final CTA Section (no change needed for this refinement) --- */
/* ... same as before ... */
.final-cta-section .section-title-large { margin-bottom: calc(var(--spacing-unit) * 2.5); }
.final-cta-subheadline { font-size: 1.15rem; margin: 0 auto calc(var(--spacing-unit) * 5) auto; }


/* --- Footer (no change needed for this refinement) --- */
#main-footer { padding: calc(var(--spacing-unit) * 7) 0; text-align: center; font-size: 0.9rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border-light); }
#main-footer p { white-space: pre-line; }


/* --- Popup Styles --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-popup-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s linear;
}
.popup-content {
    background-color: var(--color-secondary-bg);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: var(--border-radius-popup);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 700px; /* Max width for calendly */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bounce effect */
}
.popup-overlay.active .popup-content {
    transform: scale(1);
}
.popup-close-btn {
    position: absolute;
    top: calc(var(--spacing-unit) * 1.5);
    right: calc(var(--spacing-unit) * 1.5);
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: var(--spacing-unit);
    transition: color 0.2s ease, transform 0.2s ease;
}
.popup-close-btn:hover {
    color: var(--color-accent-secondary);
    transform: rotate(90deg);
}
.popup-headline {
    font-family: var(--font-headings);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-accent-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-align: center;
}
.calendly-embed-container {
    min-height: 400px; /* Initial height for Calendly */
    position: relative; /* For spinner or loading text */
}
.calendly-embed-container p { /* Loading text */
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--spacing-unit) * 5;
}

/* --- Animations (no change) --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInPill { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* --- Responsive Adjustments (check spacing) --- */
@media (max-width: 768px) {
    :root { --section-padding-y: calc(var(--spacing-unit) * 10); }
    .hero-section { min-height: auto; padding-bottom: var(--section-padding-y); } /* Allow natural height */
    .column-headline { text-align: center;}
    .popup-content { max-width: 95%; padding: calc(var(--spacing-unit) * 3); }
    .logo-image-standalone {
    height: 100px; 
    width: 300px; /* ADDED: Assuming ~3:1 aspect ratio (e.g., if 100px high, 300px wide) */
    display: inline-block; /* If centered */
    object-fit: contain; /* Ensures SVG scales correctly within bounds if aspect ratio differs */
}
    .logo-image-standalone { height: 35px; width: 105px; }
}
@media (max-width: 480px) {
    :root { --section-padding-y: calc(var(--spacing-unit) * 8); }
    .section-title-large { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .hero-main-headline { font-size: clamp(2.5rem, 10vw, 3.8rem); }
    .hero-sub-headline-part { font-size: clamp(1.5rem, 7vw, 2.4rem); }
    .btn { padding: calc(var(--spacing-unit) * 1.65) calc(var(--spacing-unit) * 3.5); font-size: 0.9rem;}
    .btn-large {padding: calc(var(--spacing-unit) * 2.2) calc(var(--spacing-unit) * 5); font-size: 1rem;}
}