/* ============================================================
   HANDSOME HELPING SOLUTIONS — styles.css
   Colors: #0a0a0a bg · #c9a84c gold · #1a2744 navy · #f5f0e8 text
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #0a0a0a;
  color: #f5f0e8;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Variables --- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-card:     #141414;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-dark:   #8b6914;
  --gold-grad:   linear-gradient(135deg, #c9a84c, #e8c97a, #c9a84c);
  --navy:        #1a2744;
  --navy-light:  #243558;
  --text:        #f5f0e8;
  --text-muted:  #9a8f78;
  --border:      rgba(201, 168, 76, 0.25);
  --shadow:      0 0 40px rgba(201, 168, 76, 0.12);
  --max-w:       1200px;
  --nav-h:       80px;
  --r:           4px;
  --ease:        0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.8; }
a  { text-decoration: none; color: inherit; }

/* --- Layout helpers --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section   { padding: 100px 0; position: relative; z-index: 1; }
.text-center { text-align: center; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title  { margin-bottom: 1rem; }
.section-sub    { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Gold inline rule */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.rule span {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* --- Canvas particles (fixed bg) --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  text-align: center;
}
.btn-gold {
  background: var(--gold-grad);
  color: #080808;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.76rem; }
.btn-full { width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--ease);
}
nav.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo mark */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-logo-text .tagline {
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 65%, rgba(26,39,68,0.45) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 85%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 20%, rgba(26,39,68,0.25) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: 80px 2rem 100px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.hero h1 { margin-bottom: 1.5rem; line-height: 1.15; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .subtitle {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.75rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 1;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* ============================================================
   SERVICE CARDS (Home)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-grad);
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.88rem; }

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  background: linear-gradient(135deg, #0d0d0d 0%, var(--navy) 50%, #0d0d0d 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.results-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 65%);
}
.results-header { text-align: center; margin-bottom: 3rem; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.result-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.result-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1424 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.cta-section p  { font-size: 1.05rem; max-width: 480px; margin: 0 auto 2rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(26,39,68,0.4) 0%, transparent 70%);
}
.page-hero h1  { margin-bottom: 1rem; }
.page-hero p   { font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ============================================================
   CONSULTING TIERS
   ============================================================ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.tier-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-5px); }

/* Featured badge */
.tier-card.featured { border-color: var(--gold); }
.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0; right: 0;
  background: var(--gold-grad);
  color: #080808;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 0.28rem 0.85rem;
  border-bottom-left-radius: var(--r);
}

/* Prestige: elevated look */
.tier-card.prestige {
  background: linear-gradient(160deg, #151515, #1a1a1a);
  border-color: rgba(201,168,76,0.5);
}

.tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: -0.25rem;
}
.tier-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}
.tier-price span { font-size: 0.88rem; font-family: 'Inter', sans-serif; font-weight: 400; color: var(--text-muted); }
.tier-description { font-size: 0.88rem; line-height: 1.75; }
.tier-divider { height: 1px; background: var(--border); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.tier-features li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.48rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.tier-best-for {
  background: rgba(201,168,76,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tier-best-for strong {
  color: var(--gold);
  display: block;
  font-size: 0.67rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.tier-addon { font-size: 0.78rem; color: var(--gold); font-style: italic; }
.tier-card .btn { width: 100%; margin-top: auto; }

/* ============================================================
   PARTNERSHIP FORM SECTION (Services page)
   ============================================================ */
.apply-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1424 100%);
  border-top: 1px solid var(--border);
}

/* ============================================================
   SERVSAFE PAGE
   ============================================================ */
.servsafe-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--ease);
}
.feature-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h4 { color: var(--gold-light); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.86rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-photo-frame {
  position: relative;
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  pointer-events: none;
  z-index: 0;
}
.about-photo {
  width: 100%;
  display: block;
  border-radius: var(--r);
  border: 1px solid rgba(201,168,76,0.35);
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: top;
}
.about-photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.about-photo-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
  transition: border-color var(--ease);
}
.about-photo-gallery img:hover { border-color: var(--gold); }

.about-content h2 { margin-bottom: 1.25rem; }
.about-content p  { margin-bottom: 1.1rem; }
.about-content p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.about-stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.about-stat .num  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.about-stat .lbl  { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 1px; }

.credentials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.credential-badge {
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* ============================================================
   FORM / CONTACT
   ============================================================ */
.form-section { background: radial-gradient(ellipse at 50% 0%, rgba(26,39,68,0.35) 0%, transparent 60%); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.form-info h3 { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 1rem; }
.form-info p  { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.contact-detail .icon { font-size: 1.1rem; color: var(--gold); }

.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-header {
  background: linear-gradient(135deg, var(--navy), #0f1e3d);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.form-header h3 { font-size: 1.2rem; color: var(--gold-light); }
.form-header p  { font-size: 0.85rem; margin-top: 0.3rem; }
.form-body iframe { display: block; width: 100%; border: none; background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand p        { font-size: 0.875rem; max-width: 280px; }
.footer-brand .tagline { color: var(--gold) !important; font-style: italic; margin-top: 0.5rem; font-size: 0.8rem !important; }

.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .about-layout   { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-wrap { position: static; max-width: 440px; margin: 0 auto; }
  .form-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    list-style: none;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li { border-bottom: 1px solid rgba(201,168,76,0.08); }
  .nav-links a { display: block; padding: 1rem 2rem; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .tiers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 70px 0; }
  .about-stats { grid-template-columns: 1fr; }
  .about-photo-gallery { grid-template-columns: 1fr; }
}
