/* base.css (theme) is loaded before this file by includes/header.php */

/* ==========================================================================
   GrowthNEXT - Home page
   ========================================================================== */

/* ---------- Hero carousel (light, photo on the right, no overlay) ---------- */
.hero { position: relative; overflow: hidden; background: #F4EFE3; min-height: 620px; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 90px;     /* room for the transparent header */
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 620px; }
.hero-slide__img {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 62%; height: 100%;
    object-fit: cover; object-position: center;
    /* soft fade into the page colour on the left and under the header - no dark overlay, no shadow */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0, #000 150px);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0, #000 150px);
    mask-composite: intersect;
}
.hero-slide .container { position: relative; z-index: 1; }
.hero-slide__content { max-width: 560px; }
.hero-slide .eyebrow { color: var(--color-accent); }
.hero-slide h1, .hero-slide .h1 { color: var(--color-heading); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.18; margin-bottom: 1rem; }
.hero-slide h1 span, .hero-slide .h1 span { color: var(--color-accent); }
.hero-slide p { font-size: 1.12rem; color: var(--color-text); max-width: 520px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions .btn-lg { font-size: 1rem; padding: .7rem 1.5rem; }

.hero-arrow {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; background: transparent;
    color: var(--color-heading); font-size: 1.5rem;
    transition: color var(--transition), transform var(--transition);
}
.hero-arrow--prev { left: max(10px, calc((100vw - var(--container)) / 2 - 60px)); }
.hero-arrow--next { right: max(10px, calc((100vw - var(--container)) / 2 - 60px)); }
.hero-arrow:hover { color: var(--color-accent); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(15, 77, 51, .25); padding: 0; transition: all var(--transition); }
.hero-dots button.is-active { width: 30px; background: var(--color-accent); }

@media (min-width: 992px) and (max-width: 1339.98px) {
    .hero-slide .container { padding-left: 64px; padding-right: 64px; }   /* keep text clear of the side arrows */
}
@media (max-width: 991.98px) {
    .hero, .hero-slide.is-active { min-height: 0; }
    .hero-slide { padding: 0 0 70px; flex-direction: column; align-items: stretch; }
    .hero-slide__img {                                  /* photo on top, fading down into the text */
        position: relative; width: 100%; height: 260px;
        -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
        -webkit-mask-composite: source-over; mask-composite: add;
    }
    .hero-arrow { top: 130px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
}

/* ---------- Who we are ---------- */
.who-visual { position: relative; }
.who-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.who-badge {
    position: absolute; right: -10px; bottom: -24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    max-width: 220px;
    box-shadow: var(--shadow-lg);
    display: flex; gap: .85rem; align-items: center;
}
.who-badge strong { font-family: var(--font-heading); font-size: 2.4rem; line-height: 1; }
.who-badge span { font-size: .82rem; line-height: 1.35; }

/* ---------- Key services ---------- */
.service-card { display: flex; flex-direction: column; color: inherit; }
.service-card:hover { color: inherit; }
.service-card h3 { color: var(--color-heading); }
.service-card .link-arrow { margin-top: auto; color: var(--color-primary); font-size: .9rem; }

/* ---------- Our services icon grid ---------- */
.services-grid-head { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.services-grid-head h2 { margin: 0; padding-right: 2rem; border-right: 2px solid var(--color-border); }
.services-grid-head h2 span { color: var(--color-secondary); }
.services-grid-head p { margin: 0; flex: 1; min-width: 260px; color: var(--color-muted); font-size: .95rem; }
@media (max-width: 575.98px) { .services-grid-head h2 { border: 0; padding: 0; } }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 767.98px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
    display: flex; gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.why-item:hover { box-shadow: var(--shadow); border-color: rgba(var(--color-primary-rgb), .3); }
.why-num { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-accent); min-width: 32px; }
.why-item h3 { font-size: 1rem; margin-bottom: .35rem; }
.why-item p { font-size: .9rem; color: var(--color-muted); margin: 0; }

/* ---------- Approach steps ---------- */
.approach-steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
    position: relative;
    counter-reset: none;
}
.approach-steps::before {
    content: '';
    position: absolute; top: 26px; left: 10%; right: 10%;
    border-top: 2px dashed rgba(var(--color-primary-rgb), .3);
}
.approach-steps li { text-align: center; position: relative; }
.approach-num {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 1rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: 0 0 0 8px var(--color-primary-light);
    position: relative;
}
.approach-steps h3 { font-size: 1rem; }
.approach-steps p { font-size: .88rem; color: var(--color-muted); }
@media (max-width: 991.98px) {
    .approach-steps { grid-template-columns: 1fr 1fr; }
    .approach-steps::before { display: none; }
}
@media (max-width: 575.98px) { .approach-steps { grid-template-columns: 1fr; } }

/* ---------- Calculators strip ---------- */
.tile-grid--tools { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ---------- Compare cards ---------- */
.compare-card { padding: 1.5rem; }
.compare-tag {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: .82rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.compare-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; margin: 0; font-size: .86rem; border-top: 1px solid var(--color-border); padding-top: .9rem; }
.compare-card dt { color: var(--color-muted); font-weight: 500; }
.compare-card dd { margin: 0; color: var(--color-heading); font-weight: 600; text-align: right; }
.compare-note { text-align: center; font-size: .82rem; color: var(--color-muted); margin: 1.5rem 0 0; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; }
.testimonial > i { color: var(--color-accent); font-size: 1.6rem; margin-bottom: .75rem; display: block; }
.testimonial blockquote { font-size: .95rem; margin: 0 0 1rem; }
.testimonial figcaption strong { display: block; color: var(--color-heading); }
.testimonial figcaption span { font-size: .85rem; color: var(--color-muted); }

/* ---------- Logo carousel ---------- */
.logo-strip { padding: 48px 0; border-top: 1px solid var(--color-border); }
.logo-strip__title { text-align: center; font-family: var(--font-heading); font-weight: 500; color: var(--color-muted); margin-bottom: 1.5rem; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
    display: grid; place-items: center;
    height: 72px; min-width: 180px;
    padding: 0 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}
.logo-item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: all var(--transition); }
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item--text { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); white-space: nowrap; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
