/* LA Periodontics & Implant Specialists — Design System */
/* Premium medical specialist — Los Angeles */

:root {
  /* Colors */
  --clr-primary: #0a1628;
  --clr-primary-mid: #1a2e4a;
  --clr-accent: #ab8d67;
  --clr-accent-light: rgba(171, 141, 103, 0.14);
  --clr-accent-hover: #8f7350;
  --clr-bg: #ffffff;
  --clr-bg-alt: #f7f6f4;
  --clr-bg-dark: #0a1628;
  --clr-text: #1a1a1a;
  --clr-text-mid: #4a4a4a;
  --clr-text-light: #7a7a7a;
  --clr-text-on-dark: #ffffff;
  --clr-border: #e8e4df;
  --clr-star: #d4af37;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-padding: 0 32px;
  --section-padding: 96px 0;
  --section-padding-sm: 64px 0;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 24px 64px rgba(10, 22, 40, 0.14);

  /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Container */
.container { max-width: var(--container-max); margin: 0 auto; padding: var(--container-padding); }

/* Typography scale */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--clr-primary); }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p { font-size: 1rem; line-height: 1.75; color: var(--clr-text-mid); max-width: 68ch; }

/* Eyebrow label */
.eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-accent); display: block; margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; transition: all 200ms var(--ease-out); cursor: pointer; }
.btn-primary { background: var(--clr-accent); color: #fff; }
.btn-primary:hover { background: var(--clr-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1px solid currentColor; color: var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary); color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* Section spacing */
.section { padding: var(--section-padding); }
.section-sm { padding: var(--section-padding-sm); }

/* Placeholder pages */
.coming-soon { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 32px; }
.coming-soon h1 { margin-bottom: 16px; }
.coming-soon p { margin: 0 auto; color: var(--clr-text-light); }

/* WEBSITE STATUS: SCAFFOLD ONLY — Homepage build next */

/* ============================================
   SITE-WIDE STICKY CTAs + HEADER PHONE ICON
   ============================================ */

/* Header phone icon (added inline via HTML) */
.header-phone svg.header-phone-icon { display: inline-block; margin-right: 6px; vertical-align: -2px; color: var(--clr-accent); }

/* DESKTOP RIGHT-EDGE STICKY CTA */
.side-cta { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 1px; box-shadow: -4px 8px 32px rgba(10,22,40,0.16); border-radius: 10px 0 0 10px; overflow: hidden; }
.side-cta a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; transition: background 180ms var(--ease-out), color 180ms var(--ease-out); }
.side-cta .side-cta-phone { background: #ffffff; color: var(--clr-primary); border-bottom: 1px solid var(--clr-border); }
.side-cta .side-cta-phone:hover { background: var(--clr-bg-alt); color: var(--clr-accent); }
.side-cta .side-cta-btn { background: var(--clr-accent); color: #ffffff; }
.side-cta .side-cta-btn:hover { background: var(--clr-accent-hover); }
.side-cta svg { flex-shrink: 0; }
@media (max-width: 1023px) { .side-cta { display: none; } }

/* MOBILE + TABLET BOTTOM STICKY CTA (always visible, no scroll trigger) */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #ffffff; box-shadow: 0 -6px 24px rgba(10,22,40,0.14); border-top: 1px solid var(--clr-border); padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
.mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: var(--radius-md); min-height: 44px; line-height: 1; white-space: nowrap; }
.mobile-cta .mobile-cta-phone { background: var(--clr-bg-alt); color: var(--clr-primary); border: 1px solid var(--clr-border); }
.mobile-cta .mobile-cta-phone svg { color: var(--clr-accent); }
.mobile-cta .mobile-cta-btn { background: var(--clr-accent); color: #ffffff !important; }
.mobile-cta .mobile-cta-btn:hover, .mobile-cta .mobile-cta-btn:focus { background: var(--clr-accent-hover); color: #ffffff !important; }
@media (max-width: 1023px) {
  .mobile-cta { display: flex !important; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 380px) {
  .mobile-cta a { font-size: 0.82rem; padding: 12px 4px; gap: 4px; }
  .mobile-cta .mobile-cta-phone svg { display: none; }
}

/* Lightbox prev/next controls + counter (JS injects the buttons) */
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: min(1000px, 96vw); max-height: 88vh; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; background: rgba(255,255,255,0.12); border: 0; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 180ms ease; z-index: 2; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Logo → home link */
a.site-logo { cursor: pointer !important; user-select: auto !important; text-decoration: none; }
a.site-logo:hover .header-logo-img { opacity: 0.85; transition: opacity 180ms ease; }

/* ---------- Footer credit signature (RBR Growth Consulting) ---------- */
.site-footer .foot__credit {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.42);
  text-align: center;
}
.site-footer .foot__credit a { display: inline-flex; align-items: center; gap: 0.85rem; color: inherit; text-decoration: none; transition: color 180ms ease; }
.site-footer .foot__credit a:hover { color: #ffffff; }
.site-footer .foot__credit img { height: 26px; width: auto; display: block; filter: opacity(0.95) contrast(1.08) saturate(1.05); transition: filter 420ms ease, transform 420ms ease; }
.site-footer .foot__credit a:hover img { filter: opacity(1) contrast(1.1) saturate(1.15) drop-shadow(0 2px 8px rgba(220, 170, 90, 0.55)); transform: translateY(-1px); }
.site-footer .foot__credit strong { font-weight: 500; color: rgba(255,255,255,0.75); }
