/* =========================
   GLOBAL
========================= */

* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
}

/* constrain media (NOT svg) */
img, video, canvas { max-width: 100%; height: auto; }

/* Page wrapper used by _layouts/default.html */
.pageWrap{
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px 60px;
}

/* =========================
   HEADER (DESKTOP - unchanged)
========================= */

.siteHeader {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.headerInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;

  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* logo */
.brandBlock { display: block; text-decoration: none; color: inherit; }
.brandLogo { display: block; }

/* middle: title/subtitle/nav stacked */
.headerMid{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brandName{
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.brandTagline{
  margin-top: 6px;
  font-size: 1.05rem;
  color: #555;
  font-style: italic;
}

/* nav under subtitle aligned with title */
.mainNav{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mainNav a{
  text-decoration: none;
  font-size: 0.95rem;
  color: #111;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mainNav a:hover { background: #f2f2f2; }

.mainNav a.active{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* reviews link in shared header */
.reviewsLink{
  display: block;
  width: 100%;
  text-align: center;
  color: #c62828;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 14px 0 4px;
  font-family: "Brush Script MT", cursive;
  text-decoration: none;
  line-height: 1.1;
}

.reviewsLink:hover{
  color: #a91f23;
  text-decoration: none;
}

/* right side: CTA then socials below */
.headerRight{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 4px; /* matches title block top */
}

/* Header-only CTA */
.headerCTA{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #1e6bd6;
  border: 1px solid #1e6bd6;
  color: #fff;

  padding: 10px 16px;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.headerCTA:hover{
  background: #155bb5;
  border-color: #155bb5;
}

/* social icons */
.socialIcons{
  display: flex;
  gap: 10px;
  align-items: center;
}

.socialLink{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #eee;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;

  color: #666;
}

.socialLink svg{
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  flex: 0 0 auto !important;
  fill: currentColor !important;
}

.socialLink:hover{
  background: #f7f9ff;
  border-color: #cfd8ea;
  color: #1e6bd6;
}

/* =========================
   MOBILE ONLY (fix: prevent cut-off)
========================= */

@media (max-width: 860px){

  /* tighter header padding on phone */
  .headerInner{
    padding: 12px 14px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  /* Put logo + title on one row (feels intentional) */
  .brandBlock{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* shrink logo on mobile */
  .brandBlock img{
    width: 72px !important;
    height: auto !important;
  }

  /* title block sizing on mobile */
  .brandName{
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .brandTagline{
    font-size: 0.98rem;
    margin-top: 4px;
  }

  /* ✅ FIX: allow nav to wrap to a second row so nothing is cut off */
  .mainNav{
    margin-top: 10px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 8px;
    row-gap: 8px;
  }

  .mainNav a{
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .reviewsLink{
    margin: 12px 0 2px;
    font-size: 1.15rem;
  }

  /* CTA + socials should sit under nav on mobile, full width CTA */
  .headerRight{
    align-items: stretch;
    padding-top: 0;
    gap: 10px;
  }

  .headerCTA{
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Social links below button, left aligned, slightly bigger */
  .socialIcons{
    justify-content: flex-start;
  }

  .socialLink{
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .socialLink svg{
    width: 22px !important;
    height: 22px !important;
  }
}

/* =========================
   SHARED UI
========================= */

.card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.grid2{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px){
  .grid2{ grid-template-columns: 1fr; }
}

.grid2 > *{ min-width: 0; }
.card{ min-width: 0; }

.footer { text-align:center; margin-top: 40px; color:#666; font-size:0.92rem; }