/* ============================================================
   Longarm Quilting Business Plan — Landing Page Styles
   Visual guide: LivePlan.com (green, clean, modern sans-serif)
   ============================================================ */

/* --- Design Tokens --- */
:root {
    /* Brand greens */
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;

    /* Neutrals */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Accent */
    --white:    #ffffff;
    --warm-bg:  #fffbeb;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    /* Sizing */
    --container: 1140px;
    --radius:    8px;
    --radius-lg: 12px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green-600);
    text-decoration: none;
}

a:hover {
    color: var(--green-700);
}

/* --- Utility --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.section--gray {
    background: var(--gray-50);
}

.section--green-light {
    background: var(--green-50);
}

.section--warm {
    background: var(--warm-bg);
}

.section--dark {
    background: var(--gray-900);
    color: var(--gray-100);
}

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

.text-muted {
    color: var(--gray-500);
}

.text-green {
    color: var(--green-600);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
}

.subheadline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--gray-600);
    line-height: 1.5;
    max-width: 640px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-600);
    margin-bottom: var(--space-xs);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn--primary:hover {
    background: var(--green-700);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn--outline {
    background: var(--white);
    color: var(--green-600);
    border: 2px solid var(--green-600);
}

.btn--outline:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* --- Header / Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-xs) 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo span {
    color: var(--green-600);
}

/* --- Hero --- */
.hero {
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
    background: linear-gradient(170deg, var(--white) 60%, var(--green-50) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero__ctas {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-600);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- Problem / Agitation --- */
.problem .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.problem__questions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.problem__questions li {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--green-600);
    font-size: 1.05rem;
    color: var(--gray-700);
}

.problem__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.problem__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Testimonials Grid --- */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.testimonial-card__stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green-700);
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* --- Social Proof Carousel --- */
.carousel {
    overflow: hidden;
    position: relative;
}

.carousel__track {
    display: flex;
    gap: var(--space-md);
    animation: scroll-left 30s linear infinite;
}

.carousel__item {
    flex: 0 0 320px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Personal Note --- */
.personal-note .container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 900px;
}

.personal-note__photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--green-100);
}

.personal-note__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-note__text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.personal-note__signature {
    font-weight: 700;
    color: var(--gray-800);
    margin-top: var(--space-sm);
}

/* --- Pricing --- */
.pricing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 820px;
    margin: var(--space-lg) auto 0;
}

.pricing__grid--single {
    grid-template-columns: 1fr;
    max-width: 440px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--green-600);
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.12);
}

.pricing-card--featured {
    border-color: var(--green-600);
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.12);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-600);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-card__desc {
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.pricing-card__features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: var(--space-md);
}

.pricing-card__features li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.pricing-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-600);
    font-weight: 700;
}

/* --- FAQ --- */
.faq__list {
    max-width: 740px;
    margin: var(--space-lg) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.faq__item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq__question:hover {
    background: var(--gray-50);
}

.faq__question::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.faq__item.active .faq__question::after {
    content: "−";
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__answer-inner {
    padding: 0 var(--space-md) var(--space-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

.faq__item.active .faq__answer {
    max-height: 300px;
}

/* --- Final CTA --- */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    margin-bottom: var(--space-sm);
}

.final-cta p {
    max-width: 600px;
    margin: 0 auto var(--space-md);
    color: var(--gray-400);
    font-size: 1.1rem;
}

.final-cta .btn {
    margin: 0 var(--space-xs);
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-lg) 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer a {
    color: var(--gray-300);
}

.footer a:hover {
    color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__ctas {
        justify-content: center;
    }

    .subheadline {
        margin: 0 auto;
    }

    .problem .container {
        grid-template-columns: 1fr;
    }

    .problem__image {
        order: -1;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .personal-note .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .personal-note__photo {
        margin: 0 auto;
    }

    .carousel__item {
        flex: 0 0 280px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.modal__close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}
.modal__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}
.modal__subtitle {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .modal {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .modal__title {
        font-size: 1.25rem;
    }
}
