@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }

/* ── Brand tokens (extracted from live rebl.asia) ──── */
:root {
  --red:      #E82931;
  --navy:     #20303C;
  --black:    #000000;
  --white:    #FFFFFF;
  --grey-bg:  #F5F5F5;
  --text-dark: #4D4D4D;
  --text-mid:  #5C5C5C;
  --nav-h:    90px;
  --max:      1200px;
  --pad:      40px;

  /* The hero/section BG image from Wix CDN — used on ALL dark sections */
  --bg-texture: url('assets/images/hero-bg.jpg');
}

/* ── Base ──────────────────────────────────────────── */
body {
  font-family: 'Roboto', sans-serif;
  background: var(--black);
  color: var(--white);
  font-weight: 400;
  line-height: 1.6;
}

/* ── Dark section (hero BG + texture) ─────────────── */
/* Used on: hero, about banner, work section, page headers, footer */
.dark-section {
  background-color: var(--navy);
  background-image: var(--bg-texture);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

/* ── Light section ─────────────────────────────────── */
.light-section {
  background: var(--white);
  color: var(--text-dark);
}

/* ── Container ─────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ══════════════════════════════════════════════════
   NAV — black, logo left, links right, 90px
══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  height: var(--nav-h);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

/* ══════════════════════════════════════════════════
   HERO — full viewport, text right-of-centre
══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-inner {
  /* Text block sits in right half, matching Wix layout */
  margin-left: 40%;
  max-width: 520px;
  padding: 80px 0;
}
.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-weight: 400;
  max-width: 440px;
}
/* CTA button in hero */
.hero-cta {
  display: inline-block;
  margin-top: 32px;
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 32px;
  text-transform: uppercase;
  transition: background 0.15s;
}
.hero-cta:hover { background: #c5202a; }

/* ══════════════════════════════════════════════════
   SECTION HEADINGS — Roboto Bold, red accent
══════════════════════════════════════════════════ */
.section-heading {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-heading.light {
  color: var(--white);
}
.section-heading.light::before {
  background: var(--red);
}

/* ══════════════════════════════════════════════════
   CLIENTS SECTION — white bg, logo strip
══════════════════════════════════════════════════ */
.clients-section {
  padding: 64px 0 72px;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  border: 1px solid #e0e0e0;
  padding: 36px 40px;
}
.clients-grid span {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 400;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   WORK GRID — dark section, 3-col image tiles
══════════════════════════════════════════════════ */
.work-section {
  padding: 72px 0;
}
.work-section .section-heading { color: var(--white); }
.work-section .section-heading::before { background: var(--red); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}
.work-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.work-tile img.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.work-tile:hover .tile-img {
  transform: scale(1.03);
}
/* Red hover overlay — uses the actual Wix red hover PNG */
.work-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hover-red.png');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.work-tile:hover .tile-overlay { opacity: 1; }
.work-tile-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.work-tile:hover .work-tile-text { opacity: 1; }
.work-tile-text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}
.work-tile-text p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════
   DARK TEXT SECTION (about, services content etc)
══════════════════════════════════════════════════ */
.dark-text-section {
  padding: 88px 0;
}
.dark-text-section h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.375rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.dark-text-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 600px;
  font-weight: 300;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stat-item {}
.stat-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  max-width: 160px;
  line-height: 1.4;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   PAGE HEADER (subpages) — same dark texture
══════════════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════
   LIGHT CONTENT SECTIONS (inside white pages)
══════════════════════════════════════════════════ */
.content-section {
  padding: 72px 0;
  border-bottom: 1px solid #e8e8e8;
}
.content-section:last-child { border-bottom: none; }
.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-section p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 680px;
}
.content-section p + p { margin-top: 16px; }

/* Two-col layout for service items */
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 52px 0;
  border-bottom: 1px solid #e8e8e8;
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }
.service-row h2 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-top: 4px;
}
.service-row p { font-size: 1rem; color: var(--text-dark); line-height: 1.8; }

/* Blog post */
.post-body { max-width: 720px; }
.post-body p { font-size: 1.0625rem; line-height: 1.85; color: var(--text-dark); margin-bottom: 20px; }
.post-body p.lede { font-size: 1.25rem; font-weight: 300; line-height: 1.72; }
.post-sig { margin-top: 56px; padding-top: 36px; border-top: 1px solid #e8e8e8; }
.post-sig strong { display: block; font-size: 1rem; font-weight: 700; color: #1a1a1a; }
.post-sig span { font-size: 0.9375rem; color: var(--text-mid); }

/* ══════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 72px;
  padding: 72px 0 88px;
}
.form-row { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  appearance: none;
}
.form-control:focus { border-color: var(--red); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: #c5202a; }
.contact-aside {
  background: var(--navy);
  background-image: var(--bg-texture);
  background-size: cover;
  padding: 36px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.contact-aside h3 { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-aside p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 14px; font-weight: 300; }
.contact-aside a { color: var(--red); font-weight: 700; font-size: 0.9375rem; }
.contact-entity { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-entity p { font-size: 0.8125rem; color: rgba(255,255,255,0.35); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 2px solid var(--red);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 240px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════════
   GEO BANNER
══════════════════════════════════════════════════ */
.geo-banner {
  display: none;
  background: var(--red);
  padding: 10px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
}
.geo-banner.visible { display: block; }
.geo-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.geo-banner p { font-size: 0.875rem; color: var(--white); font-weight: 700; }
.geo-banner a { color: var(--white); text-decoration: underline; }
.geo-banner-close { background: none; border: none; color: var(--white); font-size: 1.25rem; opacity: 0.75; cursor: pointer; }
.geo-banner-close:hover { opacity: 1; }
/* When banner is visible, push header down */
body.geo-visible .site-header { top: 40px; }

/* ══════════════════════════════════════════════════
   FADE IN
══════════════════════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1 !important; transform: none !important; } }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .hero-inner { margin-left: 0; max-width: 100%; padding: 60px 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { gap: 32px; }
  .stat-num { font-size: 2.75rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 199;
  }
  .nav-links a { font-size: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ══════════════════════════════════════════════════
   CLIENT LOGO GRID
══════════════════════════════════════════════════ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
  margin-top: 8px;
}
.logo-item {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  min-height: 100px;
  transition: background 0.2s;
}
.logo-item:hover { background: #f8f8f8; }
.logo-item img {
  max-height: 44px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.2s, opacity 0.2s;
}
.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 960px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-item { padding: 20px 16px; min-height: 80px; }
}

/* ══════════════════════════════════════════════════
   CLIENTS MARQUEE — 6 strips, seamless infinite scroll
══════════════════════════════════════════════════ */
.clients-marquee {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 20px;
  /* Soft edge fade for infinite feel */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.clients-track {
  display: flex;
  width: max-content;
  /* 6 strips duplicated = 12 total; -50% moves through one full set */
  animation: clients-scroll 48s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-track img {
  height: 96px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  /* Slight padding between strips */
  padding: 0 8px;
}
@keyframes clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 680px) {
  .clients-track img { height: 68px; }
}

/* ══════════════════════════════════════════════════
   AWARDS SECTION
══════════════════════════════════════════════════ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 44px;
  overflow: hidden;
}
.award-card {
  background: rgba(255,255,255,0.04);
  padding: 40px 36px;
}
.award-year {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.award-list {
  list-style: none;
  padding: 0;
}
.award-list li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  color: rgba(255,255,255,0.75);
}
.award-list li:last-child { border-bottom: none; }
.award-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.award-gold::before   { background: #FFD700; }
.award-silver::before { background: #C0C0C0; }
.award-bronze::before { background: #CD7F32; }
.award-finalist::before { background: rgba(255,255,255,0.3); }

@media (max-width: 960px) {
  .awards-grid { grid-template-columns: 1fr; }
  .award-card { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ══════════════════════════════════════════════════
   AWARDS — PHOTO + RED PANEL LAYOUT (matching current site)
══════════════════════════════════════════════════ */
.award-row {
  display: flex;
  min-height: 420px;
}
.award-row-alt { flex-direction: row-reverse; }

.award-photo {
  flex: 0 0 55%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.award-panel {
  flex: 0 0 45%;
  background: var(--red);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.award-show {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.award-panel .award-list li {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
  font-size: 1rem;
}
.award-panel .award-list li::before {
  top: 14px; transform: none;
}

@media (max-width: 768px) {
  .award-row, .award-row-alt { flex-direction: column; }
  .award-photo { flex: none; height: 240px; }
  .award-panel { flex: none; padding: 36px 28px; }
}
