/* ============================================================
   SS Appliance Store — style.css
   ============================================================ */

/* -- Design Tokens -- */
:root {
  --blue:        #003580;
  --blue-dark:   #002660;
  --blue-mid:    #0057b8;
  --blue-pale:   #eef4ff;
  --text:        #1a1a2e;
  --text-mid:    #4b5563;
  --text-light:  #6b7280;
  --white:       #ffffff;
  --bg-light:    #f5f7fa;
  --border:      #e2e8f0;
  --gold:        #fbbf24;
  --green:       #22c55e;
  --red:         #ef4444;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
  --radius:      10px;
  --radius-sm:   6px;
  --ease:        0.22s ease;
  --max-w:       1200px;
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* -- Layout helpers -- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.section { padding: 80px 0; }
.section--light { background: var(--bg-light); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.section__header p {
  font-size: 1.05rem;
  color: var(--text-mid);
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease),
              transform var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0,53,128,0.28);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue-pale); }
.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--blue-pale);
  border-color: var(--blue-pale);
}
.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }
.logo__text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--ease);
}
.main-nav a:hover { color: var(--blue); }

.header__cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-light);
  overflow: hidden;
  padding-top: 64px;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__content { flex: 0 0 50%; }

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 22px;
}
.hero__status { min-height: 30px; margin-bottom: 28px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__image {
  flex: 1;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  align-self: flex-end;
  background: var(--border);
}
.hero__image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Status pill styles are injected by hours.js so they always
   load correctly regardless of CSS caching on hosting. */


/* ============================================================
   PRODUCTS / CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px; }
.card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card__body p {
  font-size: 0.925rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.card__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}


/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--blue);
  padding: 36px 0;
  color: var(--white);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-around;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 200px;
}
.trust-item svg { flex-shrink: 0; opacity: 0.85; }
.trust-item__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.trust-item__text span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq-item summary {
  font-size: 0.975rem;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  list-style: none;
  transition: background var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--ease);
}
.faq-item[open] > summary { background: var(--blue-pale); }
.faq-item[open] > summary::after { content: '−'; }

.faq-item__body {
  padding: 4px 22px 18px;
  font-size: 0.925rem;
  color: var(--text-mid);
  line-height: 1.7;
}


/* ============================================================
   FINANCING
   ============================================================ */
.financing {
  background: linear-gradient(135deg, #002660 0%, #0057b8 100%);
  color: var(--white);
  padding: 72px 0;
  overflow: hidden;
}
.financing__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.financing__content { flex: 0 0 55%; }
.financing__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.financing__logo-wrap {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.financing__logo { height: 48px; width: auto; }
.financing__content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.financing__content > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
.financing__fine {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 14px;
}
.financing__image { flex: 1; }
.financing__image img { width: 100%; max-width: 420px; }


/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
}
.review-card__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
}
.review-card__author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.reviews__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }


/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 64px;
  height: 64px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 0.925rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.7;
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.hours-table td { padding: 4px 6px; }
.hours-table td:first-child { font-weight: 600; color: var(--text); padding-right: 16px; }
.hours-table tr.closed td { opacity: 0.45; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding: 52px 0 32px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer__brand img { height: 32px; filter: brightness(0) invert(1); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}


/* ============================================================
   RESPONSIVE — tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid      { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid    { grid-template-columns: repeat(3, 1fr); }
  .hero__inner     { gap: 36px; }
}

/* ============================================================
   RESPONSIVE — mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* Header */
  .hamburger       { display: flex; }
  .header__cta     { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 13px 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding-top: 48px; }
  .hero__inner {
    flex-direction: column;
    gap: 36px;
    padding-bottom: 0;
  }
  .hero__content { flex: none; width: 100%; }
  .hero__image    { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }

  /* Cards */
  .cards-grid      { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-grid    { grid-template-columns: 1fr; }

  /* Financing */
  .financing__inner        { flex-direction: column; gap: 28px; }
  .financing__content      { flex: none; width: 100%; text-align: center; }
  .financing__image        { display: flex; justify-content: center; }
  .financing__image img    { max-width: 260px; width: 100%; }

  /* Trust — 2×2 grid on mobile */
  .trust-strip .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    justify-items: start;
  }
}

/* ============================================================
   RESPONSIVE — small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__title    { font-size: 1.85rem; }
  .hero__actions  { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .reviews__actions { flex-direction: column; align-items: center; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
}
