/*
 * home-redesign.css
 * Massa Wild - Home page design system
 * Aesthetic: Refined naturalist / luxury field-guide
 * Fonts: Cormorant Garamond (display) + DM Sans (body)
 */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* --- Design Tokens --- */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    /* Nature palette */
    --color-earth:      #1a1a14;
    --color-forest:     #2c3a2a;
    --color-moss:       #4a5e40;
    --color-sage:       #7a9468;
    --color-sand:       #c8b89a;
    --color-stone:      #f0ebe2;
    --color-cream:      #faf8f4;
    --color-white:      #ffffff;

    --color-accent:     #8b6914;
    --color-accent-lt:  #c9993a;
    --color-accent-pale:#f5edda;

    /* Semantic */
    --color-text-primary:   var(--color-earth);
    --color-text-secondary: #4e4e3e;
    --color-text-muted:     #857f72;
    --color-border:         rgba(44, 58, 42, 0.12);
    --color-border-strong:  rgba(44, 58, 42, 0.25);

    /* Spacing */
    --section-py: clamp(5rem, 8vw, 8rem);
    --container-px: clamp(1.25rem, 5vw, 3rem);
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}

html,
body { width: 100%; overflow-x: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: var(--container-px);
    box-sizing: border-box;
}

@media (min-width: 601px) {
    .container {
        max-width: 1200px;
    }
}

/* --- Reveal animation --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   HERO
--------------------------------------------------------------------------- */
.hero--fullscreen {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 14, 8, 0.3) 0%,
        rgba(10, 14, 8, 0.15) 55%,
        rgba(10, 14, 8, 0.05) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-block: 8rem 6rem;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    padding: 0.3em 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero__statement {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-style: italic;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--color-accent-lt);
    padding-left: 1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero__scroll-indicator span {
    display: block;
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 100%);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85em 2em;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
}

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover {
    background: #7a5c12;
    border-color: #7a5c12;
    transform: translateY(-1px);
}

.btn-outline-light {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: var(--color-white);
    backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-forest);
    color: var(--color-forest);
}
.btn-outline:hover {
    background: var(--color-forest);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   SECTION BASE
--------------------------------------------------------------------------- */
.section {
    padding-block: var(--section-py);
}

.section--alt {
    background: var(--color-stone);
}

/* --- Section head --- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-forest);
}

.section-lead {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-top: 0.75rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
}

/* --- Text link --- */
.text-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color var(--duration);
    flex-shrink: 0;
}
.text-link:hover { color: var(--color-accent-lt); }

.text-link--arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: none;
    padding-bottom: 0;
}
.text-link--arrow svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration) var(--ease-out);
}
.text-link--arrow:hover svg { transform: translateX(4px); }

/* --- Card link --- */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-moss);
    margin-top: 1.25rem;
    transition: color var(--duration), gap var(--duration) var(--ease-out);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease-out); }
.card-link:hover { color: var(--color-accent); gap: 0.65rem; }
.card-link:hover svg { transform: translateX(3px); }

.card-link--primary { color: var(--color-accent); }
.card-link--primary:hover { color: #7a5c12; }

/* --------------------------------------------------------------------------
   SPECIALITIES
--------------------------------------------------------------------------- */
.section--specialities { background: var(--color-cream); }

.specialities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .specialities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .specialities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: none;
        margin-inline: inherit;
    }
}

@media (max-width: 900px) {
    .specialities-grid { max-width: none; margin-inline: auto; }
}

/* --- Speciality Card --- */
.speciality-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.speciality-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(44, 58, 42, 0.12);
}

/* Featured card with accent border */
.speciality-card--featured {
    border-color: var(--color-accent);
    border-width: 1.5px;
    box-shadow: 0 8px 32px rgba(139, 105, 20, 0.12);
}
.speciality-card--featured:hover {
    box-shadow: 0 24px 64px rgba(139, 105, 20, 0.2);
}

.speciality-card__media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.speciality-card--featured .speciality-card__media { aspect-ratio: 3/2.5; }

.speciality-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.speciality-card:hover .speciality-card__media img { transform: scale(1.06); }

/* Icon badge */
.speciality-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-moss);
}
.speciality-card__badge svg { width: 20px; height: 20px; }

/* Featured label */
.speciality-card__label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 0.3em 0.8em;
    border-radius: 999px;
}

/* Media dark gradient */
.speciality-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,8,0.35) 0%, transparent 50%);
    pointer-events: none;
}

.speciality-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.speciality-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-forest);
    margin-bottom: 0.6rem;
}

.speciality-card__body p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    flex: 1;
}

/* --------------------------------------------------------------------------
   BLOG GRID
--------------------------------------------------------------------------- */
.section--blog .section-head {
    align-items: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: none;
        margin-inline: auto;
    }
}

@media (max-width: 900px) {
    .blog-grid { max-width: none; margin-inline: auto; }
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(44,58,42,0.1);
}

.blog-card__media {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }

.blog-card__body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}
.blog-card__body h3 a { transition: color var(--duration); }
.blog-card__body h3 a:hover { color: var(--color-accent); }

.blog-card__body p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 3rem 0;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS
--------------------------------------------------------------------------- */
.section--testimonials { background: var(--color-forest); }

.section--testimonials .section-tag { color: var(--color-sand); }

.section--testimonials .section-head h2 {
    color: var(--color-white);
}

.section--testimonials .section-lead {
    color: rgba(255,255,255,0.65);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background var(--duration), border-color var(--duration);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}

.testimonial-card__quote-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent-lt);
    opacity: 0.6;
    flex-shrink: 0;
}

.testimonial-card p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    flex: 1;
}

.testimonial-card footer { margin-top: auto; }

.testimonial-card__author {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-sand);
}

/* --------------------------------------------------------------------------
   CTA BANNER
--------------------------------------------------------------------------- */
.section--cta { background: var(--color-accent-pale); }

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-banner__content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--color-earth);
    margin-bottom: 0.4rem;
}
.cta-banner__content p {
    font-size: 1rem;
    color: var(--color-text-primary);
}

.cta-banner__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   WHATSAPP FLOAT
--------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: var(--color-white);
    border-radius: 999px;
    padding: 0.75rem 1.25rem 0.75rem 0.9rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.whatsapp-float__icon svg { width: 28px; height: 28px; }

.whatsapp-float__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.whatsapp-float__text strong { font-size: 0.875rem; font-weight: 600; }
.whatsapp-float__text small  { font-size: 0.7rem; opacity: 0.85; }

@media (max-width: 600px) {
    .whatsapp-float__text { display: none; }
    .whatsapp-float { padding: 0.75rem; border-radius: 50%; }
    .whatsapp-float__icon { width: 38px; height: 38px; }
    .whatsapp-float__icon svg { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-content { padding-block: 6rem 4rem; }
    .hero__title { font-size: clamp(2.75rem, 14vw, 4rem); }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .cta-banner__actions { justify-content: center; }

    .speciality-card--featured { margin-top: 0; }
}

/* --- Scroll-reveal JS hook --- */
/* In your app.js, add an IntersectionObserver that adds .is-visible to .reveal elements */
