:root {
    --color-bg: #f3f4f6;
    --color-text-primary: #111827;
    --color-text-secondary: #6b7280;
    --color-card-bg: #e5e7eb;
    --color-primary: #000000;
    --color-primary-hover: #1f2937;
    --color-accent: #fbbf24;
    --font-family: sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: clamp(1.875rem, 4vw, 2.25rem);
    --font-size-3xl: clamp(2rem, 5vw, 2.5rem);
    --font-weight-bold: 600;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 5rem;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --max-width-content: 48rem;
    --max-width-grid: 72rem;
}

/* #GLOBAL ========================================================================== */
body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    margin: 0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* #LAYOUT ========================================================================== */
/* Section Spacing */
.hero-section, .problems-section, .benefits-section, .about-section, .testimonials-section, .offer-section, .guarantee-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
}

.questions-section, .faq-section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* #TYPOGRAPHY ======================================================================= */
h1, h2 {
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

p, ol, ul {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.hero-section p:first-of-type,
.about-section p {
    margin-bottom: var(--spacing-sm);
}

.hero-section p:nth-of-type(2),
.about-section p:last-of-type,
.guarantee-section p:last-of-type,
.testimonials-section p:first-of-type,
.faq-section p:first-of-type,
.problems-section p:nth-of-type(1),
.problems-section p:nth-of-type(2),
.benefits-section p:nth-of-type(1),
.benefits-section p:nth-of-type(2),
.offer-section p:nth-of-type(1),
.offer-section p:last-of-type {
    margin-bottom: var(--spacing-lg);
}

/* #COMPONENTS ======================================================================= */
/* Buttons */
button {
    background-color: #000000;
    color:#ffffff;
    padding: 0.75rem var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-lg);
    border: 2px solid turquoise;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #1f2937;
}

/* Grid Layouts */
.questions-grid, .testimonials-grid {
    max-width: var(--max-width-grid);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .questions-grid, .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.question-card, 
.testimonial-card,
.faq-card {
    padding: 1.75rem;
    border-radius: var(--border-radius-md);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Question Cards */
.question-card {
    text-align: left;
}

/* Testimonial Cards */

/* Mobile spacing between Question & Testimonial cards */
@media (max-width: 767px) {
  .question-card:not(:last-child),
  .testimonial-card:not(:last-child) {
    margin-bottom: var(--spacing-md);
  }
}

.testimonial-card {
    text-align: center;
    align-items: center;
    padding: 1.75rem;
}

.testimonial-card p:last-child {
    margin-bottom: 0;
}

/* FAQ Cards */
.faq-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

/* Card Hover & Active States */
.question-card:active, 
.testimonial-card:active,
.faq-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-card.active {
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    width: 100%;
}

.testimonial-role {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    display: block;
    width: 100%;
}

/* Lists */
.problems-section ol, .benefits-section ul, .offer-section ul {
    list-style-position: inside;
    text-align: left;
    max-width: var(--max-width-content);
    margin: 0 auto var(--spacing-lg);
    padding-left: var(--spacing-md);
}

.problems-section ol {
    list-style-type: decimal;
}

.benefits-section ul {
    list-style-type: disc;
}

.offer-section ul {
    margin-bottom: var(--spacing-md);
}

/* Testimonials */
.testimonial-card div:first-child {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.testimonial-card p:last-child {
    margin-top: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

/* FAQ */
.faq-section h2,
.faq-section p:first-of-type {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.faq-list {
    max-width: var(--max-width-content);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: left;
}

/* FAQ Card Header */
.faq-card h3[data-accordion="toggle"] {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;    
    width: 100%;
    box-sizing: border-box;
}

.faq-card h3[data-accordion="toggle"] > span:first-child {
    flex: 1;
    min-width: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.faq-answer p {
    font-size: var(--font-size-lg);
    margin: 0;
    padding: 1.25rem 0;
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* FAQ Icon */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease-in-out;
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
.footer-section {
    padding: var(--spacing-lg);
    text-align: center;
}

.footer-section p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}
