/* ==================================================
Whalen Digital Concierge — Apple-Inspired CSS (v2.2)
Full drop-in upgrade with refined colors, shadows, and spacing
================================================== */

/* -------------------------
THEME TOKENS
------------------------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #fbfbfd;
  --text: #1d1d1f;
  --muted: #515154;
  --border: rgba(0,0,0,0.05);

  --apple-blue: #0071e3;
  --apple-blue-600: #005bbf;

  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #e6e6e8;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.07);
  --shadow-lg: 0 14px 34px rgba(0,0,0,0.09);

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;

  --h1: clamp(2.2rem, 4vw, 2.9rem);
  --h2: 1.65rem;
  --h3: 1.2rem;

  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ==================================================
RESET & GLOBAL
================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

/* ==================================================
HEADER — FIXED ALIGNMENT
================================================== */
.apple-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(22px) saturate(130%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) 0;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

/* NAVIGATION */
.nav-menu {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.nav-menu a {
  padding: .65rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  transition: background .25s var(--ease), transform .2s var(--ease);
}

.nav-menu a:hover {
  background: rgba(0,113,227,0.12);
  color: var(--apple-blue);
}

/* Mobile nav unchanged */
.nav-toggle { display: none; }

@media (max-width:780px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    right: var(--s-3);
    top: calc(100% + .5rem);
    padding: var(--s-3);
    width: calc(100% - 2rem);
    max-width: 360px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
}

/* ==================================================
HERO
================================================== */
.hero {
  padding: calc(var(--s-6) - .5rem) 0 var(--s-5);
  text-align: center;
  background: linear-gradient(180deg, var(--gray-100), #fff);
}

/* ==================================================
FLOATING CALL
================================================== */
.floating-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--apple-blue);
  color: #fff;
  padding: .9rem 1.3rem;
  border-radius: 18px;
  font-weight: 600;
  z-index: 950;
  box-shadow: var(--shadow-md);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.floating-call:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ==================================================
SECTIONS / CARDS / BUTTONS
================================================== */
.section {
  padding: var(--s-5) 0;
  text-align: center;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 2.6rem 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  display: inline-block;
  padding: 1.1rem 2.9rem;
  font-size: 1.45rem;
  font-weight: 600;
  background: var(--apple-blue);
  color: #fff;
  border-radius: 14px;
  transition: background .2s ease, transform .15s ease;
}

.btn-primary:hover {
  background: var(--apple-blue-600);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--apple-blue);
  font-weight: 500;
}

/* ==================================================
FOOTER
================================================== */
footer {
  background: var(--gray-100);
  padding: 3rem var(--s-3);
  text-align: center;
  font-size: .85rem;
  color: #6e6e73;
}

/* ==================================================
RESPONSIVE
================================================== */
@media(max-width:768px){
  .hero h1 { font-size: 2.3rem; }
}
