/* ============================================================
   PRAIRIE PEAK DIGITAL — STYLES
   Brand: navy #0a1628 / gold #c9a84c
   Fonts: Montserrat (headings) / Inter (body)
============================================================= */

:root {
  --navy: #0a1628;
  --navy-2: #0e1d35;
  --navy-3: #13243f;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --white: #ffffff;
  --text: #c5cfdd;
  --text-dim: #8a99af;
  --line: rgba(255,255,255,0.08);
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--white); line-height: 1.15; }

.gold { color: var(--gold); }
.hidden { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 0.95rem 2rem; border-radius: 8px; cursor: pointer;
  transition: all 0.3s var(--ease); border: none; text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 22px rgba(201,168,76,0.28); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,0.4); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Eyebrow + titles ---------- */
.eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-intro { color: var(--text-dim); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 1.2rem; }

/* ============================================================
   HEADER
============================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0; transition: all 0.4s var(--ease);
}
.header.scrolled { background: rgba(10,22,40,0.92); backdrop-filter: blur(12px); padding: 0.7rem 0; box-shadow: 0 2px 30px rgba(0,0,0,0.4); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 46px; width: auto; transition: height 0.4s var(--ease); }
.header.scrolled .brand-logo { height: 38px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--text); transition: color 0.25s; }
.nav-link:hover { color: var(--white); }
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--white); transition: color 0.25s; }
.nav-phone svg { color: var(--gold); }
.nav-phone:hover { color: var(--gold-light); }
.nav-cta { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; background: var(--gold); color: var(--navy); padding: 0.6rem 1.4rem; border-radius: 7px; transition: all 0.3s var(--ease); }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: all 0.3s var(--ease); }

/* ============================================================
   HERO
============================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero-v10.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.68) 0%, rgba(10,22,40,0.78) 50%, rgba(10,22,40,0.99) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 80px; }
.hero-tag {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 900; letter-spacing: -0.025em; max-width: 950px; margin: 0 auto 1.6rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); font-weight: 300; max-width: 620px; margin: 0 auto 2.6rem; }
.hero-actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: 'Montserrat', sans-serif; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.hero-scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }

/* ============================================================
   PROOF BAR
============================================================= */
.proof { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.proof-item { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text); }
.proof-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ============================================================
   PROBLEM
============================================================= */
.problem { background: var(--navy); }
.problem-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.problem-text p { color: var(--text-dim); margin-bottom: 1rem; }
.problem-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-card { background: var(--navy-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1.4rem 1.6rem; }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.9rem; color: var(--text-dim); }

/* ============================================================
   SERVICES
============================================================= */
.services { background: var(--navy-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3rem; }
.service-card { position: relative; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; transition: transform 0.35s var(--ease), border-color 0.35s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.4); }
.service-card-featured { border-color: rgba(201,168,76,0.5); background: linear-gradient(160deg, var(--navy-3), var(--navy)); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.service-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 20px; }
.service-card-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.service-step { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 1rem; color: var(--gold); opacity: 0.6; }
.service-name { font-size: 1.5rem; font-weight: 800; }
.service-for { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.4rem; min-height: 2.6em; }
.service-list { list-style: none; }
.service-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; font-size: 0.93rem; color: var(--text); }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Retainer */
.retainer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2.6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.retainer h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.retainer-text { flex: 1; min-width: 280px; }
.retainer-text p { color: var(--text-dim); font-size: 0.95rem; }

.services-cta { text-align: center; }
.services-cta p { font-family: 'Montserrat',sans-serif; font-weight: 600; color: var(--white); margin-bottom: 1rem; font-size: 1.05rem; }

/* ============================================================
   HOW IT WORKS
============================================================= */
.how { background: var(--navy); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how-step { text-align: center; padding: 1rem; }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 1.4rem; }
.how-step h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.how-step p { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   WORK
============================================================= */
.work { background: var(--navy-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.work-card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s; }
.work-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.4); }
.work-img { aspect-ratio: 4/3; overflow: hidden; background: var(--navy-3); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-img img { transform: scale(1.05); }
.work-img-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.work-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; opacity: 0.85; }
.work-ph-logo { width: 90px; opacity: 0.5; }
.work-placeholder span { font-family: 'Montserrat',sans-serif; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); font-size: 0.9rem; }
.work-body { padding: 1.6rem 1.7rem; }
.work-body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.work-tag { font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.work-body p:last-child { color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================
   ABOUT
============================================================= */
.about { background: var(--navy); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }
.about-photo { position: relative; padding-bottom: 2.8rem; }
.about-photo-container { display: flex; flex-direction: column; }
.about-photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.about-badge { position: absolute; bottom: -12px; right: -10px; background: var(--gold); color: var(--navy); border-radius: 10px; padding: 0.9rem 1.2rem; max-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 5; }
.about-badge strong { display: block; font-family: 'Montserrat',sans-serif; font-size: 1.3rem; line-height: 1; }
.about-badge span { font-size: 0.74rem; font-weight: 600; line-height: 1.3; display: block; margin-top: 0.3rem; }
.about-text p { color: var(--text-dim); margin-bottom: 1.1rem; }
.about-text .btn { margin-top: 0.8rem; }

/* ============================================================
   REVIEWS
============================================================= */
.reviews { background: var(--navy-2); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 920px; margin: 0 auto; }
.review-card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.review-stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.15em; margin-bottom: 1.1rem; }
.review-card blockquote { font-size: 1.08rem; color: var(--white); line-height: 1.7; margin-bottom: 1.4rem; font-weight: 400; }
.review-name { display: block; font-family: 'Montserrat',sans-serif; font-weight: 700; color: var(--white); }
.review-src { font-size: 0.82rem; color: var(--text-dim); }

/* ============================================================
   CONTACT
============================================================= */
.contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-intro p { color: var(--text-dim); margin-bottom: 1.5rem; }
.contact-phone { display: inline-block; font-family: 'Montserrat',sans-serif; font-weight: 700; color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.4); padding-bottom: 2px; margin-right: 1.4rem; }
.contact-email { display: inline-block; font-family: 'Inter',sans-serif; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.25s; }
.contact-email:hover { color: var(--white); }
.contact-form { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--text); margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 0.4rem; padding: 0.8rem 1rem; background: var(--navy); border: 1px solid var(--line); border-radius: 8px; color: var(--white); font-family: 'Inter',sans-serif; font-size: 0.95rem; transition: border-color 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 0.5rem; }

/* ============================================================
   FOOTER
============================================================= */
.footer { background: var(--navy-2); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 50px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 280px; }
.footer-nav h4, .footer-contact h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-nav a, .footer-contact a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 0.6rem; transition: color 0.25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer-bottom span { font-size: 0.82rem; color: var(--text-dim); }

/* ============================================================
   STICKY MOBILE CALL BUTTON
============================================================= */
.mobile-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy); font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
}

/* ============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 900px) {
  .problem-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-grid, .how-grid, .work-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-badge { right: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .retainer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--navy-2); padding: 2rem 2.2rem; transform: translateX(100%);
    transition: transform 0.4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.5); z-index: 110;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .nav-cta { font-size: 1rem; padding: 0.8rem 1.6rem; }
  .nav-toggle { display: flex; z-index: 120; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 4rem 0; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Show sticky call button, add bottom padding so it doesn't cover content */
  .mobile-call { display: flex; }
  body { padding-bottom: 56px; }
  .footer-bottom { margin-bottom: 0; }
}

/* ============================================================
   MODAL OVERLAYS — Service detail popups
============================================================= */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5, 12, 25, 0.88);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 600px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.07); border: none; color: var(--white);
  font-size: 1.4rem; line-height: 1; width: 2rem; height: 2rem;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }

.modal-box h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.modal-box p { color: var(--text); margin-bottom: 1rem; }

.modal-list {
  list-style: none; margin: 1rem 0 1.4rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.modal-list li {
  padding-left: 1.4rem; position: relative; color: var(--text); line-height: 1.6;
}
.modal-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}
.modal-list strong { color: var(--white); }

.modal-outcome {
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--white) !important;
  font-style: italic;
  margin-bottom: 1.5rem !important;
}
.modal-cta { width: 100%; text-align: center; }

/* ============================================================
   WORK CARD — Live site link
============================================================= */
.work-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: color 0.2s, letter-spacing 0.2s;
}
.work-link:hover { color: var(--gold-light); letter-spacing: 0.09em; }

/* ============================================================
   ABOUT — Certificate preview
============================================================= */
.cert-preview {
  display: block;
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cert-preview:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.cert-preview img { width: 100%; display: block; }
.cert-caption {
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  padding: 0.6rem 0;
  background: var(--navy-2);
}
