/* ============================================================
   VigVibe — styles.css
   Brand: Option A — Editorial Grid (LABASAD-inspired)
   Colors: Orange #F26520 · Dark #111 · BG #FAFAF7
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --orange:       #F26520;
  --orange-dark:  #C84E0E;
  --dark:         #111111;
  --bg:           #F8F8F6;
  --bg-alt:       #F0F0EE;
  --bg-dark:      #111111;
  --grid-border:  #D8D8D0;
  --muted:        #555555;
  --faint:        #888888;
  --white:        #ffffff;
  --nav-height:   64px;
  --max-w:        1200px;
  --pad:          clamp(20px, 4vw, 40px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== BASE ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark);
}
h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--dark);
}
h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}
p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.label-orange {
  color: var(--orange);
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section-pad { padding: 64px var(--pad); max-width: var(--max-w); margin: 0 auto; }
.border-b { border-bottom: 0.5px solid var(--grid-border); }
.border-t { border-top: 0.5px solid var(--grid-border); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--orange); color: var(--white); }
.btn-outline  { background: transparent; color: var(--dark); border: 0.5px solid #bbb; }
.btn-dark     { background: var(--dark); color: var(--white); }
.btn-white    { background: var(--white); color: var(--dark); }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--grid-border);
  height: var(--nav-height);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.nav-logo img {
  height: 108px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.88 !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: all 0.25s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 0.5px solid var(--grid-border);
  padding: 16px var(--pad);
  gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--dark); }

/* ===== HERO ===== */
.hero {
  padding: 80px var(--pad) 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 0.5px solid var(--grid-border);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-content { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero photo panel */
.hero-visual {
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---- flow line animations (traveling orange dash) ---- */
@keyframes flow-down  { to { stroke-dashoffset: -32; } }
@keyframes flow-left  { to { stroke-dashoffset: -32; } }
@keyframes flow-up    { to { stroke-dashoffset: -32; } }
@keyframes flow-right { to { stroke-dashoffset: -32; } }
@keyframes flow-diag  { to { stroke-dashoffset: -37; } }

.flow { stroke-dashoffset: 0; }
.flow-a { animation: flow-down  1.6s linear infinite; }
.flow-b { animation: flow-left  1.6s linear infinite 0.4s; }
.flow-c { animation: flow-up    1.6s linear infinite 0.8s; }
.flow-d { animation: flow-right 1.6s linear infinite 1.2s; }
.flow-e { animation: flow-diag  2.4s linear infinite 0s; }
.flow-f { animation: flow-diag  2.4s linear infinite 0.6s; }
.flow-g { animation: flow-diag  2.4s linear infinite 1.2s; }
.flow-h { animation: flow-diag  2.4s linear infinite 1.8s; }

/* ---- icon float animations (gentle oscillation) ---- */
@keyframes float-a {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-5px); }
}
@keyframes float-b {
  0%, 100% { transform: translateX(0px);  }
  50%       { transform: translateX(5px);  }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(5px); }
}
@keyframes float-d {
  0%, 100% { transform: translateX(0px);   }
  50%       { transform: translateX(-5px);  }
}

.icon { transform-box: fill-box; transform-origin: center; }
.float-a { animation: float-a 3.2s ease-in-out infinite; }
.float-b { animation: float-b 3.6s ease-in-out infinite 0.4s; }
.float-c { animation: float-c 3.4s ease-in-out infinite 0.8s; }
.float-d { animation: float-d 3.8s ease-in-out infinite 1.2s; }

/* ---- center node pulse ---- */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 1;   }
  70%  { transform: scale(2.8); opacity: 0;   }
  100% { transform: scale(2.8); opacity: 0;   }
}
@keyframes pulse-outer {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.8;  }
}

.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2.2s ease-out infinite;
}
.pulse-outer {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-outer 2.2s ease-in-out infinite;
}

/* ---- responsive: stack on tablet/mobile ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { display: none; }
}

/* ===== SERVICES GRID ===== */
.services-section {
  padding: 56px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 0.5px solid var(--grid-border);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.5px solid var(--grid-border);
}
.grid-cell {
  padding: 28px 22px;
  border-right: 0.5px solid var(--grid-border);
}
.grid-cell:last-child { border-right: none; }
.grid-cell svg { display: block; margin-bottom: 16px; }
.grid-cell h3 { margin-bottom: 8px; }
.grid-cell p { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.grid-cell a {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  transition: opacity 0.15s;
}
.grid-cell a:hover { opacity: 0.75; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--grid-border);
  border-bottom: 0.5px solid var(--grid-border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}
.stat {
  padding: 28px var(--pad);
  border-right: 0.5px solid var(--grid-border);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--muted); }

/* ===== FEATURED WORK ===== */
.work-section {
  padding: 56px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 0.5px solid var(--grid-border);
}
.work-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.work-section-head h2 { margin-bottom: 0; }
.work-section-head a { font-size: 13px; font-weight: 600; color: var(--orange); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--grid-border);
}
.work-card { border-right: 0.5px solid var(--grid-border); }
.work-card:last-child { border-right: none; }
.work-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card:hover .work-card-image img { transform: scale(1.03); }
.work-card-body { padding: 22px 20px; border-top: 0.5px solid var(--grid-border); }
.work-card-cat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.work-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.35; }
.work-card p { font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.work-card-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--grid-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

/* ===== HOW I WORK ===== */
.process-section {
  padding: 56px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 0.5px solid var(--grid-border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--grid-border);
  margin-top: 32px;
}
.process-step {
  padding: 28px 24px;
  border-right: 0.5px solid var(--grid-border);
}
.process-step:last-child { border-right: none; }
.process-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.6;
}
.process-step h3 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13px; }

/* ===== AUDIT SECTION (dark) ===== */
.audit-section {
  background: var(--bg-dark);
  padding: 80px var(--pad);
}
.audit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.audit-inner .label { color: #06B6D4; }
.audit-inner h2 { color: var(--white); margin-bottom: 16px; }
.audit-inner > div > p { color: rgba(255,255,255,0.6); margin-bottom: 24px; font-size: 15px; }
.audit-list { margin-bottom: 32px; }
.audit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.audit-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex-shrink: 0;
}
.audit-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 0.5px solid rgba(255,255,255,0.1);
}

/* ===== ABOUT TEASER ===== */
.about-section {
  padding: 56px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 0.5px solid var(--grid-border);
}
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  overflow: hidden;
  border: 0.5px solid var(--grid-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-avatar-initials {
  font-size: 52px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.03em;
}
.about-content h2 { margin-bottom: 16px; }
.about-content p { margin-bottom: 16px; }
.about-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--grid-border);
}
.about-meta-item { font-size: 12px; color: var(--faint); }
.about-meta-item strong { display: block; font-size: 14px; color: var(--dark); font-weight: 700; }

/* ===== CTA BLOCK ===== */
.cta-block {
  background: var(--orange);
  padding: 64px var(--pad);
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 16px; }
.cta-block .btn-white { font-size: 15px; padding: 14px 32px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--grid-border);
  padding: 40px var(--pad) 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto 32px;
}
.footer-logo img { height: 32px; width: auto; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: var(--muted); max-width: 260px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--dark); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 0.5px solid var(--grid-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cell:nth-child(2) { border-right: none; }
  .grid-cell:nth-child(3) { border-right: 0.5px solid var(--grid-border); border-top: 0.5px solid var(--grid-border); }
  .grid-cell:nth-child(4) { border-right: none; border-top: 0.5px solid var(--grid-border); }
  .work-grid { grid-template-columns: 1fr; border: 0.5px solid var(--grid-border); }
  .work-card { border-right: none; border-bottom: 0.5px solid var(--grid-border); }
  .work-card:last-child { border-bottom: none; }
  .audit-inner { grid-template-columns: 1fr; gap: 40px; }
  .audit-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-avatar { width: 120px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 0.5px solid var(--grid-border); }
  .stat:nth-child(4) { border-top: 0.5px solid var(--grid-border); border-right: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 48px var(--pad) 40px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 0.5px solid var(--grid-border); }
  .process-step:last-child { border-bottom: none; }
  .work-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
