/*
 * Home page template styles (template-home.php)
 * Mobile-first.
 */

:root {
    --color-bg: #f6f6f6;
    --color-bg-soft: #fff7ee;
    --color-primary: #f7941d;
    --color-primary-dark: #e27e00;
    --color-accent-soft: #ffe1b5;
    --color-text-main: #222222;
    --color-text-muted: #666666;
    --color-card-bg: #ffffff;
    --color-border-soft: #f0e6db;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --container-width: 1120px;
}

.home-template {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #fdf7f1 0%, #ffffff 40%, #fdf7f1 100%);
    color: var(--color-text-main);
}

.home-template * {
    box-sizing: border-box;
}

.home-template a {
    text-decoration: none;
}

.home-template__outer {
    min-height: 100vh;
}

.home-template__container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* HERO */

.hero {
    position: relative;
    margin-bottom: 2.5rem;
}

.hero__shell {
    position: absolute;
    inset: -80px -32px auto;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 60%),
        linear-gradient(135deg, #f9e0c2 0%, #ffe8d0 35%, #fdf5ef 70%, #ffffff 100%);
    opacity: 0.6;
    filter: blur(40px);
    pointer-events: none;
}

.hero__card {
    position: relative;
    background: linear-gradient(145deg, #fdf9f3 0%, #ffe6c7 40%, #fdd29a 100%);
    border-radius: 32px;
    padding: 1.5rem 1.4rem 1.8rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 10%, #ffe9c9 0, #f7941d 40%, #f26c1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hero__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero__brand-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
}

.hero__brand-subtitle {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.6);
}

.hero__menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hero__menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #444;
    border-radius: 999px;
    position: relative;
}

.hero__menu-toggle span::before,
.hero__menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: #444;
    border-radius: 999px;
}

.hero__menu-toggle span::before {
    top: -5px;
}

.hero__menu-toggle span::after {
    top: 5px;
}

.hero__body {
    display: grid;
    gap: 1.75rem;
}

.hero__content {
    max-width: 560px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.8rem;
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-primary);
}

.hero__title {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.hero__title span {
    color: var(--color-primary-dark);
}

.hero__subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.5);
    color: #222222;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.6);
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero__meta-badge {
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    color: #000;
}

.hero__image {
    position: relative;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.hero__image-main {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: url("../hero-cat-placeholder.jpg") center/cover no-repeat,
        linear-gradient(135deg, #7db9e8 0%, #f7941d 60%, #ffd194 100%);
    aspect-ratio: 4 / 5;
}

.hero__image-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.5), transparent 50%);
    mix-blend-mode: screen;
    opacity: 0.7;
}

.hero__badge-floating {
    position: absolute;
    bottom: 0.7rem;
    left: 0.8rem;
    padding: 0.6rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    font-size: 0.76rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__badge-title {
    font-weight: 600;
}

.hero__badge-sub {
    color: var(--color-text-muted);
}

.hero__badge-stars {
    color: #f5a623;
    font-size: 0.8rem;
}

/* SERVICES */

.section {
    margin-bottom: 2.8rem;
}

.section__header {
    margin-bottom: 1.4rem;
}

.section__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    margin-bottom: 0.3rem;
}

.section__title {
    font-size: 1.25rem;
}

.section__intro {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.services {
    display: grid;
    gap: 0.9rem;
}

.service-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 0.8rem;
}

.service-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 16px;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.service-card__title {
    font-size: 0.98rem;
    font-weight: 600;
}

.service-card__text {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.service-card__tag {
    font-size: 0.72rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    white-space: nowrap;
}

/* FEATURED STORY */

.story {
    background: var(--color-card-bg);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.story__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: url("../lake-cat-placeholder.jpg") center/cover no-repeat,
        linear-gradient(135deg, #96d1ff 0%, #fef2d3 60%, #f9d29d 100%);
}

.story__content {
    padding: 1.4rem 1.3rem 1.6rem;
}

.story__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
}

.story__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.story__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.story__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.story__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* TESTIMONIALS */

.testimonials__grid {
    display: grid;
    gap: 0.9rem;
}

.testimonial {
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
}

.testimonial__rating {
    color: #f5a623;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.testimonial__text {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.testimonial__author {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* CTA BANNER */

.cta-banner {
    background: linear-gradient(145deg, #ffb347 0%, #ff8c42 40%, #ff6f3c 100%);
    border-radius: 26px;
    padding: 1.4rem 1.3rem 1.6rem;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    margin-bottom: 2.6rem;
}

.cta-banner__eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.2rem;
}

.cta-banner__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cta-banner__text {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
    opacity: 0.95;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn--light {
    background: #ffffff;
    color: #111111;
}

.btn--light:hover {
    background: #f6f6f6;
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* FOOTER INFO */

.home-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-soft);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.home-footer__top {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
}

.home-footer__nav a {
    color: var(--color-text-muted);
}

.home-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.home-footer__social {
    display: flex;
    gap: 0.5rem;
}

.home-footer__social a {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* RESPONSIVE */

@media (min-width: 640px) {
    .hero__card {
        padding: 1.8rem 1.8rem 2.1rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .home-template__container {
        padding: 2.3rem 1.5rem 4rem;
    }

    .hero__body {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        align-items: center;
    }

    .hero__title {
        font-size: 2.6rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .story {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    }

    .story__image {
        aspect-ratio: auto;
        min-height: 260px;
    }

    .cta-banner {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 1.8rem;
    }
}

@media (min-width: 1120px) {
    .hero__title {
        font-size: 2.9rem;
    }

    .home-footer__top {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }
}
