/*
Theme Name: hiihop
Theme URI: https://hiihop.com
Author: hiihop
Description: Custom one-page marketing theme for hiihop — Espresso, Bone and Caramel brand system with Instrument Serif display type. Includes an enquiry form that emails will@hiihop.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiihop
*/

/* ---------- Brand tokens (hiihop Brand Kit v2.0) ---------- */
:root {
  --bone-50: #FBF9F3;
  --bone-100: #F2EFE7;
  --bone-200: #E8E3D8;
  --hairline: #DCD5C7;
  --faint: #968C80;
  --second: #5C5249;
  --ink: #1C1714;
  --ink-raised: #2A211B;
  --ink-900: #120D0A;
  --caramel-100: #F0E6CF;
  --caramel-300: #DDC084;
  --caramel-400: #D4A24A;
  --caramel-500: #C2913C;
  --caramel-600: #A87B2E;
  --caramel-700: #856017;
  --mocha-300: #C4B098;
  --mocha-500: #977A5E;
  --mocha-700: #6E563E;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-wordmark: "Space Grotesk", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--caramel-500); color: var(--ink); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--caramel-500);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
em, .em-caramel { font-style: italic; color: var(--caramel-500); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hh-rotator .letter { transition: none !important; }
  .hh-beam, .hh-glow-a, .hh-glow-b, .hh-sheen { animation: none !important; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(28, 23, 20, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 239, 231, 0.1);
}
.site-header .nav {
  max-width: 72rem; margin: 0 auto; height: 4rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .site-header .nav { padding: 0 2rem; } }
.brand-lockup { display: flex; align-items: center; gap: 0.625rem; }
.brand-lockup img { width: 34px; height: 34px; }
.brand-lockup span {
  font-family: var(--font-wordmark); font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--bone-100);
}
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 640px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--mocha-300); transition: color 0.2s; }
.nav-links a:hover { color: var(--bone-100); }
.btn-caramel {
  display: inline-block; background: var(--caramel-500); color: var(--ink);
  border: none; border-radius: 9999px; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 600; transition: background 0.2s;
}
.btn-caramel:hover { background: var(--caramel-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; background: var(--ink); text-align: center;
  padding: 6rem 1rem 4rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hh-noise {
  position: absolute; inset: 0; opacity: 0.2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}
.hh-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(242,239,231,0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(242,239,231,0.08) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
  background-position: 0 0, 15px 15px;
}
.hh-beam {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(194,145,60,0.1), transparent 55%);
  animation: hh-pulse 8s ease-in-out infinite alternate;
}
.hh-glow-a, .hh-glow-b { position: absolute; border-radius: 50%; filter: blur(60px); }
.hh-glow-a {
  top: -5rem; right: -5rem; width: 16rem; height: 16rem;
  background: rgba(194,145,60,0.25);
  animation: hh-pulse 5s ease-in-out infinite alternate;
}
.hh-glow-b {
  bottom: 10rem; left: -5rem; width: 20rem; height: 20rem;
  background: rgba(133,96,23,0.2);
  animation: hh-pulse 7s ease-in-out infinite alternate 1s;
}
.hh-edge-top {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,145,60,0.3), transparent);
}
@keyframes hh-pulse { from { opacity: 0.4; } to { opacity: 0.9; } }

.hero-inner { position: relative; z-index: 20; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--bone-100);
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  max-width: 56rem; margin: 0 auto;
}
.hero-sub {
  max-width: 36rem; margin: 1.5rem auto 0;
  color: var(--mocha-300); font-size: 1rem; line-height: 1.6;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--caramel-500); color: var(--ink);
  border-radius: 9999px; padding: 0.875rem 1.75rem; font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--caramel-400); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { width: 1.25rem; height: 1.25rem; }
.btn-ghost {
  display: inline-block; border: 1px solid rgba(242,239,231,0.2); color: var(--bone-100);
  border-radius: 9999px; padding: 0.875rem 1.75rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--caramel-500); color: var(--caramel-400); }

/* Rotating word */
.hh-rotator { position: relative; display: inline-block; }
.hh-rotator .hh-sizer { font-style: italic; visibility: hidden; }
.hh-rotator .hh-word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hh-rotator .letter {
  display: inline-block; font-style: italic; color: var(--caramel-500);
  opacity: 0; transform: translateY(20px) scale(0.9); filter: blur(5px);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s cubic-bezier(0.22,1,0.36,1);
}
.hh-rotator .hh-word.show .letter { opacity: 1; transform: none; filter: blur(0); }
.hh-rotator .hh-word.hide .letter { opacity: 0; transform: translateY(-20px) scale(0.9); filter: blur(5px); transition-duration: 0.25s; }

/* Hero glass cards */
.hero-card {
  display: none; position: absolute; bottom: 2.5rem; z-index: 30; width: 18rem;
  background: rgba(42, 33, 27, 0.4);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(242,239,231,0.1); border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  padding: 1.5rem; text-align: left;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.hero-card:hover { transform: translateY(-3px); }
@media (min-width: 1280px) { .hero-card { display: block; } }
.hero-card-left { left: 2.5rem; }
.hero-card-right { right: 2.5rem; }
.hero-card h3 { font-size: 1.5rem; color: var(--bone-100); }
.hero-card .card-note { margin-top: 0.25rem; font-size: 0.75rem; color: var(--mocha-300); }
.hero-card ul { list-style: none; margin-top: 1.25rem; }
.hero-card-left li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; font-size: 0.875rem; font-weight: 500; color: rgba(242,239,231,0.9); }
.hero-card-left li .ico {
  display: flex; align-items: center; justify-content: center;
  background: rgba(194,145,60,0.15); color: var(--caramel-400);
  border-radius: 0.5rem; padding: 0.5rem;
}
.hero-card-left li .ico svg { width: 1.25rem; height: 1.25rem; }
.hero-card-right li { background: rgba(242,239,231,0.05); border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 0.75rem; }
.hero-card-right li strong { display: block; font-weight: 500; font-size: 0.875rem; color: var(--bone-100); }
.hero-card-right li span { font-size: 0.75rem; color: var(--mocha-300); }
.card-footer-link {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(242,239,231,0.1);
  font-size: 0.875rem; color: var(--mocha-300); transition: color 0.2s;
}
.card-footer-link:hover { color: var(--caramel-400); }
.card-footer-link .arr {
  display: flex; background: rgba(242,239,231,0.1); border-radius: 9999px; padding: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.card-footer-link:hover .arr { background: var(--caramel-500); color: var(--ink); }
.card-footer-link svg { width: 1rem; height: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
@media (min-width: 640px) { .section { padding: 8rem 0; } }
.section h2 { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.05; max-width: 42rem; }
.section-sub { margin-top: 1.5rem; max-width: 36rem; color: var(--mocha-300); line-height: 1.6; }

/* Services */
.services-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  height: 100%; background: var(--ink-raised);
  border: 1px solid rgba(242,239,231,0.1); border-radius: 1rem; padding: 1.75rem;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover { border-color: rgba(194,145,60,0.5); transform: translateY(-6px); }
.service-card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(194,145,60,0.15); color: var(--caramel-400);
  border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 1.5rem;
  transition: background 0.2s, color 0.2s;
}
.service-card:hover .ico { background: var(--caramel-500); color: var(--ink); }
.service-card .ico svg { width: 1.75rem; height: 1.75rem; }
.service-card h3 { font-size: 1.5rem; color: var(--bone-100); }
.service-card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--mocha-300); line-height: 1.6; }

/* Work */
.work-section { background: var(--ink-900); }
.work-list { margin-top: 3.5rem; border-top: 1px solid rgba(242,239,231,0.1); border-bottom: 1px solid rgba(242,239,231,0.1); }
.work-row {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 2rem 0;
  border-bottom: 1px solid rgba(242,239,231,0.1);
}
.work-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .work-row { flex-direction: row; align-items: baseline; justify-content: space-between; } }
.work-row h3 { font-size: 1.5rem; transition: color 0.2s; }
@media (min-width: 640px) { .work-row h3 { font-size: 1.875rem; } }
.work-row:hover h3 { color: var(--caramel-500); }
.work-row .sector { margin-top: 0.25rem; font-size: 0.875rem; color: var(--mocha-300); }
.work-row .detail { font-size: 0.875rem; color: var(--mocha-300); }
@media (min-width: 640px) { .work-row .detail { text-align: right; } }

/* Process */
.process-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-step { border-top: 2px solid var(--caramel-500); padding-top: 1.5rem; }
.process-step .num { font-family: var(--font-wordmark); font-size: 0.875rem; font-weight: 600; color: var(--caramel-400); }
.process-step h3 { margin-top: 0.5rem; font-size: 1.5rem; color: var(--bone-100); }
.process-step p { margin-top: 0.75rem; color: var(--mocha-300); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-section { background: var(--caramel-500); color: var(--ink); }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-pitch img { width: 56px; height: 56px; margin-bottom: 1.5rem; }
.contact-pitch h2 { color: var(--ink); }
.contact-pitch .em-caramel { color: var(--ink); }
.contact-pitch p { margin-top: 1.25rem; max-width: 28rem; color: rgba(28,23,20,0.8); line-height: 1.6; }

.form-card { background: var(--ink); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-card h3 { font-size: 1.5rem; color: var(--bone-100); }
.form-row { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 0; }
.field + .field-full, .field-full { margin-top: 1rem; }
.field label, .field-full label, .pill-label {
  display: block; margin-bottom: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--bone-100);
}
.field label .req { color: var(--caramel-400); }
.field input, .field-full input, .field-full textarea {
  width: 100%; background: var(--ink-raised); color: var(--bone-100);
  border: 1px solid rgba(242,239,231,0.15); border-radius: 0.5rem;
  padding: 0.75rem 1rem; font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field-full input::placeholder, .field-full textarea::placeholder { color: var(--faint); }
.field input:focus, .field-full input:focus, .field-full textarea:focus {
  outline: none; border-color: var(--caramel-500); box-shadow: 0 0 0 1px var(--caramel-500);
}
.field-error { display: none; margin-top: 0.375rem; font-size: 0.75rem; color: var(--caramel-300); }
.field.has-error .field-error { display: block; }
.field.has-error input { border-color: var(--caramel-500); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.pill-label { margin-bottom: 0.5rem; }
.pill {
  background: transparent; border: 1px solid rgba(242,239,231,0.2); color: var(--mocha-300);
  border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.pill:hover { border-color: rgba(194,145,60,0.6); color: var(--bone-100); }
.pill[aria-pressed="true"] { background: var(--caramel-500); border-color: var(--caramel-500); color: var(--ink); }
.hh-hp { position: absolute; left: -9999px; }
.form-status { display: none; margin-top: 1rem; font-size: 0.875rem; color: var(--caramel-300); }
.form-status a { text-decoration: underline; }
.form-status.show { display: block; }
.form-submit {
  width: 100%; margin-top: 1.5rem; background: var(--caramel-500); color: var(--ink);
  border: none; border-radius: 9999px; padding: 1rem 2rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover:not(:disabled) { background: var(--caramel-400); transform: scale(1.02); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { display: none; padding: 2.5rem 0; text-align: center; }
.form-success.show { display: block; }
.form-success .tick {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem;
  background: rgba(194,145,60,0.15); color: var(--caramel-400); border-radius: 50%;
}
.form-success .tick svg { width: 1.75rem; height: 1.75rem; }
.form-success h3 { font-size: 1.875rem; color: var(--bone-100); }
.form-success p { margin: 0.75rem auto 0; max-width: 24rem; color: var(--mocha-300); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900); border-top: 1px solid rgba(242,239,231,0.1);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 2rem;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; align-items: center; } }
.footer-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; color: var(--mocha-300); }
@media (min-width: 640px) { .footer-meta { text-align: right; } }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
