/* =========================
   Global / Page Layout
   ========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Fredoka", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background-color: #fff8e1;
    color: #4e342e;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* =========================
   Utility
   ========================== */

.hidden {
    display: none;
}

/* Buttons */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    border: 4px solid #8d6e63;
    background-color: #ffffff;
    color: #4e342e;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 6px 6px 0 #5d4037;
    transition:
        transform 0.15s ease,
        background-color 0.2s ease,
        box-shadow 0.15s ease;
}

.btn-primary:hover {
    background-color: #ffd9e0;
    transform: translateY(-2px);
    box-shadow: 8px 8px 0 #5d4037;
}

/* =========================
   Header & Hero
   ========================== */

.site-header {
    margin-bottom: 24px;
}

.hero {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: stretch;
}

.hero-text {
    flex: 2 1 260px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: #8d6e63;
    margin-bottom: 6px;
}

.hero-title {
    /* +15% */
    font-size: clamp(2.645rem, 4vw, 3.45rem);
    line-height: 1.1;
    color: #5d4037;
    margin-bottom: 10px;
}

.hero-subtitle {
    /* +15% */
    font-size: clamp(1.265rem, 2.4vw, 1.61rem);
    color: #6d4c41;
    margin-bottom: 12px;
}

.hero-subtitle-break {
    display: none;
}

.hero-body {
    /* 0.98rem * 1.25 */
    font-size: 1.225rem;
    line-height: 1.6;
    max-width: 32rem;
}

.hero-highlight {
    font-weight: 700;
    color: #d84315;
}

.hero-side {
    flex: 1.2 1 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.hero-badge {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #ffd9e0;
    border: 2px solid #8d6e63;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4e342e;
}

.hero-info-card {
    background-color: #fff3cd;
    border: 4px solid #8d6e63;
    border-radius: 18px;
    padding: 1.1rem 1.1rem 1.2rem;
    box-shadow: 6px 6px 0 #5d4037;
}

.hero-info-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-info-list {
    list-style: none;
    /* 0.92rem * 1.25 */
    font-size: 1.15rem;
    line-height: 1.5;
}

.hero-info-list li::before {
    content: "• ";
    color: #d84315;
}

/* =========================
   Sections
   ========================== */

.section {
    margin-top: 24px;
    border-radius: 22px;
    border: 4px solid #8d6e63;
    box-shadow: 6px 6px 0 #5d4037;
}

.section-inner {
    padding: 1.8rem 1.6rem;
}

.section--yellow {
    background-color: #fff3cd;
}

.section--green {
    background-color: #d4f5e3;
}

.section--pink {
    background-color: #ffd9e0;
}

.section--cards {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Titles & text */

.section-title {
    /* clamp(1.5, 2.6vw, 2) *1.15 */
    font-size: clamp(1.725rem, 2.6vw, 2.3rem);
    color: #5d4037;
    margin-bottom: 0.6rem;
}

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

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: #8d6e63;
    margin-bottom: 6px;
}

.section-text {
    /* 0.98rem * 1.25 */
    font-size: 1.225rem;
    line-height: 1.7;
    color: #5d4037;
}

.section-text--center {
    text-align: center;
    max-width: 40rem;
    margin: 0.4rem auto 0;
}

/* =========================
   Recipe Tool Layout
   ========================== */

.section-inner--tool {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 20px;
    align-items: flex-start;
}

.tool-copy {
    min-width: 0;
}

.input-box {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 3px solid #8d6e63;
    outline: none;
    background-color: #fffdf5;
}

input[type="text"]:focus {
    border-color: #d84315;
    box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.25);
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #d84315;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 700;
    transition:
        transform 0.15s ease,
        background-color 0.2s ease,
        box-shadow 0.15s ease;
    box-shadow: 4px 4px 0 #5d4037;
    white-space: nowrap;
}

button:hover {
    background-color: #bf360c;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #5d4037;
}

button:disabled {
    background-color: #e0a093;
    cursor: not-allowed;
    transform: none;
    box-shadow: 3px 3px 0 #8d6e63;
}

/* Loading and result */

.result-wrapper {
    margin-top: 1.4rem;
}

#loadingState {
    text-align: center;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Animated dots */
.loading-dots::after {
    content: "...";
    display: inline-block;
    width: 0;
    overflow: hidden;
    animation: dots 1s steps(4, end) infinite;
}

@keyframes dots {
    to {
        width: 1.3em;
    }
}

.result-box {
    margin-top: 1rem;
    padding: 1.2rem 1.2rem 1.3rem;
    border-radius: 16px;
    border: 3px dashed #8d6e63;
    background-color: #fffdf5;
}

.result-title {
    /* 1.2rem * 1.15 */
    font-size: 1.38rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.result-text {
    /* 0.96rem * 1.25 */
    font-size: 1.2rem;
}

/* Tool note (right side) */

.tool-note-card {
    background-color: #fffdf5;
    border-radius: 16px;
    border: 3px solid #8d6e63;
    padding: 1.1rem;
    /* 0.9rem * 1.25 */
    font-size: 1.125rem;
    line-height: 1.6;
}

.tool-note-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tool-note-text {
    color: #5d4037;
}

/* =========================
   Benefit Cards
   ========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.card {
    border-radius: 22px;
    border: 4px solid #8d6e63;
    padding: 1.4rem 1.2rem 1.5rem;
    box-shadow: 6px 6px 0 #5d4037;
    text-align: center;
    background-color: #fff3cd;
}

.card--green {
    background-color: #d4f5e3;
}

.card--pink {
    background-color: #ffd9e0;
}

.card--yellow {
    background-color: #fff3cd;
}

.card-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.7rem;
}

/* If you still keep SVGs, this is fine to leave */
.icon-svg {
    width: 44px;
    height: 44px;
    fill: #5d4037;
}

/* Emoji replacement for icons */
.card-emoji {
    font-size: 2.4rem;   /* big and friendly */
    line-height: 1;
}

.card-title {
    /* 1.3rem * 1.15 ≈ 1.5rem */
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.card-text {
    /* 0.95rem * 1.25 */
    font-size: 1.1875rem;
    line-height: 1.6;
}

/* =========================
   About Lena
   ========================== */

.section-inner--about {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 20px;
    align-items: center;
}

.about-text {
    min-width: 0;
}

.about-image-wrap {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border-radius: 50%;
    border: 4px solid #8d6e63;
    box-shadow: 8px 8px 0 #5d4037;
    object-fit: cover;
}

/* =========================
   Class Details
   ========================== */

.section-inner--details {
    text-align: left;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 1.2rem;
}

.detail {
    background-color: #fffdf5;
    border-radius: 16px;
    border: 2px solid #8d6e63;
    padding: 0.9rem 1rem;
}

.detail--wide {
    grid-column: 1 / -1;
}

.detail-label {
    /* 0.8rem * 1.25 */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8d6e63;
    margin-bottom: 0.3rem;
}

.detail-value {
    /* 0.98rem * 1.25 */
    font-size: 1.225rem;
}

.details-note {
    margin-top: 1rem;
    /* 0.95rem * 1.25 */
    font-size: 1.1875rem;
}

/* =========================
   CTA
   ========================== */

.section-inner--cta {
    text-align: center;
}

.section-inner--cta .btn-primary {
    margin-top: 1rem;
}

.cta-subtext {
    margin-top: 0.6rem;
    /* 0.9rem * 1.25 */
    font-size: 1.125rem;
}

/* =========================
   Gallery
   ========================== */

.section-inner--gallery {
    text-align: center;
}

.gallery-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.gallery-img {
    width: 100%;
    border-radius: 16px;
    border: 3px solid #8d6e63;
    object-fit: cover;
    max-height: 190px;
}

/* =========================
   Footer
   ========================== */

.site-footer {
    margin-top: 30px;
    text-align: center;
    /* 0.8rem * 1.25 */
    font-size: 1rem;
    color: #6d6d6d;
}

/* =========================
   Responsive Tweaks
   ========================== */

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
    }

    .section-inner--tool,
    .section-inner--about {
        grid-template-columns: 1fr;
    }

    .hero-subtitle-break {
        display: inline;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 18px 12px 30px;
    }

    .section-inner {
        padding: 1.4rem 1.2rem;
    }

    .hero-info-card {
        box-shadow: 4px 4px 0 #5d4037;
    }

    button {
        width: 100%;
    }

    .input-box {
        flex-direction: column;
    }
}
.hero-contact {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0,0,0,0.15);
    text-align: center;
}

/* Button */
.hero-contact-btn {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    background-color: #2f7a6f; /* soft green, adjust if needed */
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hero-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* Email under button */
.hero-contact-email {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.65);
}

.hero-contact-email a {
    color: inherit;
    text-decoration: underline;
}
