/* =========================================================
   REPLICA — Premium Creative Studio
   Brand palette:
   Replica Blue #1746A2
   Deep Navy    #0B1F3A
   White        #FFFFFF
   Light Gray   #F3F5F7
   Silver       #C8CED8
   ========================================================= */

:root {
  --blue: #1746A2;
  --navy: #0B1F3A;
  --white: #FFFFFF;
  --gray: #F3F5F7;
  --silver: #C8CED8;
  --text: #172033;
  --muted: #667085;
  --border: rgba(11, 31, 58, 0.10);
  --shadow: 0 20px 60px rgba(11, 31, 58, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--gray);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 48px), var(--max)); margin: auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: .3s;
}
.nav.scrolled { padding: 12px 0; border-bottom-color: var(--border); box-shadow: 0 8px 30px rgba(11, 31, 58, .05); }
.nav-inner { width: min(calc(100% - 48px), 1240px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo, .footer-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.04em; font-size: 24px; color: var(--navy); }
.logo { display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 600; color: #344054; transition: .25s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { color: var(--white) !important; background: var(--blue); padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(23, 70, 162, .18); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--navy); margin: 4px auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 850px; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(23, 70, 162, .13), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(23, 70, 162, .055), transparent 28%),
    linear-gradient(135deg, #fff 0%, var(--gray) 100%);
}
.hero:before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 31, 58, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 58, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
}
.hero-ring { position: absolute; width: 760px; height: 760px; right: -290px; top: 45px; border: 1px solid rgba(23, 70, 162, .13); border-radius: 50%; box-shadow: 0 0 0 90px rgba(23, 70, 162, .025), 0 0 0 180px rgba(23, 70, 162, .016); }
.hero-inner { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--max)); margin: auto; padding-top: 90px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; padding: 10px 18px; margin-bottom: 24px; border: 1px solid rgba(23, 70, 162, .16); border-radius: 999px; background: rgba(255, 255, 255, .62); box-shadow: 0 8px 25px rgba(11, 31, 58, .04); font-size: 11px; line-height: 1.2; letter-spacing: .18em; font-weight: 700; color: var(--blue); }
.hero h1 { max-width: 900px; margin: auto; font-family: "Space Grotesk", sans-serif; font-size: clamp(60px, 8.5vw, 112px); line-height: .94; letter-spacing: -.065em; color: var(--navy); }
.hero h1 span { color: var(--blue); }
.hero-sub { max-width: 680px; margin: 30px auto 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: .25s; }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(23, 70, 162, .20); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--navy); border: 1px solid var(--silver); background: rgba(255, 255, 255, .7); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.hero-strip { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 15px; max-width: 950px; margin: 85px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: #667085; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-strip i { width: 4px; height: 4px; background: var(--silver); border-radius: 50%; }

/* ---------- GENERAL SECTIONS ---------- */
.section { padding: 120px 0; }
.section.white { background: var(--white); }
.section.gray { background: var(--gray); }
.section.navy { background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-head h2 { margin-top: 18px; font-family: "Space Grotesk", sans-serif; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; color: var(--navy); }
.section-head p { max-width: 470px; color: var(--muted); font-size: 16px; }
.navy .section-head h2, .navy .section-head p { color: var(--white); }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 58px; }
.service-card { position: relative; padding: 44px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .3s; }
.service-card:after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; top: -90px; border-radius: 50%; background: rgba(23, 70, 162, .06); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 28px 70px rgba(11, 31, 58, .12); }
.service-number { font-family: "Space Grotesk"; color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 55px; }
.service-card h3 { max-width: 520px; font-family: "Space Grotesk"; font-size: 30px; line-height: 1.12; letter-spacing: -.035em; color: var(--navy); }
.service-intro { margin-top: 16px; color: var(--muted); }
.service-card ul { list-style: none; margin-top: 28px; display: grid; gap: 11px; }
.service-card li { position: relative; padding-left: 19px; font-size: 13px; color: #344054; }
.service-card li:before { content: ""; position: absolute; width: 6px; height: 6px; left: 0; top: 9px; border-radius: 50%; background: var(--blue); }
.service-for { padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ---------- WORK ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 55px; }
.work-card { position: relative; min-height: 390px; border-radius: 18px; overflow: hidden; background: var(--navy); border: 1px solid rgba(11, 31, 58, .08); }
.work-card { max-width: 100%; }
.work-card video,
.work-card img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 390px;
  max-height: 390px;
  display: block;
  object-fit: cover;
  transition: .5s ease;
}
.work-card:hover video,
.work-card:hover img { transform: scale(1.04); }
.work-card .play-btn {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(11,31,58,.3);
  transition: .25s ease;
  cursor: pointer;
}
.work-card .play-btn svg { width: 20px; height: 20px; fill: var(--navy); margin-left: 3px; }
.work-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.work-card.playing .play-btn { opacity: 0; pointer-events: none; }
.video-placeholder { height: 100%; min-height: 390px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; background: linear-gradient(145deg, #e9edf3, #fff); color: var(--muted); }
.video-placeholder strong { display: block; color: var(--navy); font-family: "Space Grotesk"; font-size: 18px; margin-bottom: 7px; }
.work-overlay { position: absolute; inset: auto 0 0; padding: 70px 20px 20px; background: linear-gradient(transparent, rgba(11, 31, 58, .88)); }
.work-overlay span { color: #fff; font-size: 13px; font-weight: 600; }
.work-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- PROCESS ---------- */
.process-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 65px; }
.process-steps:before { content: ""; position: absolute; left: 7%; right: 7%; top: 24px; height: 1px; background: var(--silver); }
.step { position: relative; z-index: 1; }
.step-num { width: 49px; height: 49px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; border: 1px solid var(--silver); border-radius: 50%; background: var(--white); color: var(--blue); font-family: "Space Grotesk"; font-weight: 700; font-size: 13px; }
.step h4 { font-family: "Space Grotesk"; color: var(--navy); font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.why-item { min-height: 185px; padding: 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .42); }
.why-item h4 { font-family: "Space Grotesk"; color: var(--navy); font-size: 18px; }
.why-item h4:before { content: "—"; margin-right: 8px; color: var(--blue); }
.why-item p { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- ABOUT ---------- */
.about-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: center; }
.about-text p.copy { max-width: 670px; margin-top: 24px; color: var(--muted); }
.about-sign { margin-top: 30px; color: var(--navy); font-size: 13px; font-weight: 600; }
.about-card { padding: 48px; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: 0 30px 80px rgba(11, 31, 58, .18); }
.about-card-line { color: #9fb9ed; font-family: "Space Grotesk"; font-size: 12px; font-weight: 700; line-height: 1.8; letter-spacing: .06em; }
.about-card p { margin-top: 35px; color: #d9e0eb; font-size: 16px; }
.about-card .btn { margin-top: 30px; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact h2 { font-family: "Space Grotesk"; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; color: var(--navy); }
.contact-sub { max-width: 650px; margin: 22px auto 0; color: var(--muted); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 55px; padding-top: 28px; border-top: 1px solid var(--border); }
.socials a { color: #475467; font-size: 12px; font-weight: 600; }
.socials a:hover { color: var(--blue); }

/* ---------- FOOTER ---------- */
.footer { padding: 35px 0; background: var(--navy); color: #d8e0ec; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.footer-logo { color: #fff; font-size: 20px; }
.footer-tag { font-size: 12px; color: #b8c4d5; }
.footer-copy { text-align: right; font-size: 11px; color: #8e9caf; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 12px 35px rgba(11, 31, 58, .22); font-weight: 700; transition: .25s; }
.wa:hover { transform: translateY(-4px) scale(1.04); }

/* ---------- SCROLL-REVEAL (used by script.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { position: absolute; top: calc(100% + 8px); right: 24px; width: min(280px, calc(100vw - 48px)); display: none; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .menu-btn { display: block; }
  .services-grid, .about-inner { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps:before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container, .nav-inner, .hero-inner { width: min(calc(100% - 32px), var(--max)); }
  .hero { min-height: 760px; }
  .hero-inner { padding-top: 72px; }
  .hero h1 { font-size: clamp(53px, 16vw, 76px); }
  .hero-sub { font-size: 16px; }
  .hero-strip { margin-top: 60px; gap: 10px; }
  .hero-strip i { display: none; }
  .section { padding: 85px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  .services-grid, .work-grid, .why-grid, .process-steps { grid-template-columns: 1fr; }
  .service-card { padding: 30px; }
  .service-number { margin-bottom: 35px; }
  .work-card, .work-card video, .work-card img, .video-placeholder { min-height: 430px; max-height: 430px; }
  .about-inner { gap: 50px; }
  .about-card { padding: 32px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
