/* =========================================================
   core-style.css — Mark’s Home Care
   Updated 2025-05-01
   ========================================================= */

/* ---------- 0. Design Tokens ---------- */
:root {
    /* Palette */
    --c-primary: #00BFA5;
    --c-primary-dk: #00947e;
    --c-secondary: #0077be;
    --c-accent: #38a169;
    --c-accent-dk: #2f8e58;
    --c-dark: #1A1A1A;
    --c-light: #ffffff;
    --c-surface: #f7f7f7;
    --c-highlight: #E3F2FD;
    --c-warning: #FFFBEA;

    /* Type scale */
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: clamp(1.1rem, 0.95rem + 0.5vw, 1.25rem);
    --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
    --step-3: clamp(2rem, 1.6rem + 1vw, 2.75rem);

    /* Sizes */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-1: 0 4px 20px rgba(0, 0, 0, .04);
    --section-space: 3rem;

    /* Buttons */
    --c-btn-bg: #1d7dea;
    --c-btn-bg-hover: #155ec0;

    --modern-stripe-h: 2.25rem;
}

/* ---------- Reset / Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--c-light);
    color: var(--c-dark);
}

img {
    max-width: 100%;
    display: block
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus-visible {
    color: var(--c-primary-dk)
}

p+p {
    margin-top: var(--step-0);
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    font-weight: 700;
}

/* ---------- Typography helpers ---------- */
.heading {
    font-size: var(--step-2);
    text-align: center;
    margin-bottom: var(--step-1);
}

.sub-heading {
    font-size: var(--step-1);
    text-align: center;
    margin-bottom: var(--step-0);
}

.text {
    font-size: var(--step-0);
}

.text--large {
    font-size: var(--step-1);
}

/* ---------- Layout helpers ---------- */
section {
    padding-block: var(--section-space);
}

.container--light {
    background: var(--c-light);
}

.container--offset {
    background: var(--c-surface);
}

.container--highlight {
    background: var(--c-highlight);
}

/* Narrow default wrapper (≈ 520 px) */
.content-wrapper {
    max-width: 65ch;
    margin-inline: auto;
    padding-inline: 1rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--step-1)
}

/* ---------- Media block ---------- */
.media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-inline: auto;
}

.media__img {
    width: 100%;
    height: auto;
}

/* ---------- Buttons ---------- */
.btn,
.location-btn,
.modern-card__button {
    display: inline-block;
    padding: .75rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
    text-align: center;
}

.btn:focus-visible,
.location-btn:focus-visible,
.modern-card__button:focus-visible {
    outline: 2px dashed var(--c-secondary);
    outline-offset: 2px;
}

/* primary */
.btn--primary,
.location-btn--primary,
.modern-card__button {
    background: var(--c-btn-bg);
    color: var(--c-light);
}

.btn--primary:hover,
.location-btn--primary:hover,
.modern-card__button:hover {
    background: var(--c-btn-bg-hover);
    color: var(--c-light);
}

/* tertiary */
.btn--tertiary {
    background: var(--c-light);
    color: var(--c-btn-bg);
    border: 1px solid var(--c-btn-bg);
}

.btn--tertiary:hover {
    background: #f0fffd;
}

/* secondary (location) */
.location-btn--secondary {
    background: var(--c-light);
    color: var(--c-btn-bg);
    border: 2px solid var(--c-btn-bg);
}

.location-btn--secondary:hover {
    background: #f0fffd
}

/* ---------- Brand strip ---------- */
.brand-strip{
    background: var(--c-light);          /* white, lightweight feel   */
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);/* subtle depth             */
  }
  
  .brand-strip__logo{
    max-width: 160px;                    /* scales nicely on mobile   */
    height: auto;
  }
  
  .brand-strip__text{
    font-weight: 600;
    font-size: var(--step--1);           /* same scale as old banner  */
    color: var(--c-dark);
    text-align: center;
  }
  
  /* Switch to inline row on wider screens */
  @media (min-width:480px){
    .brand-strip{
      flex-direction: row;
      justify-content: center;
      gap: 1rem;
    }
    .brand-strip__text{ text-align: left; }
  }
  


/* ---------- Banner ---------- */

.banner {
    padding: .75rem 1rem;
    background: var(--c-primary);
    color: var(--c-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
}

@media(min-width:480px) {
    .banner {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .banner__text {
        display: flex;
        align-items: center;
        line-height: 1.2;
    }
}

.banner__tag {
    display: inline-block;
    background: #fff126;
    color: var(--c-dark);
    text-align: center;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: var(--radius-sm);
    font-size: var(--step--1);
}

.banner__link {
    font-weight: 700
}

/* 1️⃣  480 px – 1023 px  → row, left-aligned text */
@media (min-width:480px) and (max-width:1023px) {
    .banner {
        flex-direction: row;
        /* already row, but we’ll be explicit   */
        justify-content: flex-start;
        /* push content to the left             */
        text-align: left;
        /* ensure inline text aligns left       */
    }

    .banner__text {
        text-align: left;
    }
}

/* 2️⃣  1024 px and up   → centred again (desktop) */
@media (min-width:1024px) {
    .banner {
        justify-content: center;
        text-align: center;
    }

    .banner__text {
        text-align: center;
    }
}

/* ---------- Hero ---------- */
.hero {
    background: var(--c-highlight);
}

.hero-content {
    max-width: 65ch;
    margin-inline: auto;
    padding: var(--section-space) 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-heading {
    font-size: var(--step-3);
}

.hero-subheading {
    font-size: var(--step-1);
    max-width: 50ch;
    margin-inline: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons .btn {
    flex: 1 1 220px
}

/* ---------- “Who we help” cards ---------- */
.modern-cards {
    display: flex;
    flex-direction: column;
    /* always stack */
    gap: 2rem;
}

/* ── Card frame & layout ─────────────────────────────────────────────── */
.modern-card {
    position: relative;
    /* stripe anchor */
    background: var(--c-light);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 0, 0, .05);
    /* soft outline   */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    /* gentle lift    */
    /* extra top-padding = stripe height + breathing room */
    padding: calc(var(--modern-stripe-h) + 1.25rem) 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ── Accent stripe (full width) ─────────────────────────────────────── */
.modern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: var(--modern-stripe-h);
    width: 100%;
    background: var(--c-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── Label sits inside the stripe ───────────────────────────────────── */
.modern-card__label {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--modern-stripe-h);
    padding: 0 .75rem;
    display: flex;
    align-items: center;
    background: transparent;
    /* kill old blue pill */
    color: var(--c-light);
    /* white text         */
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    /* above stripe       */
}

/* ── Card content ───────────────────────────────────────────────────── */
.modern-card__title {
    font-size: var(--step-1);
}

.modern-card__highlight {
    display: flex;
    gap: .75rem;
    background: var(--c-warning);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.modern-card__highlight-icon {
    font-size: 1.5rem;
}

.modern-card__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* a bit looser */
}

.modern-card__list-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.modern-card__check {
    flex: 0 0 18px;
    height: 18px;
    background: url('/assets/check.svg') center/contain no-repeat;
    margin-top: 4px;
}

/* ── CTA button, left-aligned with arrow ─────────────────────────────── */
.modern-card__button {
    margin-top: auto;
    align-self: flex-start;
}

.modern-card__button::after {
    content: "\2192";
    margin-left: .5rem;
    transition: transform .15s ease;
}

.modern-card__button:hover::after {
    transform: translateX(.25rem);
}

/* ---------- Featured box ---------- */
.featured-box {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
}

.featured-title {
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.emoji-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.emoji-list__item {
    position: relative;
    padding-left: 2.5rem;
}

.emoji-list__item::before {
    content: attr(data-emoji);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary);
    color: var(--c-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.steps__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.steps__number {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--c-secondary);
    color: var(--c-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.steps__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.list__title {
    margin: 0 0 .25rem;
    font-size: var(--step-1);
}

.steps__text {
    margin: 0;
    font-size: var(--step--1);
}

/* ---------- Location CTA ---------- */

#start-cta .heading-content {
    text-align: center;
}

.location-card {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.location-btn {
    width: 100%;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--c-primary);
    color: var(--c-light);
    text-align: center;
    padding: var(--section-space) 0;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
}

@media(min-width:480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width:768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: .875rem;
}

.card {
    background: var(--c-light);
    border-radius: var(--radius-lg)
}

.card--shadow {
    box-shadow: var(--shadow-1)
}

.testimonial {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.testimonial__header {
    display: flex;
    gap: .75rem;
    align-items: center
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.badge {
    width: 18px;
    height: 18px;
    color: var(--c-primary)
}

.testimonial__content p {
    margin: 0
}

/* ---------- Testimonial – no-avatar variant ---------- */

/* Put name + badge on one line */
.testimonial--no-avatar .testimonial__header{
    gap: 0;
    padding-left: 0;
    padding-bottom: .25rem;
  }
  
  /* Inline layout for name + badge */
  .testimonial--no-avatar .testimonial__meta{
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  
  /* hides <div class="avatar"> if left in by mistake */
  .testimonial--no-avatar .avatar{
    display:none;
  }
  
  .testimonial--no-avatar{
    padding: 1.75rem 1.5rem;   /* ↑ top/btm +.25rem, sides unchanged                */
    gap: 1.25rem;              /* ↑ header→content gap (was 1rem on the base)       */
  }
  
  /* Bold the reviewer’s name on text-only cards */
  .testimonial--no-avatar .testimonial__name{
    font-weight: 700;
  }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-dark);
    color: var(--c-light);
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: var(--step--1);
}

.footer img {
    max-width: 140px;
}

.footer a {
    color: var(--c-primary);
}

/* ---------- Utilities ---------- */
.u-sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Global tweaks ---------- */
.heading-content {
    margin-bottom: 2rem;
}

/* CTA gap */
#why-marks .heading {
    margin-top: 1.5rem;
}

#why-marks .media {
    margin-bottom: 2rem;
}

.hero-phone a {
    color: var(--c-btn-bg);
    font-weight: 600;
    font-size: larger;
}

.hero-phone a:hover,
.hero-phone a:focus-visible {
    color: var(--c-btn-bg-hover);
}

.location-card .hero-phone{
    margin-top: 1rem;   /* spacing below the buttons */
    text-align: center; /* center the line itself   */
  }