/* ===========================================
   MAX BAILEY — site stylesheet
   =========================================== */

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

:root {
  --bg: #f7f6f2;
  --bg-rgb: 247, 246, 242;
  --bg-alt: #ececE4;
  --text: #16160f;
  --text-dim: #6b6a62;
  --accent: #e8461b;
  --accent-dim: #c23811;
  --line: #dedad2;
  --max-w: 1180px;
  --font-display: 'Anton', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.current { opacity: 1; color: var(--accent); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-outline {
  border-color: var(--text);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media iframe,
.hero-media video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),0.35) 0%, rgba(var(--bg-rgb),0.55) 55%, rgba(var(--bg-rgb),0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
  width: 100%;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 108px);
  max-width: 900px;
}

.hero p {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 520px;
  margin-top: 20px;
}

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

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 720px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin-top: 18px;
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  transition: transform 0.3s;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.4s;
}

.category-card:hover img { opacity: 0.72; transform: scale(1.04); }

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb),0.92) 100%);
}

.category-card-inner { position: relative; z-index: 1; }

.category-card h3 { font-size: 30px; margin-bottom: 8px; }
.category-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.category-card .tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Services list (Skeleton Crew style) ---------- */
.services-list {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.services-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}

.services-list a:hover {
  color: var(--accent);
  padding-left: 14px;
}

.services-list h3 {
  font-size: clamp(26px, 4.5vw, 46px);
}

.services-list .num {
  font-family: 'Inter';
  text-transform: none;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Client logo strip ---------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
  margin-top: 32px;
}
.client-logos img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.client-logos img:hover { opacity: 1; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.stat h3 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--accent);
}

.stat p { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ---------- Portfolio grid (corporate/outdoor pages) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.portfolio-item {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item:hover img { opacity: 0.85; transform: scale(1.03); }
.portfolio-item img { transition: opacity 0.3s, transform 0.4s; }

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--bg-rgb),0.9) 100%);
}

.portfolio-item .overlay .tag { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.portfolio-item .overlay h4 { font-family: 'Inter'; font-weight: 600; text-transform: none; font-size: 16px; margin-top: 6px; }

.placeholder-note {
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  border-radius: 4px;
  margin-top: 48px;
}

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.about-body p { margin-bottom: 22px; font-size: 17px; color: var(--text-dim); }
.about-body strong { color: var(--text); }

.pull-stat {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 36px 0;
}
.pull-stat h3 { font-size: 34px; color: var(--accent); }
.pull-stat p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.skills-list span {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  background: var(--bg-alt);
}
.testimonial-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.testimonial-card .name { color: var(--text); font-weight: 600; font-size: 14px; }
.testimonial-card .role { color: var(--text-dim); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 96px 0;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); max-width: 760px; margin: 0 auto; }
.cta-band p { color: var(--text-dim); margin-top: 18px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item h4 { font-family: 'Inter'; text-transform: none; font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.faq-item p { color: var(--text-dim); font-size: 15px; }

/* ---------- Contact / Booking ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  background: var(--bg-alt);
}
.contact-card h3 { font-size: 22px; margin-bottom: 16px; }
.contact-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-row:last-child { border-bottom: none; }
.contact-row span:first-child { color: var(--text-dim); }

.calendly-placeholder {
  border: 1px dashed var(--line);
  border-radius: 4px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 32px;
}

/* ---------- Video lightbox ---------- */
.video-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.video-lightbox-overlay.open { display: flex; }

.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
}

.video-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.video-lightbox-close:hover { color: var(--accent); }

@media (max-width: 700px) {
  .video-lightbox-close { top: -40px; font-size: 26px; }
}

/* ---------- Quote form / modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.quote-card {
  position: relative;
  background: #ffffff;
  color: #16161a;
  border-radius: 14px;
  padding: 40px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.modal-overlay .quote-card { max-height: 88vh; overflow-y: auto; }

.quote-card h2 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  font-size: 28px;
  color: #111;
  margin-bottom: 8px;
}
.quote-sub { color: #666; font-size: 15px; margin-bottom: 28px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: #333; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #111;
  background: #fff;
  font-family: 'Inter', sans-serif;
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}
.form-submit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  padding: 15px 26px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .quote-card { padding: 28px; }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo { font-family: 'Anton', sans-serif; font-size: 20px; margin-bottom: 10px; }
.footer-col p, .footer-col a { color: var(--text-dim); font-size: 14px; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .category-grid, .portfolio-grid, .testimonial-grid, .contact-grid, .stats { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  section { padding: 64px 0; }
}
