/*
Theme Name: Inverse AV
Theme URI: https://inverseav.co.uk
Author: Inverse AV
Author URI: https://inverseav.co.uk
Description: Professional AV equipment hire and event production theme for Inverse AV. Built for SEO performance, fast load times, and conversion.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inverseav
Tags: business, portfolio, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --black: #141313;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --sage: #B5CBC8;
  --sage-light: #dce8e6;
  --mid-grey: #7a7a7a;
  --light-grey: #e2e2e0;
  --accent: #F14E13;       /* brand orange */
  --accent-dark: #c93e0d;
  --text-primary: #141313;
  --text-secondary: #4a4a48;
  --text-muted: #7a7a7a;

  --font-display: 'Outfit', 'Helvetica Neue', sans-serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);

  --transition: 0.22s ease;
  --radius: 2px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--off { background: var(--off-white); }
.section--sage { background: var(--sage-light); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--gap); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  border: 1.5px solid var(--black);
  color: var(--black);
}
.btn-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(20, 19, 19, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo img {
  height: 52px;
  width: auto;
}

#site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition);
}
#site-nav a:hover { opacity: 1; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--black) !important;
  opacity: 1 !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ============================================================
   DROPDOWN NAVIGATION
   ============================================================ */
#site-nav ul { position: relative; }

#site-nav ul li { position: relative; }

#site-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 19, 19, 0.98);
  backdrop-filter: blur(12px);
  min-width: 220px;
  padding: 0.75rem 0;
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 1001;
  margin-top: 0;
}

/* Invisible bridge fills the gap between nav item and dropdown */
#site-nav ul li ul::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

#site-nav ul li:hover > ul { display: block; }

#site-nav ul li ul li { width: 100%; }

#site-nav ul li ul a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  opacity: 1;
}

#site-nav ul li ul a:hover {
  color: var(--white);
  background: rgba(241,78,19,0.15);
}

/* Services parent item gets a subtle indicator */
#site-nav ul li:has(ul) > a::after {
  content: ' ↓';
  font-size: 0.65rem;
  opacity: 0.5;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 1.5rem;
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 19, 19, 0.72) 0%,
    rgba(20, 19, 19, 0.65) 60%,
    rgba(20, 19, 19, 0.82) 100%
  );
}

@media (max-width: 768px) {
  .hero-video-overlay {
    background: rgba(20, 19, 19, 0.80);
  }
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin: 0.5rem 0 1.5rem;
  text-wrap: balance;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin: -0.5rem 0 1rem;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--accent);
  padding: 0.9rem 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  white-space: nowrap;
  flex-wrap: wrap;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

/* ============================================================
   SECTOR TAGS
   ============================================================ */
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sector-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1.5px solid var(--light-grey);
  border-radius: 2px;
  transition: border-color var(--transition), color var(--transition);
}

.sector-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   INTRO / WHO WE ARE
   ============================================================ */
.intro-section .intro-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 780px;
}

.intro-section .intro-text strong {
  color: var(--text-primary);
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-4px); }

.service-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.service-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-link:hover { gap: 0.7rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  counter-reset: steps;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--light-grey);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--light-grey);
  line-height: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--black); }

.testimonial-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.8;
  display: block;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-weight: 700;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--mid-grey);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--light-grey);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1.5px solid var(--light-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--black); }

.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  color: var(--text-secondary);
  max-width: 720px;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--accent);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-white:hover { background: var(--black); color: var(--white); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  height: 38px;
  width: auto;
  max-width: 200px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.social-links a:hover { color: var(--accent); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--black);
  padding: 10rem 0 5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--black);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.8;
}

.portfolio-item:hover img { transform: scale(1.04); opacity: 0.5; }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.portfolio-overlay span {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--light-grey); }
  .process-step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .step-number { font-size: 2.5rem; }
}
