/* Family First 365 — custom one-page site. Mobile-first, vanilla CSS. */

:root {
  --slate-950: #141926;
  --slate-900: #1a2130;
  --slate-800: #242d42;
  --ink: #1e293b;
  --muted: #5b6478;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --amber: #c47a4d; /* warm terracotta */
  --amber-dark: #a05f36;
  --amber-soft: #f8e9dc;
  --line: #e5e9f0;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--slate-950); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  min-height: 52px;
  line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1a1206; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--slate-900); border-color: var(--slate-900); }
.btn-outline:hover { background: var(--slate-900); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-phone { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); padding: 10px 16px; min-height: 44px; font-size: 15px; }
.btn-phone:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 25, 38, .97);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
  margin-right: auto; white-space: nowrap;
}
.wordmark strong { color: var(--amber); }
.wordmark-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--amber); color: #1a1206;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; flex: none;
}
.wordmark-logo {
  height: 46px; width: auto; border-radius: 10px; display: block; flex: none;
  background: #fff;
}
.footer-logo {
  width: 120px; height: auto; border-radius: 12px; display: block;
  margin-bottom: 12px; background: #fff;
}
.site-nav { display: none; }
.site-nav a {
  color: #dbe2ef; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 4px;
}
.site-nav a:hover { color: var(--amber); }
.header-cta { display: none; gap: 10px; align-items: center; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 12px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 3px; background: #fff; border-radius: 2px; display: block; }

/* mobile nav open state */
.site-header.nav-open .site-nav {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--slate-950); padding: 8px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.site-header.nav-open .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--slate-950) 0%, var(--slate-800) 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid { display: grid; gap: 36px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero-sub { font-size: 1.15rem; color: #c9d3e6; margin-bottom: 28px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--slate-950); }
.hero-media img { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.4); }

.trust-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 15px; color: #c9d3e6;
}
.trust-badges .badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: #1a1206; font-size: 13px; font-weight: 800;
  margin-right: 8px; vertical-align: -4px;
}
.trust-badges strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 12px;
}
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 44rem; }
.center { text-align: center; }
.narrow { max-width: 640px; margin: 0 auto; }
.narrow .btn { margin-top: 20px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 18px rgba(20,25,38,.05);
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; }

/* ---------- Service details ---------- */
.details-grid { display: grid; gap: 28px; margin-bottom: 40px; }
.detail-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.detail-block h3 {
  font-size: 1.35rem; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 3px solid var(--amber);
}
.detail-block h4 { font-size: 1.05rem; margin: 18px 0 6px; }
.detail-block h4:first-of-type { margin-top: 0; }
.detail-block p { color: var(--muted); font-size: 16px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 16px rgba(20,25,38,.05);
}
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* ---------- Video cards ---------- */
.video-cards { display: grid; gap: 16px; }
.video-card {
  display: block; text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--slate-900), var(--slate-950));
  border-radius: var(--radius); padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: transform .15s ease;
}
.video-card:hover { transform: translateY(-3px); }
.video-card:hover .play { background: var(--amber-dark); }
.play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber); color: #1a1206; font-size: 22px;
  margin-bottom: 14px; padding-left: 4px;
}
.video-title { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.video-sub { display: block; color: #aeb9cf; font-size: 15px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(20,25,38,.15); }
.about-copy h2 { margin-bottom: 16px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy .trust-badges { color: var(--ink); margin: 20px 0 28px; }
.about-copy .trust-badges strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 16px; margin-bottom: 40px; }
.contact-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--slate-950); color: #fff;
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .15s ease;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin: 12px 0 6px; }
.contact-big { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; overflow-wrap: anywhere; }
.contact-card p:last-child { color: #aeb9cf; font-size: 15px; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(196,122,77,.15); color: var(--amber); font-size: 24px;
}
.contact-meta { display: grid; gap: 24px; }
.contact-meta h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-meta p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: #aeb9cf; padding: 48px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 32px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand strong { color: var(--amber); }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--amber); }
.social { display: flex; gap: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px; text-align: center; font-size: 14px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .video-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-meta { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 5fr 6fr; }
  .footer-grid { grid-template-columns: 2fr 2fr 1fr; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; gap: 22px; }
  .header-cta { display: flex; }
  .hero-grid { grid-template-columns: 6fr 5fr; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .video-cards { grid-template-columns: repeat(4, 1fr); }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-block:first-child { grid-row: span 2; }
  .section { padding: 88px 0; }
}

/* ============ CALENDLY BOOKING ============ */
.calendly-inline-widget {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ============ BLOG ============ */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.post-list { display: grid; gap: 20px; margin: 8px 0 40px; }
.post-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; text-decoration: none; color: inherit; background: var(--bg);
  transition: border-color .15s ease;
}
.post-card:hover { border-color: var(--amber); }
.post-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.post-card:hover h2 { color: var(--amber-dark); }
.post-meta { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.post-card p { color: var(--muted); margin: 0; }
.post-body { max-width: 740px; }
.post-body p { margin-bottom: 1.15em; }
.post-body h2 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.post-body ul { margin: 0 0 1.15em 1.2em; }
.post-body li { margin-bottom: .5em; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--amber-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.post-cta { margin-top: 48px; }
