/*
Theme Name: Ponyhound
Theme URI: https://ponyhound.com
Author: Ponyhound
Author URI: https://ponyhound.com
Description: Custom theme for Ponyhound digital consulting firm.
Version: 1.2.4
License: Private
Text Domain: ponyhound
*/

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --signal-orange: #ff4d00;
  --ember: #cc3d00;
  --flare: #ff7233;
  --midnight: #111827;
  --graphite: #1f2937;
  --slate: #374151;
  --steel: #6b7280;
  --fog: #d1d5db;
  --cloud: #f3f4f6;
  --white: #ffffff;
  --nav-h: 80px;
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--midnight); font-family: 'Barlow', sans-serif; overflow-x: hidden; cursor: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CURSOR ── */
.cursor { width: 12px; height: 12px; background: var(--signal-orange); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .2s, height .2s; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(255,77,0,.5); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .3s, height .3s; }
.cursor.hovering { width: 8px; height: 8px; background: var(--midnight); }
.cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(255,77,0,.8); }

/* ── NAV ── */
nav#site-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; transition: background .4s, box-shadow .4s; }
nav#site-nav.dark-nav { background: rgba(17,24,39,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,77,0,.1); }
nav#site-nav.light-nav { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
nav#site-nav.always-dark { background: rgba(17,24,39,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,77,0,.1); }
.nav-logo { height: 36px; display: block; line-height: 0; }
.nav-logo img { height: 100%; width: auto; display: block; transition: transform .3s; }
.nav-logo:hover img { transform: scale(1.03); }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--fog); position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--signal-orange); transition: width .3s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
nav#site-nav.light-nav .nav-links a { color: var(--slate); }
nav#site-nav.light-nav .nav-links a:hover { color: var(--midnight); }
.nav-cta { font-family: 'Barlow Condensed', sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 3px !important; text-transform: uppercase !important; color: var(--white) !important; background: var(--signal-orange) !important; padding: 10px 24px !important; border-radius: 2px !important; transition: background .2s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ember) !important; color: var(--white) !important; }
nav#site-nav.light-nav .nav-cta { color: var(--white) !important; }

/* ── MARQUEE ── */
.marquee-strip { background: var(--signal-orange); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--white); padding: 0 40px; }
.marquee-track .dot-sep { color: rgba(255,255,255,.4); padding: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── FOOTER ── */
footer#site-footer { background: #0a0f1a; padding: 80px 48px 40px; border-top: 1px solid var(--graphite); }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--graphite); }
.footer-logo { height: 32px; margin-bottom: 20px; display: block; }
.footer-logo img { height: 100%; width: auto; }
.footer-tagline { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--steel); line-height: 1.65; max-width: 280px; margin-bottom: 28px; }
.footer-newsletter-form { display: flex; max-width: 320px; }
.footer-newsletter-input { flex: 1; background: var(--graphite); border: 1px solid var(--slate); border-right: none; padding: 12px 16px; font-family: 'Barlow', sans-serif; font-size: 13px; color: var(--white); outline: none; border-radius: 2px 0 0 2px; transition: border-color .2s; }
.footer-newsletter-input::placeholder { color: var(--slate); }
.footer-newsletter-input:focus { border-color: var(--signal-orange); }
.footer-newsletter-btn { background: var(--signal-orange); border: none; padding: 12px 20px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); cursor: pointer; border-radius: 0 2px 2px 0; transition: background .2s; }
.footer-newsletter-btn:hover { background: var(--ember); }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--steel); transition: color .2s; }
.footer-links a:hover { color: var(--signal-orange); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-family: 'Barlow', sans-serif; font-size: 12px; color: #6b7280 !important; line-height: 1; }
.footer-copy-link { font-family: 'Barlow', sans-serif; font-size: 12px; color: #6b7280 !important; transition: color .2s; }
.footer-copy-link:hover { color: var(--signal-orange) !important; }
.footer-social-center { display: flex; align-items: center; gap: 20px; }
.footer-social-center a { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; font-weight: 700; color: #6b7280 !important; transition: color .2s; line-height: 1; }
.footer-social-center a:hover { color: var(--signal-orange) !important; }
.footer-icon { width: 28px; height: 28px; opacity: .3; transition: opacity .3s; }
.footer-icon:hover { opacity: .8; }
.footer-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s ease, width .25s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,24,39,.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 48px 32px 40px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.nav-mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.nav-mobile-links li {
  border-bottom: 1px solid var(--graphite);
}
.nav-mobile-links a {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--fog);
  padding: 20px 0;
  transition: color .2s, padding-left .2s;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.current { color: var(--white); padding-left: 6px; }
.nav-mobile-links .nav-cta-mobile {
  display: inline-block;
  margin-top: 36px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--signal-orange);
  padding: 16px 40px;
  border-radius: 2px;
  width: 100%;
  text-align: center;
  transition: background .2s;
}
.nav-mobile-links .nav-cta-mobile:hover { background: var(--ember); padding-left: 40px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  /* Disable custom cursor on touch */
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }

  /* Nav */
  nav#site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: flex; }

  /* Footer */
  footer#site-footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-newsletter-form { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
