/* Mr Fixter — snazzy showcase site */

:root {
  --navy: #0d1b2a;
  --navy-2: #14213d;
  --red: #c81d25;
  --red-dark: #9c1319;
  --coral: #e8917a;
  --cream: #faf6f1;
  --white: #ffffff;
  --text: #1b1f27;
  --muted: #6b7280;
  --border: #e9e3da;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(13, 27, 42, 0.16);
  --shadow-sm: 0 4px 16px rgba(13, 27, 42, 0.1);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
section[id] { scroll-margin-top: 84px; }

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

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--coral));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--white); transition: color 0.3s ease; }
.site-header.scrolled .logo { color: var(--navy); }
.logo img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; transition: width 0.3s ease, height 0.3s ease; }
.site-header.scrolled .logo img { width: 40px; height: 40px; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: rgba(255,255,255,0.9); position: relative; padding: 4px 0;
  transition: color 0.3s ease;
}
.site-header.scrolled nav.main-nav a { color: var(--text); }
nav.main-nav a.active, nav.main-nav a:hover { color: var(--coral); }
.site-header.scrolled nav.main-nav a.active,
.site-header.scrolled nav.main-nav a:hover { color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 800;
  text-decoration: none; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 24px rgba(200,29,37,0.35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.site-header.scrolled .btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.site-header.scrolled .btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--white); }
.site-header.scrolled .nav-toggle { color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,42,0.75) 0%, rgba(13,27,42,0.55) 45%, rgba(13,27,42,0.92) 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob.b1 { width: 420px; height: 420px; background: var(--red); top: -120px; right: -100px; }
.hero-blob.b2 { width: 320px; height: 320px; background: var(--coral); bottom: -80px; left: -60px; }

.hero .wrap { position: relative; z-index: 2; padding-top: 90px; }
.hero-content { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--coral); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin: 0 0 36px; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat .num { font-size: 2.2rem; font-weight: 900; color: var(--white); display: flex; align-items: baseline; gap: 2px; }
.hero-stat .num .suffix { font-size: 1.4rem; color: var(--coral); }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Marquee ticker */
.ticker {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0 28px;
  color: rgba(255,255,255,0.9);
}
.ticker-track span::after {
  content: "\2726";
  margin-left: 28px;
  color: var(--coral);
  font-size: 0.7rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { background: rgba(200,29,37,0.08); border-color: rgba(200,29,37,0.2); color: var(--red); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 14px; font-weight: 900; letter-spacing: -0.01em; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Services — image-backed cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover img { transform: scale(1.08); }
.service-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.15) 0%, rgba(13,27,42,0.85) 100%);
}
.service-card .content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  color: var(--white);
}
.service-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.25);
}
.service-card .icon svg { width: 22px; height: 22px; color: var(--coral); }
.service-card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.service-card p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--coral);
  font-weight: 900; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: var(--shadow-sm); border: 4px solid var(--cream);
}
.step h4 { margin: 0 0 8px; color: var(--navy); font-size: 1.05rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Before / After slider */
.ba-wrap { max-width: 640px; margin: 0 auto; }
.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute; top: 16px; z-index: 2;
  background: rgba(13,27,42,0.75); color: var(--white);
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0; z-index: 3;
  transform: translateX(-50%);
}
.ba-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--white); transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize;
}
.ba-grip svg { width: 22px; height: 22px; color: var(--navy); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
  z-index: 4;
}
.ba-caption { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

/* Bento gallery */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 18px; }
.bento-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.bento-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bento-tile:hover img { transform: scale(1.06); }
.bento-tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 14px;
  background: linear-gradient(to top, rgba(13,27,42,0.88), transparent);
  color: var(--white); font-weight: 800; font-size: 0.95rem;
}
.bento-tile.big { grid-column: span 2; grid-row: span 2; }
.bento-tile.wide { grid-column: span 2; }
.bento-tile.tall { grid-row: span 2; }

/* Why choose */
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item {
  display: flex; gap: 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.why-item .icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(200,29,37,0.1); display: flex; align-items: center; justify-content: center;
}
.why-item .icon svg { width: 22px; height: 22px; color: var(--red); }
.why-item h4 { margin: 0 0 6px; color: var(--navy); font-weight: 800; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo .about-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 130px;
  aspect-ratio: 900 / 816;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  z-index: 2;
}
@media (max-width: 480px) {
  .about-photo .about-badge { width: 100px; }
}
.about-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.15);
}
.areas-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.areas-list span {
  background: var(--white); border: 1px solid var(--border);
  color: var(--navy); font-weight: 700; font-size: 0.86rem; padding: 9px 16px; border-radius: 999px;
}

/* CTA banner */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 24px; padding: 64px 48px; overflow: hidden;
  text-align: center; color: var(--white);
}
.cta-banner::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: var(--red); filter: blur(80px); opacity: 0.4; top: -100px; left: -60px;
}
.cta-banner .content { position: relative; z-index: 1; }
.cta-banner h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.cta-banner p { margin: 0 0 32px; color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.cta-banner .hero-actions { justify-content: center; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method {
  display: flex; gap: 14px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.contact-method:hover { transform: translateY(-3px); }
.contact-method .icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(200,29,37,0.1); display: flex; align-items: center; justify-content: center;
}
.contact-method .icon svg { width: 20px; height: 20px; color: var(--red); }
.contact-method strong { display: block; color: var(--navy); }
.contact-method span { color: var(--muted); font-size: 0.92rem; }

form.contact-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm);
}
form.contact-form label { font-weight: 700; font-size: 0.9rem; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
form.contact-form input, form.contact-form textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--cream);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* Footer */
footer { position: relative; background: var(--navy); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--coral), var(--red)); }
footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer h4 { color: var(--white); margin: 0 0 14px; font-size: 1rem; }
footer a { text-decoration: none; color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--coral); }
footer .foot-links { display: flex; flex-direction: column; gap: 10px; }
footer .foot-logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 900; font-size: 1.25rem; margin-bottom: 14px; }
footer .foot-logo img { width: 40px; height: 40px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 3px; }
footer p.tag { max-width: 40ch; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .bento-tile.big { grid-column: span 2; grid-row: span 2; }
  .bento-tile.wide { grid-column: span 2; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--border); transform: translateY(-150%);
    transition: transform 0.25s ease; box-shadow: var(--shadow); border-radius: 0 0 16px 16px;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a { color: var(--text) !important; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .header-cta .btn-primary { padding: 11px 18px; font-size: 0.88rem; }
  .service-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile.big, .bento-tile.wide { grid-column: span 2; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 24px; }
  section { padding: 72px 0; }
}
