/* =========================================================
   First Call Living — Design System
   Premium, minimal, editorial. Inspired by Apple / Airbnb /
   Stripe / Amex Centurion restraint: white space, large type,
   soft shadows, subtle motion.
   ========================================================= */

:root {
  --color-ink: #14161a;
  --color-charcoal: #2b2e34;
  --color-stone: #6b7078;
  --color-mist: #eef0f2;
  --color-paper: #fbfaf8;
  --color-white: #ffffff;
  --color-gold: #a9834f;
  --color-gold-dark: #8a6a3d;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(20, 22, 26, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 22, 26, 0.10);
  --shadow-lg: 0 24px 70px rgba(20, 22, 26, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; margin: 0; color: var(--color-ink); }
p { margin: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(20, 22, 26, 0.18);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 26px 0;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.brand span { color: var(--color-gold); font-style: italic; }
.site-header:not(.is-scrolled) .brand { color: var(--color-white); }
.site-header:not(.is-scrolled) .brand span { color: #f0dcb8; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: color 0.3s var(--ease);
}
.site-header:not(.is-scrolled) .nav a:not(.nav__cta) { color: rgba(255, 255, 255, 0.92); }
.nav a:hover { color: var(--color-gold); }
.nav__cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-white) !important;
}
.nav__cta:hover { background: var(--color-gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--color-white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 19, 0.55) 0%, rgba(15, 16, 19, 0.35) 40%, rgba(15, 16, 19, 0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 120px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06;
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--color-white); }
.hero .btn--ghost:hover { border-color: var(--color-white); background: rgba(255, 255, 255, 0.08); }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-white);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-ink);
  padding: 46px 0;
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 8px; }
.trust-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold);
}
.trust-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

/* ---------- Section shared ---------- */
section { padding: 120px 0; }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  max-width: 640px;
  margin-bottom: 20px;
  font-weight: 400;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-stone);
  max-width: 580px;
  margin-bottom: 60px;
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0 0 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card__media { height: 200px; overflow: hidden; }
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card h3 {
  font-size: 1.2rem;
  margin: 24px 28px 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-stone);
  margin: 0 28px;
}

/* ---------- Membership ---------- */
.membership { background: var(--color-white); }
.membership__copy { text-align: center; margin: 0 auto; }
.membership__copy .section-title,
.membership__copy .section-sub { margin-left: auto; margin-right: auto; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.tier-card {
  position: relative;
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-md);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tier-card--featured {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
  box-shadow: var(--shadow-lg);
}
.tier-card--featured h3 { color: var(--color-white); }
.tier-card--featured .tier-price { color: rgba(255, 255, 255, 0.7); }
.tier-card--featured li { color: rgba(255, 255, 255, 0.88); }
.tier-card--featured li::before { color: var(--color-gold); }
.tier-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.tier-card h3 { font-size: 1.4rem; }
.tier-price { font-size: 0.9rem; color: var(--color-stone); }
.tier-card ul { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier-card li {
  font-size: 0.92rem;
  color: var(--color-charcoal);
  padding-left: 22px;
  position: relative;
}
.tier-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
}

/* ---------- Network ---------- */
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.network-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.network-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.network-card img { height: 240px; object-fit: cover; width: 100%; }
.network-card figcaption {
  background: var(--color-white);
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.network-card strong { font-family: var(--font-serif); font-size: 1.05rem; color: var(--color-ink); }
.network-card span { font-size: 0.85rem; color: var(--color-stone); }

/* ---------- Family ---------- */
.family { background: var(--color-white); }
.family__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.family__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.family__points { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 36px; }
.family__points li {
  font-size: 0.96rem;
  color: var(--color-charcoal);
  padding-left: 26px;
  position: relative;
}
.family__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(180deg, var(--color-ink) 0%, #1c1e23 100%);
  color: var(--color-white);
  text-align: center;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 {
  color: var(--color-white);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 20px;
}
.cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  font-size: 1.02rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-paper);
  border-top: 1px solid var(--color-mist);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer__brand p {
  margin-top: 16px;
  color: var(--color-stone);
  font-size: 0.9rem;
  max-width: 280px;
}
.brand--footer { font-size: 1.2rem; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone);
  margin-bottom: 4px;
}
.footer__col a { font-size: 0.92rem; color: var(--color-charcoal); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--color-gold-dark); }
.footer__legal {
  border-top: 1px solid var(--color-mist);
  padding: 22px 24px;
  text-align: center;
}
.footer__legal p { font-size: 0.82rem; color: var(--color-stone); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .family__inner { grid-template-columns: 1fr; gap: 40px; }
  .family__media { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 84px 0; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 100px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a, .site-header.is-scrolled .nav a, .site-header:not(.is-scrolled) .nav a { color: var(--color-ink); }
  .nav__cta { color: var(--color-white) !important; }
  .nav-toggle { display: flex; }
  .hero__content { padding-top: 100px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .trust-strip__inner { grid-template-columns: 1fr; gap: 28px; }
  .card-grid, .network-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   Services Directory & Detail Pages
   ========================================================= */

/* ---------- Solid header (for inner pages without a hero image) ---------- */
.site-header--solid {
  background: rgba(251, 250, 248, 0.92) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
}
.site-header--solid .brand { color: var(--color-ink) !important; }
.site-header--solid .brand span { color: var(--color-gold) !important; }
.site-header--solid .nav a:not(.nav__cta) { color: var(--color-charcoal) !important; }
.site-header--solid .nav-toggle span { background: var(--color-ink) !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-stone);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--color-stone); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--color-gold-dark); }
.breadcrumb .sep { color: rgba(107, 112, 120, 0.45); }
.breadcrumb .current { color: var(--color-ink); font-weight: 500; }

/* ---------- Inner page header (no hero image) ---------- */
.page-header {
  padding: 168px 0 76px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-mist);
}
.page-header__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.page-header__intro {
  font-size: 1.08rem;
  color: var(--color-stone);
  max-width: 680px;
}

/* ---------- Services directory grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-tile__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-ink);
  margin-bottom: 26px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-tile__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-tile:hover .service-tile__icon { background: var(--color-ink); color: var(--color-gold); }
.service-tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-tile p { font-size: 0.92rem; color: var(--color-stone); margin-bottom: 24px; flex: 1; }
.service-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink);
}
.service-tile__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.service-tile:hover .service-tile__link svg { transform: translateX(4px); }
.service-tile:hover .service-tile__link { color: var(--color-gold-dark); }

/* ---------- Service detail intro copy ---------- */
.service-detail__intro { max-width: 680px; margin-bottom: 56px; }
.service-detail__intro p {
  font-size: 1.05rem;
  color: var(--color-stone);
  margin-bottom: 18px;
}
.service-detail__intro p:last-child { margin-bottom: 0; }

/* ---------- Page header CTA (sub-service pages) ---------- */
.page-header__cta { margin-top: 40px; }

/* ---------- Service detail notice ---------- */
.service-detail { background: var(--color-white); }
.service-detail__notice {
  border: 1px dashed rgba(20, 22, 26, 0.18);
  border-radius: var(--radius-md);
  padding: 52px 40px;
  text-align: center;
  color: var(--color-stone);
  font-size: 1.02rem;
  background: var(--color-paper);
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .page-header { padding: 128px 0 56px; }
  .service-detail__notice { padding: 40px 24px; }
}
