/*
Theme Name: Ali Saad
Description: Custom design for Ali Saad Financial Behavioral Coaching. Dark/gold/cream design system with Playfair Display and DM Sans.
Version: 1.0.0
Author: Ali Saad
*/

:root {
  --ink:       #0e0c09;
  --dark:      #1a1610;
  --dark2:     #111008;
  --cream:     #f5f0e8;
  --warm:      #ede6d6;
  --parchment: #faf7f2;
  --white:     #ffffff;
  --gold:      #c9a84c;
  --gold-lt:   #e0bb6a;
  --gold-line: rgba(201,168,76,0.28);
  --mid:       #5a5040;
  --muted:     #8a7a60;
  --rule:      rgba(14,12,9,0.1);
  --nav-h:     72px;
}

/* Keep fixed nav below the WP admin bar when logged in */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

/* ══════════════════════════════════════════════════════════
   SHARED SHELL — nav / mobile menu / footer for pages that
   don't carry their own full inline design (generic pages,
   pillars template, posts). Scoped under body.asd-shell.
   ══════════════════════════════════════════════════════════ */

body.asd-shell { font-family: 'DM Sans', sans-serif; }

.asd-shell .nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(14,12,9,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--gold-line);
  box-sizing: border-box;
}

.asd-shell .nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--cream);
  text-decoration: none;
}

.asd-shell .nav-logo span { color: var(--gold); }
.asd-shell .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }

.asd-shell .nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.asd-shell .nav-links a:hover, .asd-shell .nav-links a.active { color: var(--gold); }

.asd-shell .nav-cta {
  color: var(--gold) !important;
  border: 0.5px solid rgba(201,168,76,0.4);
  padding: 9px 22px;
  background: rgba(201,168,76,0.1);
  transition: background 0.2s !important;
}

.asd-shell .nav-cta:hover { background: rgba(201,168,76,0.2) !important; }

.asd-shell .nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.asd-shell .nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); }

.asd-shell .mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(14,12,9,0.97);
  backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.asd-shell .mobile-menu.open { display: flex; }
.asd-shell .mobile-menu a { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 400; color: var(--cream); text-decoration: none; transition: color 0.2s; }
.asd-shell .mobile-menu a:hover { color: var(--gold); }

.asd-shell .footer {
  background: var(--dark2);
  border-top: 0.5px solid var(--gold-line);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asd-shell .footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; font-style: italic; color: var(--cream); text-decoration: none; }
.asd-shell .footer-logo span { color: var(--gold); }
.asd-shell .footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; margin: 0; padding: 0; }

.asd-shell .footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.asd-shell .footer-links a:hover { color: var(--gold); }
.asd-shell .footer-copy { font-size: 11px; color: rgba(245,240,232,0.2); margin: 0; }

@media (max-width: 768px) {
  .asd-shell .nav { padding: 0 24px; }
  .asd-shell .nav-links { display: none; }
  .asd-shell .nav-burger { display: flex; }
  .asd-shell .footer { flex-direction: column; gap: 20px; text-align: center; padding: 28px 24px; }
}

/* ══════════════════════════════════════════════════════════
   GENERIC PAGE DESIGN — any page created in wp-admin gets
   this automatically (dark hero + parchment content).
   ══════════════════════════════════════════════════════════ */

body.asd-shell { margin: 0; }
.asd-page { display: block; background: var(--parchment); color: var(--ink); }

.asd-page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 88px) 48px 72px;
  position: relative;
  overflow: hidden;
}

.asd-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.asd-page-hero-inner { max-width: 880px; margin: 0 auto; position: relative; }

.asd-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.asd-label::before { content: ''; width: 26px; height: 1px; background: var(--gold); display: block; }

.asd-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
}

.asd-page-body { padding: 72px 48px 96px; }
.asd-page-content { max-width: 880px; margin: 0 auto; }

.asd-page-content h1,
.asd-page-content h2,
.asd-page-content h3,
.asd-page-content h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 2.2em 0 0.6em;
}

.asd-page-content h1:first-child,
.asd-page-content h2:first-child,
.asd-page-content h3:first-child { margin-top: 0; }

.asd-page-content h2 { font-size: clamp(28px, 3.4vw, 40px); }
.asd-page-content h3 { font-size: clamp(22px, 2.6vw, 28px); }
.asd-page-content h2 em, .asd-page-content h3 em { font-style: italic; font-weight: 400; color: var(--gold); }

.asd-page-content p, .asd-page-content li { font-size: 15.5px; color: var(--mid); line-height: 1.9; }
.asd-page-content p { margin: 0 0 18px; }
.asd-page-content strong { color: var(--ink); font-weight: 600; }
.asd-page-content a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.4); transition: border-color 0.2s; }
.asd-page-content a:hover { border-color: var(--gold); }
.asd-page-content ul, .asd-page-content ol { margin: 0 0 18px; padding-left: 22px; }
.asd-page-content li { margin-bottom: 8px; }
.asd-page-content img { max-width: 100%; height: auto; border-radius: 3px; }
.asd-page-content hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

.asd-page-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.07);
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  border-radius: 0 3px 3px 0;
}

.asd-page-content blockquote p { font-size: inherit; color: inherit; margin: 0; }

.asd-page-content .wp-block-button__link,
.asd-page-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.asd-page-content .wp-block-button__link:hover,
.asd-page-content .wp-element-button:hover { background: var(--gold-lt); transform: translateY(-2px); }

@media (max-width: 768px) {
  .asd-page-hero { padding: calc(var(--nav-h) + 56px) 24px 52px; }
  .asd-page-body { padding: 52px 24px 72px; }
}

/* ---------- Brand logo image (nav + footer, all pages) ---------- */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo-img { height: 46px; width: auto; display: block; }
.footer-logo { display: inline-block; }
.footer-logo-img { height: 58px; width: auto; display: block; }

@media (max-width: 640px) {
  .nav-logo-img { height: 38px; }
  .footer-logo-img { height: 48px; }
}

/* ---------- Floating contact widget (all pages) ---------- */
.asd-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
}

.asd-fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #d8b95e, #c9a84c 55%, #a8873a);
  color: #0e0c09;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.asd-fab-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.6); }
.asd-fab-btn svg { width: 24px; height: 24px; transition: transform 0.25s, opacity 0.2s; }
.asd-fab-close { display: none; }
.asd-fab.open .asd-fab-open { display: none; }
.asd-fab.open .asd-fab-close { display: block; }

.asd-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.asd-fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.asd-fab.open .asd-fab-menu { pointer-events: auto; }
.asd-fab.open .asd-fab-item { opacity: 1; transform: translateY(0) scale(1); }
.asd-fab.open .asd-fab-item:nth-last-child(1) { transition-delay: 0.02s; }
.asd-fab.open .asd-fab-item:nth-last-child(2) { transition-delay: 0.06s; }
.asd-fab.open .asd-fab-item:nth-last-child(3) { transition-delay: 0.1s; }
.asd-fab.open .asd-fab-item:nth-last-child(4) { transition-delay: 0.14s; }
.asd-fab.open .asd-fab-item:nth-last-child(5) { transition-delay: 0.18s; }
.asd-fab.open .asd-fab-item:nth-last-child(6) { transition-delay: 0.22s; }

.asd-fab-label {
  background: rgba(14, 12, 9, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #f5f0e8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.asd-fab-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 12, 9, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.asd-fab-ico svg { width: 20px; height: 20px; }

.asd-fab-item:hover .asd-fab-ico {
  background: #c9a84c;
  color: #0e0c09;
  border-color: #c9a84c;
  transform: scale(1.08);
}

.asd-fab-item:hover .asd-fab-label { border-color: rgba(201, 168, 76, 0.7); color: #fff; }

@media (max-width: 640px) {
  .asd-fab { right: 16px; bottom: 16px; }
  .asd-fab-btn { width: 52px; height: 52px; }
}

/* ---------- Footer social row (all pages) ---------- */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 10px;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-link svg { width: 19px; height: 19px; }

.footer-social-link:hover {
  background: #c9a84c;
  color: #0e0c09;
  border-color: #c9a84c;
  transform: translateY(-3px);
}

/* Attention pulse on the floating button */
@keyframes asdPulse {
  0% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(201, 168, 76, 0.55); }
  70% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 16px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(201, 168, 76, 0); }
}

.asd-fab:not(.open) .asd-fab-btn { animation: asdPulse 2.4s ease-out infinite; }
