/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    --color-primary: #1c8467;       /* Teal - main brand color */
    --color-primary-dark: #156b53;  /* Darker teal for hover */
    --color-accent: #c35961;        /* Dusty rose - warm accent */
    --color-accent-bright: #f77821; /* Orange - bold accent */
    --color-purple: #8961c1;        /* Purple - special accent */
    --color-cream: #f5f1ee;         /* Cream background */
    --color-cream-dark: #ebe5e0;    /* Slightly darker cream */
    --color-text: #352f36;          /* Dark charcoal */
    --color-text-light: #5a545b;    /* Lighter charcoal */
    --color-white: #FFFFFF;

    --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
}

h1 em {
    font-style: italic;
    color: var(--color-accent);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ================================
   Layout
   ================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ================================
   Buttons & Links
   ================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #a84850;
    transform: translateY(-2px);
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Abstract blob shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    opacity: 0.08;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 650px;
    margin-bottom: var(--spacing-md);
}

/* ================================
   Pain Points Section
   ================================ */
.pain-points {
    background-color: var(--color-white);
}

.pain-points h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .pain-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pain-card {
    text-align: center;
    padding: var(--spacing-md);
}

.pain-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.pain-icon i {
    font-size: 3rem;
}

.pain-card:nth-child(1) .pain-icon { color: var(--color-primary); }
.pain-card:nth-child(2) .pain-icon { color: var(--color-accent); }
.pain-card:nth-child(3) .pain-icon { color: var(--color-purple); }

.pain-card h3 {
    margin-bottom: var(--spacing-sm);
}

.pain-card:nth-child(1) h3 { color: var(--color-primary); }
.pain-card:nth-child(2) h3 { color: var(--color-accent); }
.pain-card:nth-child(3) h3 { color: var(--color-purple); }

.pain-card p {
    color: var(--color-text-light);
}

/* ================================
   About Section
   ================================ */
.about {
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background: var(--color-primary);
    opacity: 0.04;
    border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 350px 1fr;
    }
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(44, 36, 32, 0.15);
}

.about-content h2 {
    color: var(--color-primary);
}

.about-content .highlight {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-accent);
    font-style: italic;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

/* ================================
   Services Section
   ================================ */
.services {
    background-color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: var(--color-purple);
    opacity: 0.06;
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services h2 {
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-light);
    font-size: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(44, 36, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:nth-child(1) { border-top-color: var(--color-primary); }
.service-card:nth-child(2) { border-top-color: var(--color-accent); }
.service-card:nth-child(3) { border-top-color: var(--color-purple); }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(44, 36, 32, 0.12);
}

.service-card h3 {
    color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.service-card .link-arrow {
    margin-top: auto;
}

/* ================================
   Philosophy Section
   ================================ */
.philosophy {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.philosophy blockquote {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

.philosophy blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ================================
   Testimonial Section
   ================================ */
.testimonial {
    background-color: var(--color-cream-dark);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.testimonial-text::before {
    content: '\201C';
    display: block;
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.testimonial-author {
    margin-top: var(--spacing-md);
}

.author-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ================================
   Newsletter Section
   ================================ */
.newsletter {
    background-color: var(--color-white);
}

.newsletter h2 {
    text-align: center;
}

.newsletter .section-intro {
    margin-bottom: var(--spacing-md);
}

.newsletter-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--spacing-sm) 0 var(--spacing-md);
    margin: 0 calc(-1 * var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
}

.newsletter-carousel::-webkit-scrollbar {
    height: 6px;
}

.newsletter-carousel::-webkit-scrollbar-track {
    background: var(--color-cream-dark);
    border-radius: 3px;
}

.newsletter-carousel::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.newsletter-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--color-cream);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.newsletter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(53, 47, 54, 0.12);
    border-color: var(--color-primary);
}

.newsletter-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-card-content {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex-grow: 1;
}

.newsletter-card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    flex-grow: 1;
}

.newsletter-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.newsletter-read {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: auto;
}

.newsletter-subscribe {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ================================
   CTA Section
   ================================ */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: var(--color-white);
    opacity: 0.05;
    border-radius: 50% 60% 40% 70% / 50% 40% 60% 70%;
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    opacity: 0.15;
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 60%;
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--color-white);
}

.cta p {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.95;
    font-size: 1.25rem;
}

.cta .btn-secondary {
    margin-bottom: var(--spacing-sm);
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--color-text);
    color: var(--color-cream);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--color-cream);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 767px) {
    section {
        padding: var(--spacing-lg) 0;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}
