:root{
  /* Palette tuned to the Silver Circle logo */
  --bg: #f2f1ed;         /* soft stone background */
  --surface: #f9f8f6;    /* elevated surfaces */
  --ink: #2e3437;        /* primary text (deep graphite) */
  --muted: #50575b;      /* secondary text */
  --brand: #40484d;      /* slate/graphite tone from logo */
  --brand-2: #5aa6a6;    /* calming teal */
  --accent: #c4a46d;     /* gentle golden accent */
  --ring: rgba(90,166,166,.35);
  --shadow: 0 6px 24px rgba(46,52,55,.08);
  --maxw: 1140px;
  --headerH: 64px;
}

@media (max-width: 800px){
    :root{ --headerH: 56px; }  /* slightly shorter on mobile */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--ink);
  background: var(--surface);

  /* 👇 make footer stick to bottom on short pages */
  min-height: 100vh;      /* fallback */
  min-height: 100dvh;     /* accounts for mobile browser UI */
  display: grid;
  grid-template-rows: auto 1fr auto; /* header | content | footer */
}

/* Layout */
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding: 32px 0; }
.section.sm { padding: 40px 0; }
.center { text-align: center; }

/* Header / Nav */
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(46,52,55,.1); backdrop-filter: saturate(1.1) blur(8px); }

.nav {
  display: flex;
  align-items: center; /* center logo + nav vertically */
  justify-content: space-between;
  gap: 16px;
  padding: 0; /* remove extra vertical padding */
  min-height: var(--headerH); /* drives logo height */
}

.brand {
    display: inline-flex;
    align-items: center;
    height: var(--headerH); /* matches header height */
    text-decoration: none;
}


.logo {
    height: calc(var(--headerH) - 2px);
    width: auto;
    display: block;
    border-radius: 5px;
    object-fit: contain;
    background: transparent;
    padding: 1px;
    transition: transform .2s ease, opacity .2s ease;
    cursor: pointer;
}

/* Hover/focus feedback */
.logo:hover,
.logo:focus-visible {
    transform: scale(1.05);
    opacity: 0.9;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center; /* vertical centering */
  gap: 20px;
  margin: 0;
  padding: 0;
}


nav a {
    display: inline-flex;
    align-items: center; /* vertical centering */
    padding-block: 12px; /* consistent hit area */
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    opacity: .9;
}

nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }

.menu-btn { display: none; border: 1px solid rgba(46,52,55,.18); background: transparent; color: var(--ink); padding: 10px 12px; border-radius: 10px; }
@media (max-width: 800px) {
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 60px; margin: 0; padding: 12px; background: #ffffff; border-bottom: 1px solid rgba(46,52,55,.1); }
  nav ul.open { display: grid; gap: 12px; }
  .menu-btn { display: inline-flex; }
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;   /* full viewport */
    }
    header { flex-shrink: 0; }
    main   { flex: 1; }    /* grow to push footer down */
    footer { flex-shrink: 0; }
}

/* Hero */
.hero { display: grid; align-items: center; min-height: 58vh; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }

h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 8px 0 14px; letter-spacing: -0.01em; color: var(--brand); }
.lead, .sub { color: var(--muted); }

.lead, .sub {
    font-size: 20px;
}

/* Buttons */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { border-color: rgba(46,52,55,.2); color: var(--brand); background: #ffffff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost:hover { background: #f1f2f2; }

/* Cards & blocks */
.card, .hero-card, .price-card, .step, .quote { background: var(--surface); border: 1px solid rgba(46,52,55,.1); border-radius: 16px; box-shadow: var(--shadow); }
.hero-card { padding: 22px; }
.card, .price-card { padding: 5px; }

/* Grids */
.about-grid { display: grid; gap: 22px; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.steps { display: grid; gap: 16px; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; position: relative; }
.step .num { position: absolute; top: 14px; right: 14px; font-weight: 900; color: rgba(69,86,93,.25); font-size: 20px; }

/* Testimonials */
.testimonials { display: grid; gap: 16px; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: 20px; min-height: 170px; display: grid; align-content: space-between; }
.quote .who { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 14px; font-weight: 900; color: white; }

/* Carousel */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid rgba(46,52,55,.1); box-shadow: var(--shadow); }
.carousel-track { display: flex; will-change: transform; transition: transform 400ms ease; }
.slide { min-width: 100%; } /* image controls height */
.slide img {
  width: 100%;
  height: auto;          /* no stretching on mobile */
  display: block;
  max-height: 70vh;      /* avoid overly tall images */
  object-fit: cover;     /* preserve scale while filling width */
}

.carousel-controls { display: flex; justify-content: space-between; position: absolute; inset: 0; pointer-events: none; }
.carousel-controls button { pointer-events: auto; align-self: center; border: none; background: #ffffff; color: var(--brand); padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow); opacity: .9; }
.carousel-controls button:hover { opacity: 1; }

.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.carousel-dots button { width: 14px; height: 16px; border-radius: 50%; border: 1px solid var(--brand); background: transparent; }
.carousel-dots button[aria-current="true"] { background: var(--brand); }

@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* Footer */
footer { border-top: 1px solid rgba(46,52,55,.1); background: #ffffffc0; }
.foot { display: grid; gap: 18px; padding: 18px 0; }
@media (min-width: 720px) { .foot { grid-template-columns: 1fr auto; align-items: center; } }
.foot small { color: var(--muted); }
.foot a { color: var(--brand); opacity: .95; }

/* === Lightbox modal for carousel images === */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;                 /* hidden until opened */
    place-items: center;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    padding: 24px;
}
.lightbox.open { display: grid; }

.lightbox__content {
    position: relative;
    max-width: 96vw;
    max-height: 90vh;
}
.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox__close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    cursor: pointer;
    font-size: 16px;
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Utility */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--accent); font-weight: 900; }

@media (max-width: 800px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;   /* full viewport */
    }
    header { flex-shrink: 0; }
    main   { flex: 1; }    /* grow to push footer down */
    footer { flex-shrink: 0; }
}

.hero-media {
    grid-column: 1 / -1;   /* keep your grid rule */
    margin: 0;
    display: flex;         /* line images up horizontally */
    gap: 16px;             /* space between images */
    align-items: center;
    padding-top: 10px;
}

.hero-image {
    display: block;
    flex: 1 1 0;           /* three equal-width images */
    min-width: 0;          /* allow shrinking to fit */
    width: auto;           /* don't force full width per image */
    height: auto;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-height: 650px;
}

/* Optional: stack on narrow screens */
@media (max-width: 640px) {
    .hero-media { flex-direction: column; }
    .hero-image { width: 100%; }
}

#why-img {
    padding-bottom: 12px;
}

#whyChoose {
    font-size: 21px;
}