/* ─────────────────────────────────────────────────────────────
   Webb Rocket – style.css
   Theme: Light, fresh, minimalistic
   Font: Plus Jakarta Sans
   ───────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:          #F7F9FC;
  --surface:     #FFFFFF;
  --border:      #E4EAF2;
  --text:        #111827;
  --text-muted:  #6B7280;
  --accent:      #0EA5E9;
  --accent-dark: #0284C7;
  --accent-soft: #E0F2FE;
  --success:     #16A34A;
  --error:       #DC2626;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10);

  --max-w:       1160px;
  --nav-h:       64px;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--text-muted); }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
.section {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.section-head h2 { color: var(--text); margin-bottom: .6rem; }
.section-sub { font-size: .95rem; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,249,252,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.brand-icon { font-size: 1.3rem; }
.brand-name {
  display: inline-flex;
  align-items: center;
  background: #111;
  padding: .3rem .65rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #ffffff;
}
.brand-name strong {
  color: #E53535;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s;
}
.nav-menu a:hover { color: var(--text); }

.nav-cta {
  padding: .45rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-text h1 { color: var(--text); margin-bottom: 1rem; }

/* Animated highlight on the key phrase */
.highlight {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #38BDF8);
  animation: slide-in .7s .3s both;
}
@keyframes slide-in {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

.hero-sub { font-size: 1.05rem; margin-bottom: 1.8rem; max-width: 480px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  letter-spacing: .01em;
}

/* Video panel */
.hero-video { display: flex; justify-content: center; }
.video-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.video-wrap video { width: 100%; display: block; }
.video-hint {
  font-size: .72rem;
  padding: .5rem .75rem;
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.video-hint code {
  font-family: monospace;
  font-size: .7rem;
  color: var(--accent);
}

/* ── BUSINESS CARD ───────────────────────────────────────────── */
.card-section { padding-top: 0; }

.biz-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

.biz-card-image img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
}

.biz-card-info h2 { color: var(--text); font-size: 1.8rem; margin-bottom: .25rem; }
.role { font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.biz-card-info p:not(.role):not(.eyebrow) { margin-bottom: 1.25rem; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.contact-list a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .15s;
}
.contact-list a:hover { color: var(--accent); }

/* ── SERVICES ────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  font-size: 1.75rem;
  margin-bottom: .85rem;
}
.service-card h3 { color: var(--text); margin-bottom: .4rem; }
.service-card p { font-size: .88rem; }

/* ── PORTFOLIO ───────────────────────────────────────────────── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .22s, transform .22s;
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.04); }

.portfolio-body { padding: 20px; }

.card-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-bottom: .65rem;
}

.portfolio-body h3 { color: var(--text); font-size: .95rem; margin-bottom: .3rem; }
.portfolio-body p  { font-size: .82rem; margin-bottom: .75rem; }

.tech-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.tech-pill {
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.visit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
  margin-top: .25rem;
}
.project-url { font-size: .72rem; color: var(--text-muted); font-family: monospace; }
.visit-btn {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact { background: none; }

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

.contact-copy h2 { color: var(--text); margin-bottom: .75rem; }
.contact-copy p { margin-bottom: 1.5rem; font-size: .95rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.contact-links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .15s;
}
.contact-links a:hover { color: var(--accent); }

/* Form */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.2rem; }

.form-row label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}

.form-row input {
  width: 100%;
  padding: .7rem .9rem;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input::placeholder { color: #B0B8C8; }
.form-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
  background: #fff;
}
.form-row input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-row input.is-valid { border-color: #22C55E; }

.field-error {
  font-size: .75rem;
  color: var(--error);
  min-height: 1rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: .8rem;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  margin-top: .4rem;
}
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-status {
  font-size: .85rem;
  text-align: center;
  padding: .5rem 0 0;
  min-height: 1.5rem;
  font-weight: 600;
}
.form-status.success { color: var(--success); }
.form-status.error   { color: var(--error); }

/* ── FLOATING BUTTONS ────────────────────────────────────────── */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}

/* Back-to-top — left side */
.float-top {
  position: fixed;
  left: 20px;
  bottom: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, color .15s, border-color .15s;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .18s, box-shadow .18s;
}
.float-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.float-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--accent);
  border-color: var(--accent);
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .18s, box-shadow .18s;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.float-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.float-call { background: #374151; }
.float-wa   { background: #25D366; }
.float-ig   { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* ── IMAGE LIGHTBOX ──────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner {
  position: relative;
  max-width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: scale(.95);
  transition: transform .3s ease;
}
.lightbox-overlay.is-open .lightbox-inner img {
  transform: scale(1);
}
.lightbox-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .4rem .9rem;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.22); }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Make the biz card image look clickable */
.biz-card-image {
  cursor: zoom-in;
  position: relative;
}
.biz-card-image::after {
  content: '🔍 Click to view';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.biz-card-image:hover::after { opacity: 1; }
.biz-card-image img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.biz-card-image:hover img { box-shadow: var(--shadow-lg); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { font-size: .82rem; color: var(--text-muted); }
.back-top  { font-size: .82rem; font-weight: 600; color: var(--accent); }
.back-top:hover { text-decoration: underline; }

/* ── SERVICES ACCORDION ──────────────────────────────────────── */
.services-detail {
  margin-top: 52px;
}

.services-detail-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.acc-item[open] { box-shadow: var(--shadow); }

.acc-item summary {
  padding: 14px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
  transition: background .15s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item summary:hover { background: var(--bg); }

.acc-item ul {
  padding: 0 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.acc-item ul li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.acc-item ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 40px;
  }
  .hero-sub { max-width: 100%; }
  .service-grid  { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .accordion { grid-template-columns: 1fr; }
  .biz-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 16px; }

  /* Mobile nav — compact dropdown, not full-screen */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 99;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; margin-top: 8px; }
  .nav-menu a {
    display: block;
    padding: 13px 4px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
  }
  .nav-menu .nav-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .site-header { position: relative; }

  .service-grid   { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .biz-card { padding: 22px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .lead-form { padding: 22px 18px; }

  .float-btn { width: 42px; height: 42px; }
  .float-btn svg { width: 18px; height: 18px; }

  /* Back-to-top sits on the left, other floats on the right */
  .float-top {
    position: fixed;
    left: 20px;
    bottom: 28px;
    z-index: 90;
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .highlight::after { animation: none; }
  * { transition-duration: .01ms !important; }
}
