/*
Theme Name: Stillphones
Theme URI: https://stillphones.com
Author: James Peter Brown
Author URI: https://stillphones.com
Description: Custom WordPress theme for Stillphones — wireless audio hire for art, performance & culture. Built as a child-compatible theme for use with Kadence.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: stillphones
*/

/* ============================================
   GLOBAL
   ============================================ */

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

:root {
  --void:      #0E0E0C;
  --linen:     #F4F2EC;
  --graphite:  #2C2C28;
  --driftwood: #9B8F7D;
  --warm-sand: #C9B99A;
  --rule:      rgba(14,14,12,0.12);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --pad:       clamp(20px, 5vw, 48px);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--void);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--linen);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: 60px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.nav-logo-word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--void);
  line-height: 1;
}
.nav-logo-rule { height: 1px; background: var(--void); }
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--driftwood);
  font-weight: 400;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--void); }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 8px 18px;
  border: 1px solid var(--void);
  color: var(--void);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--void); color: var(--linen); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--void);
  transition: all 0.3s;
  border-radius: 1px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--linen);
  border-bottom: 1px solid var(--rule);
  z-index: 99;
  padding: 8px 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 14px var(--pad);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer a:last-child { border-bottom: none; }

/* ============================================
   HERO
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.hero-left {
  padding: 64px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--driftwood);
  font-weight: 400;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--void);
  margin-top: 20px;
}
.hero-title em { font-style: italic; color: var(--driftwood); }

.hero-body {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.7;
  margin-top: 24px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 13px 28px;
  background: var(--void);
  color: var(--linen);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; color: var(--linen); }

.btn-ghost {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-ghost::after { content: '→'; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-stat { flex: 1; min-width: 60px; padding-right: 12px; }
.hero-stat .num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--void);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-top: 4px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  min-height: 420px;
}

/* Real photo — set as Featured Image on the page */
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-placeholder-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.4);
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-bar {
  overflow: hidden;
  padding: 12px 0;
  background: var(--void);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.5);
  padding: 0 24px;
  flex-shrink: 0;
}
.marquee-dot { color: var(--warm-sand); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SHARED SECTION UTILITIES
   ============================================ */

.sp-section { border-bottom: 1px solid var(--rule); }

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--driftwood);
  font-weight: 400;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 36px var(--pad) 28px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 300;
}

/* ============================================
   ABOUT
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
}
.about-col {
  padding: 48px var(--pad);
  border-right: 1px solid var(--rule);
}
.about-col:last-child { border-right: none; }

.about-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  margin-top: 16px;
}
.about-body {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.75;
  margin-top: 14px;
}

/* ============================================
   WORKS
   ============================================ */

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.work-card {
  padding: 36px var(--pad);
  border-right: 1px solid var(--rule);
  transition: background 0.2s;
}
.work-card:last-child { border-right: none; }
.work-card:hover { background: rgba(14,14,12,0.03); }

.work-num { font-family: var(--serif); font-size: 13px; color: var(--driftwood); font-style: italic; }
.work-title { font-family: var(--serif); font-size: 19px; font-weight: 300; margin-top: 16px; line-height: 1.2; }
.work-meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--driftwood); margin-top: 8px; }
.work-body { font-size: 13px; color: var(--graphite); line-height: 1.7; margin-top: 14px; }
.work-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 4px 10px;
  color: var(--driftwood);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-grid { display: grid; grid-template-columns: 1fr 1fr; }
.how-col { padding: 40px var(--pad); }
.how-col:first-child { border-right: 1px solid var(--rule); }

.how-body { font-size: 14px; color: var(--graphite); line-height: 1.8; }

.how-steps { margin-top: 28px; }
.how-step { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.how-step:last-child { border-bottom: 1px solid var(--rule); }
.how-step-num { font-family: var(--serif); font-size: 26px; color: var(--driftwood); line-height: 1; flex-shrink: 0; width: 28px; }
.how-step-title { font-size: 13px; font-weight: 500; color: var(--void); margin-bottom: 4px; }
.how-step-body { font-size: 13px; color: var(--graphite); line-height: 1.65; }

.equip-list { display: flex; flex-direction: column; }
.equip-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); gap: 12px; }
.equip-item:first-child { border-top: 1px solid var(--rule); }
.equip-name { font-size: 13px; color: var(--void); font-weight: 400; }
.equip-detail { font-size: 12px; color: var(--driftwood); text-align: right; flex-shrink: 0; }

/* ============================================
   PULL QUOTE
   ============================================ */

.pull-quote {
  padding: 64px var(--pad);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.quote-mark { font-family: var(--serif); font-size: 100px; line-height: 0.7; color: var(--warm-sand); font-weight: 300; }
.quote-text { font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); font-weight: 300; font-style: italic; line-height: 1.45; color: var(--void); }
.quote-attr { margin-top: 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--driftwood); }

/* ============================================
   SPECS
   ============================================ */

.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-item { padding: 36px var(--pad); border-right: 1px solid var(--rule); }
.spec-item:last-child { border-right: none; }
.spec-num { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1; }
.spec-unit { font-size: 15px; color: var(--driftwood); }
.spec-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--driftwood); margin-top: 8px; }
.spec-desc { font-size: 13px; color: var(--graphite); margin-top: 6px; line-height: 1.6; }

/* ============================================
   FAQ
   ============================================ */

.faq-list { padding: 0 var(--pad) 40px; margin-top: 28px; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--void);
  text-align: left;
  gap: 16px;
}
.faq-icon { font-size: 20px; color: var(--driftwood); flex-shrink: 0; transition: transform 0.3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; font-size: 14px; color: var(--graphite); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ============================================
   CONTACT
   ============================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }

.contact-left {
  padding: 64px var(--pad);
  border-right: 1px solid var(--rule);
  background: var(--void);
  color: var(--linen);
}
.contact-eyebrow { color: rgba(244,242,236,0.4); }
.contact-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.1;
  margin-top: 14px;
  color: var(--linen);
}
.contact-heading em { font-style: italic; color: var(--warm-sand); }
.contact-body { font-size: 14px; color: rgba(244,242,236,0.65); line-height: 1.75; margin-top: 20px; }
.contact-details { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.contact-details a { font-size: 13px; color: var(--warm-sand); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-location { font-size: 13px; color: rgba(244,242,236,0.35); }

.contact-right { padding: 64px var(--pad); }

/* Form — also applies to WPForms / CF7 with minor overrides */
.sp-form .form-row,
.sp-form .wpforms-field { margin-bottom: 22px; }

.sp-form .form-label,
.sp-form .wpforms-field-label,
.sp-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 400;
}

.sp-form input[type="text"],
.sp-form input[type="email"],
.sp-form input[type="tel"],
.sp-form textarea,
.sp-form select,
.sp-form .wpforms-field-medium {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: var(--void);
  font-family: var(--sans);
  font-weight: 300;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.sp-form input:focus,
.sp-form textarea:focus { border-color: var(--void); }
.sp-form input::placeholder,
.sp-form textarea::placeholder { color: var(--driftwood); }
.sp-form textarea { resize: vertical; min-height: 80px; }

.sp-form input[type="submit"],
.sp-form button[type="submit"],
.sp-form .wpforms-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--void);
  color: var(--linen);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 400;
  border-radius: 0;
  -webkit-appearance: none;
  transition: opacity 0.2s;
}
.sp-form input[type="submit"]:hover,
.sp-form .wpforms-submit:hover { opacity: 0.8; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 28px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-family: var(--serif); font-size: 16px; font-weight: 300; letter-spacing: 0.06em; text-decoration: none; color: var(--void); }
.footer-note { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--driftwood); }

/* ============================================
   KADENCE BLOCKS — neutralise defaults
   ============================================ */

.kb-row-layout-inner { max-width: 100% !important; }
.kadence-column { padding: 0 !important; }
.kb-section-dir-vertical .kb-row-layout-inner { padding: 0 !important; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title   { animation: fadeUp 0.7s 0.1s ease both; }
.hero-body    { animation: fadeUp 0.7s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.7s 0.3s ease both; }
.hero-stats   { animation: fadeUp 0.7s 0.4s ease both; }

/* ============================================
   RESPONSIVE — TABLET (769px–1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-col:first-child { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--rule); }

  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(2) { border-right: none; }
  .work-card:nth-child(3) { border-right: none; border-top: 1px solid var(--rule); }

  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2) { border-right: none; }
  .spec-item:nth-child(3) { border-top: 1px solid var(--rule); }
  .spec-item:nth-child(4) { border-top: 1px solid var(--rule); border-right: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--rule); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */

@media (max-width: 768px) {

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; padding: 40px var(--pad) 36px; }
  .hero-right { min-height: 280px; border-top: 1px solid var(--rule); }
  .hero-stat { min-width: 50%; flex: 0 0 50%; }
  .hero-stat:nth-child(odd) { padding-right: 12px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-col { border-right: none; border-bottom: 1px solid var(--rule); padding: 36px var(--pad); }
  .about-col:last-child { border-bottom: none; }

  /* Works */
  .works-grid { grid-template-columns: 1fr; }
  .work-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .work-card:last-child { border-bottom: none; }

  /* How it works */
  .how-grid { grid-template-columns: 1fr; }
  .how-col:first-child { border-right: none; border-bottom: 1px solid var(--rule); }

  /* Pull quote */
  .pull-quote { grid-template-columns: 1fr; gap: 0; padding: 48px var(--pad); }
  .quote-mark { font-size: 72px; margin-bottom: 8px; }

  /* Specs */
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec-item:nth-child(2) { border-right: none; }
  .spec-item:nth-child(3) { border-top: 1px solid var(--rule); }
  .spec-item:nth-child(4) { border-top: 1px solid var(--rule); border-right: none; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--rule); }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; }
}
