/* ==========================================================================
   GRANADA — Premium Digital Marketing Agency
   style.css — Design System (matches sociallyin DESIGN.md)
   Light · bright · energetic B2B agency. Blue (#0070CD) + Yellow (#F8D53A).
   Bebas Neue headlines · Poppins body. Offset brand shadows.
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. Design Tokens
   ----------------------------------------------------------------------- */
:root {
  /* Brand */
  --c-blue: #0070CD;
  --c-blue-bright: #0D6EFD;
  --c-blue-dark: #005AA8;
  --c-yellow: #F8D53A;
  --c-yellow-dark: #E8C61F;
  --c-yellow-active: #D4B01A;
  --c-orange: #FB7921;

  /* Neutrals */
  --c-navy: #282A2C;
  --c-white: #FFFFFF;
  --c-gray-50: #F8F9FA;
  --c-gray-100: #E9ECEF;
  --c-gray-200: #DEE2E6;
  --c-gray-300: #ADB5BD;
  --c-gray-400: #6C757D;
  --c-gray-500: #495057;

  /* Sky / supporting */
  --c-sky: #9AC1DC;
  --c-cyan-pale: #CCECF5;

  /* Semantic roles */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8F9FA;
  --c-surface: #FFFFFF;
  --c-surface-2: #F8F9FA;
  --c-border: #E9ECEF;
  --c-border-strong: #9AC1DC;

  --c-text: #282A2C;
  --c-text-soft: #495057;
  --c-text-muted: #6C757D;

  --c-primary: #0070CD;
  --c-accent: #0070CD;
  --c-glow: rgba(0, 112, 205, 0.35);

  /* Gradients (subtle, light) */
  --grad-primary: linear-gradient(135deg, #0070CD 0%, #0D6EFD 100%);
  --grad-yellow: linear-gradient(135deg, #F8D53A 0%, #FFC107 100%);
  --grad-text: linear-gradient(120deg, #0070CD, #0D6EFD);
  --grad-soft: linear-gradient(135deg, rgba(204, 236, 245, 0.6), rgba(154, 193, 220, 0.18));
  --grad-radial: radial-gradient(circle at 50% -5%, rgba(204, 236, 245, 0.7), transparent 55%);

  /* Typography */
  --font-display: "Bebas Neue", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.4rem;
  --fs-xl: clamp(1.8rem, 3.5vw, 2.6rem);
  --fs-2xl: clamp(2.6rem, 6vw, 4.5rem);
  --fs-3xl: clamp(3rem, 8vw, 5.5rem);
  --fs-hero: clamp(3.2rem, 9vw, 6.5rem);

  /* Spacing (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
  --sp-10: 7rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-offset: 12px 12px 0 0 var(--c-cyan-pale);
  --shadow-offset-hover: 12px 12px 0 0 var(--c-sky);
  --shadow-drop: 6px 6px 0 0 var(--c-sky);
  --shadow-glow: 0 10px 30px rgba(0, 112, 205, 0.18);
  --blur: saturate(140%) blur(12px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
  --nav-h: 78px;
}

/* -----------------------------------------------------------------------
   2. Reset & Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: var(--grad-radial);
  background-repeat: no-repeat;
  background-size: 100% 760px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { line-height: 1.05; font-weight: 700; }

/* Display font for major headings (Bebas Neue renders uppercase) */
h1, h2,
.hero__title, .section-title, .page-hero__title, .cta__title,
.stat__num, .plan__price {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

h3, h4, h5 { font-family: var(--font-sans); letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-yellow); color: var(--c-navy); }

/* -----------------------------------------------------------------------
   3. Layout Helpers
   ----------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-10); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--c-bg-alt); }
.text-center { text-align: center; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-blue);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-sky);
  border-radius: var(--radius-pill);
  background: var(--c-cyan-pale);
  margin-bottom: var(--sp-5);
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-blue);
}

.section-head { max-width: 720px; margin: 0 auto var(--sp-8); }
.section-title { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); color: var(--c-blue); }
.section-sub { font-size: var(--fs-md); color: var(--c-text-soft); }

/* -----------------------------------------------------------------------
   4. Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

/* Primary CTA — yellow with navy text */
.btn--primary { background: var(--c-yellow); color: var(--c-navy); }
.btn--primary:hover { background: var(--c-yellow-dark); transform: translateY(-2px); }
.btn--primary:active { background: var(--c-yellow-active); }

/* Secondary — blue outline */
.btn--ghost {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
  font-weight: 600;
}
.btn--ghost:hover { color: var(--c-blue-bright); border-color: var(--c-blue-bright); background: rgba(0, 112, 205, 0.06); transform: translateY(-2px); }

.btn--lg { min-height: 52px; padding: 0.95rem 2rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* -----------------------------------------------------------------------
   5. Navbar
   ----------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--sp-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; letter-spacing: 0.02em; color: var(--c-navy);
}

.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--c-blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.2rem;
}

.brand__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__menu { display: flex; align-items: center; gap: var(--sp-1); }

.nav__link {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-navy); border-radius: var(--radius-sm);
}

.nav__link:hover, .nav__link.is-active { color: var(--c-blue); }

.nav__link.is-active::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 0;
  height: 2px; background: var(--c-blue); border-radius: 2px;
}

/* Dropdown */
.nav__item--has-drop { position: relative; }

.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px; padding: var(--sp-3);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-drop);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.nav__item--has-drop:hover .nav__drop,
.nav__item--has-drop:focus-within .nav__drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.nav__drop a { display: block; padding: var(--sp-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--c-text-soft); }
.nav__drop a:hover { background: var(--c-gray-50); color: var(--c-blue); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--c-navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.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); }

.nav__backdrop {
  position: fixed; inset: 0; background: rgba(40, 42, 44, 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur); z-index: 998;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }

/* -----------------------------------------------------------------------
   6. Cards
   ----------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Featured card — signature offset shadow */
.card--feature {
  border-color: var(--c-sky);
  box-shadow: var(--shadow-offset);
}
.card--feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-offset-hover); }

.card__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--c-cyan-pale); border: 1px solid var(--c-sky);
  color: var(--c-blue); margin-bottom: var(--sp-5); font-size: 1.5rem;
}
.card__icon svg { width: 26px; height: 26px; }

.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); color: var(--c-navy); }
.card__text { color: var(--c-text-soft); font-size: var(--fs-sm); }

.card__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5); font-size: var(--fs-sm); font-weight: 700; color: var(--c-blue);
}
.card__link .arrow { transition: transform var(--dur) var(--ease); }
.card:hover .card__link .arrow { transform: translateX(5px); }

/* -----------------------------------------------------------------------
   7. Grid Utilities
   ----------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* -----------------------------------------------------------------------
   8. Hero base
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-9);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.65; animation: float 16s var(--ease) infinite alternate; }
.orb--1 { width: 420px; height: 420px; background: rgba(154, 193, 220, 0.55); top: -120px; left: -80px; }
.orb--2 { width: 360px; height: 360px; background: rgba(248, 213, 58, 0.35); bottom: -100px; right: -40px; animation-delay: -5s; }
.orb--3 { width: 300px; height: 300px; background: rgba(204, 236, 245, 0.8); top: 35%; left: 55%; animation-delay: -9s; }

@keyframes float { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(36px, 26px) scale(1.1); } }

.grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(40,42,44,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,42,44,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
}

/* -----------------------------------------------------------------------
   9. Footer (deep navy)
   ----------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--c-navy);
  color: var(--c-gray-100);
  padding-block: var(--sp-9) var(--sp-6);
  margin-top: var(--sp-9);
}

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-7); margin-bottom: var(--sp-8); }
.footer .brand { color: #fff; }
.footer__about { max-width: 320px; }
.footer__about p { color: var(--c-gray-300); font-size: var(--fs-sm); margin-top: var(--sp-4); }

.footer__col h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-yellow); margin-bottom: var(--sp-4); }
.footer__col ul { display: grid; gap: var(--sp-3); }
.footer__col a { color: var(--c-gray-300); font-size: var(--fs-sm); }
.footer__col a:hover { color: #fff; }

.footer__socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18); color: var(--c-gray-100); transition: all var(--dur) var(--ease);
}
.footer__socials a:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-navy); transform: translateY(-3px); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--c-gray-300); font-size: var(--fs-xs); flex-wrap: wrap;
}

/* -----------------------------------------------------------------------
   10. CTA band
   ----------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  background: var(--c-blue);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(248, 213, 58, 0.25); filter: blur(10px);
}
.cta .eyebrow { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta .eyebrow::before { background: var(--c-yellow); }
.cta__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); color: #fff; position: relative; }
.cta__title .text-gradient { -webkit-text-fill-color: var(--c-yellow); color: var(--c-yellow); background: none; }
.cta__text { max-width: 560px; margin: 0 auto var(--sp-6); color: rgba(255,255,255,0.85); font-size: var(--fs-md); position: relative; }
.cta__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; position: relative; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* -----------------------------------------------------------------------
   11. Back to top
   ----------------------------------------------------------------------- */
.to-top {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-yellow); color: var(--c-navy);
  border: none; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all var(--dur) var(--ease); z-index: 900; font-size: 1.2rem;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-yellow-dark); }

/* -----------------------------------------------------------------------
   12. Scroll reveal
   ----------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -----------------------------------------------------------------------
   13. Page loader
   ----------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--c-white); transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--c-gray-100); border-top-color: var(--c-blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------
   Justified body text — semua paragraf di luar .text-center
   ----------------------------------------------------------------------- */
p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Kembalikan ke left/center untuk konteks yang memang rata tengah/kiri */
.text-center p,
.section-head.text-center p,
.hero__inner p,
.hero-split .hero__text,
.page-hero__text,
.cta__text,
.stat__label,
.post-card__meta,
.article__meta,
.breadcrumb,
.eyebrow,
.slide__quote,
.slide__meta,
.footer p,
.footer__bottom,
.plan__desc,
.work-card__metric span,
.pain-card p,
.benefit p,
.logos__label {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.text-center p,
.section-head.text-center .section-sub,
.cta .cta__text,
.slide__quote {
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
}

/* -----------------------------------------------------------------------
   Typography refinements — h3/h4 stay Poppins, only h1/h2 use Bebas Neue
   Card titles, blog post h3, sidebar h3 stay at readable Poppins sizes
   ----------------------------------------------------------------------- */
.card__title,
.work-card__title,
.svc-card__body h3,
.post-card h3,
.pain-card h3,
.benefit h3,
.value h3,
.feature-list__item h3,
.faq__q,
.job h3,
.timeline__item h3,
.team-card h3,
.process__step h3,
.contact-info__item h4,
.cs-section h2,
.svc-detail__body h2,
.article__body h2,
.article__body h3,
.plan__name {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* section-title stays Bebas Neue but capped so it doesn't overflow */
.section-title {
  line-height: 1.0;
  word-break: break-word;
}
