/* =============================================
   MURRAY MEDIA — STYLES
   Red Bull aesthetic: pure black, white, sharp
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Skip Link (keyboard accessibility) --- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* --- Root Variables --- */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-dark: #1A1A1A;
  --gray-mid: #333333;
  --gray-text: #E5E5E5;
  --gray-muted: #999999;
  --gray-border: rgba(255,255,255,0.12);
  --blue-hover: #00D4FF;
  --nav-h: 80px;
  --max-w: 1600px;
  --pad-desktop: 48px;
  --pad-mobile: 16px;
  --section-v: 120px;
  --section-v-mobile: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 320px;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0 0 24px;
}

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

/* --- Image sharpness --- */
img {
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}


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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  /* transparent outer wrapper always */
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* When scrolled: full-width solid bar, pill fades */
.nav.scrolled {
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  width: 100%;
  padding: 0 clamp(16px, 3.5vw, 64px);
  display: flex;
  align-items: center;
  height: 100%;
  position: relative; /* for absolute-centered pill */
}

.nav-logo {
  flex-shrink: 0;
  z-index: 1;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* ── Floating pill (Red Bull style) ── */
.nav-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(12, 12, 12, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 6px 8px;
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease, opacity 0.45s ease;
}

/* When scrolled: pill keeps border, just loses frosted background */
.nav.scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-pill .nav-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 9px 20px;
  border-radius: 100px;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-pill .nav-link:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

/* Right side: CTA + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  z-index: 1;
}

.nav-cta {
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.75);
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 26px;
  height: 16px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1002;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 96px 32px 40px;
  gap: 0;
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-drawer.open { right: 0; }

.drawer-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: opacity 0.2s;
}
.drawer-link:hover { opacity: 0.6; }

.drawer-cta {
  margin-top: 28px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  transition: background 0.25s, color 0.25s;
}

.drawer-cta:hover { background: var(--white); color: var(--black); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }


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

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

/* Subtle bottom fade */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  /* Pad top to account for fixed nav; pad sides flush to viewport with clamp */
  padding: var(--nav-h) clamp(16px, 3.5vw, 64px) 0;
  color: var(--white);
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0.75;
  display: block;
}

.hero-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 44px;
  opacity: 0.9;
  color: var(--gray-text);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll to explore indicator — right side */
.hero-scroll-cue {
  position: absolute;
  bottom: 48px;
  right: clamp(16px, 3.5vw, 64px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll-cue span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0.9; }
}


/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
}

.btn-outline {
  padding: 14px 36px;
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 28px rgba(255,255,255,0.18);
}

.btn-ghost {
  padding: 14px 36px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  color: rgba(255,255,255,0.7);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}


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

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(48px, 7vw, 96px);
  text-align: center;
  margin-bottom: 64px;
  line-height: 1;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-muted);
  text-align: center;
  max-width: 500px;
  margin: -44px auto 64px;
  line-height: 1.65;
}

.section-header {
  text-align: center;
}

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
  width: 100%;
}


/* =============================================
   SERVICES SECTION
   ============================================= */

.services {
  background: var(--black);
  padding: var(--section-v) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2px, 0.3vw, 4px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
  width: 100%;
}

/* Service Card — Red Bull sharp-corner style */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--gray-dark);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: scale(1.02);
  z-index: 2;
}

.card-image {
  position: absolute;
  inset: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .card-image img {
  transform: scale(1.08);
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  z-index: 1;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  z-index: 2;
  color: var(--white);
}

.card-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-muted);
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.card-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.75);
}

.card-features {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Pricing — new structure */
.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price-old {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gray-muted);
  text-decoration: line-through;
  line-height: 1;
}

.price-current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: var(--white);
  line-height: 1;
}

.price-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  margin-top: 2px;
}

.package-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

.card-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}


/* =============================================
   PORTFOLIO SECTION — 5-row grid layout
   ============================================= */

.portfolio {
  background: var(--black);
  padding: 60px 0 0;
  margin-top: -20px;
}

.portfolio-grid {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Every row */
.portfolio-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

/* Row 1: 3 horizontal photos */
.row-3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Row 2: 2 photos centered (2/3 width) */
.row-2col-center {
  grid-template-columns: repeat(2, 1fr);
  padding: 0 16.666%;
}

/* Row 3: 2×2 grid (blue) */
.row-2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

/* Rows 4 & 5: 3 photos each (purple) */

/* Portfolio item base — full natural ratio, zero cropping */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-dark);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
  line-height: 0; /* removes inline gap under img */
}

.portfolio-item img {
  width: 100%;
  height: auto;          /* natural ratio — never cropped */
  display: block;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.portfolio-item:hover {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 0 28px 4px rgba(255,255,255,0.15);
  transform: scale(1.005);
  z-index: 10;
}

/* Force uniform 4:5 ratio (matching iOS photo) — centers crop top/bottom */
.row-uniform-ratio .portfolio-item {
  aspect-ratio: 4 / 5;
}
.row-uniform-ratio .portfolio-item img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.portfolio-expand-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.portfolio-item:hover .portfolio-expand-icon {
  opacity: 1;
  transform: scale(1);
}

.portfolio-expand-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
}

.portfolio-footer {
  text-align: center;
  padding: 64px 0 var(--section-v);
  border-top: 1px solid var(--gray-border);
  margin-top: 8px;
}


/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials {
  /* Organic grey mesh gradient — random radial blobs, not linear */
  background:
    radial-gradient(ellipse 65% 55% at 8%  18%, #2c2c2c 0%, transparent 100%),
    radial-gradient(ellipse 45% 65% at 92% 12%, #131313 0%, transparent 100%),
    radial-gradient(ellipse 75% 45% at 55% 78%, #252525 0%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 22% 88%, #1c1c1c 0%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 78% 62%, #2a2a2a 0%, transparent 100%),
    radial-gradient(ellipse 35% 55% at 48% 38%, #181818 0%, transparent 100%),
    #1e1e1e;
  padding: var(--section-v) 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.testimonial-card {
  background: var(--gray-dark);
  padding: 44px 36px;
  transition: background 0.3s ease;
}

.testimonial-card:hover {
  background: #222222;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.testimonial-author-role {
  font-size: 13px;
  color: var(--gray-muted);
}


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

.contact {
  background: var(--black);
  padding: var(--section-v) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-muted);
  margin-bottom: 20px;
  display: block;
}

.contact-title {
  font-size: clamp(44px, 5vw, 72px);
  margin-bottom: 24px;
  line-height: 1;
}

.contact-body {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-ico {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-ico svg {
  width: 16px;
  height: 16px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-meta {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-muted);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-muted);
  padding: 0 0 6px;
}

.form-control {
  width: 100%;
  padding: 16px 18px;
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  margin-bottom: 1px;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder { color: rgba(255,255,255,0.25); }

.form-control:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: #111;
}

.form-control.error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.06);
}

.form-error-msg {
  display: none;
  color: #ff4444;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.form-control.error ~ .form-error-msg {
  display: block;
}

.form-validation-banner {
  display: none;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.4);
  color: #ff6666;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.form-validation-banner.visible {
  display: block;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--gray-dark);
  color: var(--white);
}

textarea.form-control { resize: vertical; min-height: 130px; }

.form-submit { margin-top: 2px; }

.form-submit .btn-outline {
  width: 100%;
  padding: 18px;
  font-size: 14px;
  text-align: center;
}

.form-note {
  font-size: 12px;
  color: var(--gray-muted);
  margin-top: 14px;
  text-align: center;
}

/* Custom autocomplete dropdown */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 500;
  display: none;
}

.autocomplete-list.open {
  display: block;
}

.autocomplete-item {
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 24px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success.active { display: flex; }

.success-check {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-check svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}


/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--white);
  border-color: var(--white);
}

.lightbox-close:hover svg,
.lightbox-prev:hover svg,
.lightbox-next:hover svg {
  stroke: var(--black);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
}


/* =============================================
   FOOTER — centered minimal (HubSpot-inspired)
   ============================================= */

.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 72px 0 40px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

/* Nav link row */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 48px;
}

.footer-nav-item {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  line-height: 1;
  transition: color 0.2s ease;
}

.footer-nav-item:last-child { border-right: none; }
.footer-nav-item:hover { color: var(--white); }

/* Divider */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 0 48px;
}

/* Social icons row */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.footer-social-link:hover {
  border-color: var(--white);
  background: var(--white);
}

.footer-social-link:hover svg {
  stroke: var(--black);
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}

.footer-social-label {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* Logo + tagline center block */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.footer-logo-img {
  max-width: 120px;
  width: auto;
  height: auto;
  opacity: 0.9;
}

.footer-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

/* Copyright bar */
.footer-copyright-bar {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 28px;
  margin-bottom: 28px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Legal links */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0;
}

.footer-legal-link {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
  line-height: 1;
  transition: color 0.2s ease;
}

.footer-legal-link:last-child { border-right: none; }
.footer-legal-link:hover { color: rgba(255,255,255,0.6); }

/* ─── LEGAL MODALS ──────────────────────────── */

.legal-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  color: #000;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: 2px solid #000;
  color: #000;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  background: #000;
  color: #fff;
}

.modal-close svg { stroke: currentColor; }

.modal-header {
  background: #000;
  color: #fff;
  padding: 36px 56px 28px 36px;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.05em;
  margin: 0 0 6px 0;
  line-height: 1;
}

.modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.modal-body {
  padding: 36px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.7;
}

.terms-section {
  margin-bottom: 28px;
}

.terms-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 12px 0;
}

.terms-section p {
  font-size: 15px;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.terms-section ul {
  margin: 8px 0 12px 0;
  padding-left: 22px;
}

.terms-section li {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.terms-section strong { color: #000; font-weight: 600; }

.terms-section a {
  color: #0066cc;
  text-decoration: none;
}

.terms-section a:hover {
  color: #004499;
  text-decoration: underline;
}

.terms-updated {
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  .legal-modal { padding: 0; align-items: flex-start; }
  .modal-content { max-height: 100vh; border-radius: 0; }
  .modal-header { padding: 28px 52px 24px 24px; }
  .modal-header h2 { font-size: 28px; }
  .modal-body { padding: 24px; }
  .terms-section h3 { font-size: 16px; }
  .terms-section p, .terms-section li { font-size: 14px; }
}


/* =============================================
   CLIENT LOGO STRIP
   ============================================= */

/* ── Trusted By header (inside .inner) ── */
.clients-header {
  text-align: center;
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: 48px;
}

.clients-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-muted);
  margin-bottom: 14px;
  display: block;
}

.clients-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0;
  line-height: 1;
}

/* ── Logo strip — full bleed, inherits grey mesh bg ── */
.logo-strip-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 72px;
  position: relative;
  /* Mask creates true transparency fade — works regardless of background colour */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}

.logo-strip {
  display: flex;
  width: fit-content;
}

.logo-track {
  display: flex;
  gap: 72px;
  align-items: center;
  /* JS drives the transform — no CSS animation */
  will-change: transform;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  /* Fixed height so all logos read as the same visual size.
     Width scales naturally with aspect ratio, capped so wide logos don't overflow. */
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.9;
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.3s ease;
}

.logo-item:hover img {
  opacity: 1;
}

/* Reduced motion — JS respects this too */
@media (prefers-reduced-motion: reduce) {
  .logo-strip { overflow-x: auto; flex-wrap: wrap; }
}


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

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.22s; }
.fade-in-delay-3 { transition-delay: 0.34s; }


/* =============================================
   RESPONSIVE
   ============================================= */

/* Large Laptop — 1200px */
@media (max-width: 1200px) {
  .inner { padding: 0 40px; }
  .services-grid { padding: 0 40px; }
  .footer-inner { padding: 0 40px; }
}

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); padding: 0 32px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-body { max-width: 100%; }
  .nav-pill { display: none; }
  .nav-right .nav-cta { display: none; }
  .hamburger { display: block; }
  /* Portfolio: collapse centered row */
  .row-2col-center { padding: 0; }
  .inner { padding: 0 32px; }
  .footer-inner { padding: 0 32px; }
}

/* Mobile Large — 768px */
@media (max-width: 768px) {
  :root { --section-v: var(--section-v-mobile); }

  .nav-pill { display: none; }
  .nav-right .nav-cta { display: none; }
  .hamburger { display: block; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0 24px;
  }

  .service-card { aspect-ratio: 4 / 5; }

  /* Portfolio rows collapse to single column on mobile */
  .row-3col,
  .row-2col-center,
  .row-2x2 {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { padding: 0 24px; }
  .footer-nav { gap: 8px; }
  .footer-nav-item { padding: 0 12px; font-size: 12px; }

  .inner { padding: 0 24px; }

  .contact-grid { gap: 40px; }

  .clients-header { margin-top: 40px; margin-bottom: 32px; }
  .logo-strip-wrapper { padding: 28px 0 56px; }
  .logo-strip-wrapper::before,
  .logo-strip-wrapper::after { width: 60px; }
  .logo-track { gap: 52px; padding-right: 52px; animation-duration: 30s; }
  .logo-item img { height: 36px; max-width: 110px; }
}

/* Mobile Small — 480px */
@media (max-width: 480px) {
  .inner { padding: 0 16px; }
  .services-grid { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }
  .footer-nav { flex-direction: column; align-items: center; gap: 12px; }
  .footer-nav-item { border-right: none; padding: 0; }
  .footer-legal { flex-direction: column; align-items: center; gap: 10px; }
  .footer-legal-link { border-right: none; }
  .hero-title { font-size: clamp(48px, 14vw, 80px); }
  .hero-subtitle { font-size: 15px; }
}
