/* ===== RCS Design System ===== */
:root {
  --navy: #0B1B2E;
  --navy-light: #14283f;
  --blue: #1E4D8C;
  --blue-light: #2E68B5;
  --gold: #C9A227;
  --off-white: #F5F5F3;
  --white: #FFFFFF;
  --charcoal: #3A3A3A;
  --gray: #6b7280;
  --border: rgba(11,27,46,0.1);

  --display: 'Archivo Expanded', sans-serif;
  --body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.site-loader {
  position: fixed; inset: 0; background: var(--navy); z-index: 9999;
  animation: loaderOut 0.8s var(--ease) 0.3s forwards;
  pointer-events: none;
}
@keyframes loaderOut {
  to { opacity: 0; visibility: hidden; }
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 0;
}
.nav.scrolled {
  background: rgba(11,27,46,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 50px; width: auto; max-width: 200px; }
.nav-logo-mark {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  color: var(--gold); letter-spacing: 1px;
  border: 2px solid var(--gold); padding: 4px 9px; line-height: 1;
}
.nav-logo-text {
  font-family: var(--display); font-weight: 700; font-size: 11px;
  color: var(--white); line-height: 1.25; letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--white); opacity: 0.75;
  position: relative; padding: 4px 0;
  transition: opacity 0.25s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--gold);
}
.nav-cta {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: 11px 22px; transition: transform 0.25s var(--ease), background 0.25s;
}
.nav-cta:hover { background: #ddb636; transform: translateY(-2px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--white); }
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--navy); padding: 8px 32px 24px;
}
.nav-mobile a {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--white); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0; height: 120%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,46,0.55) 0%, rgba(11,27,46,0.35) 40%, rgba(11,27,46,0.9) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 0 32px 100px;
  color: var(--white);
}
.hero-eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -1px; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.75s forwards;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); max-width: 520px; margin-bottom: 36px;
  color: rgba(255,255,255,0.88); font-weight: 400;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.9s forwards;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 1.05s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-cue span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 16px 32px; transition: all 0.3s var(--ease);
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: #ddb636; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(201,162,39,0.3); }
.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-lg { padding: 20px 44px; font-size: 15px; }

/* ===== Section shared ===== */
.section-kicker {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; padding: 0 32px; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 42px);
  color: var(--navy); line-height: 1.1;
}

/* ===== Intro ===== */
.intro { padding: 120px 32px; background: var(--white); }
.intro-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.intro-kicker {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.intro-heading {
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px);
  color: var(--navy); line-height: 1.2; margin-bottom: 24px;
}
.intro-body { font-size: 18px; color: var(--gray); line-height: 1.7; }

/* ===== Services preview ===== */
.services-preview { padding: 100px 32px; background: var(--off-white); }
.service-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border);
}
.service-card {
  background: var(--white); padding: 40px 28px; transition: background 0.3s;
}
.service-card:hover { background: var(--navy); }
.service-card:hover h3, .service-card:hover p { color: var(--white); }
.service-card:hover .service-num { color: var(--gold); }
.service-num {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  color: var(--blue); display: inline-block; margin-bottom: 20px;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
}
.service-card h3 {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--navy); margin-bottom: 10px; transition: color 0.3s;
}
.service-card p { font-size: 14px; color: var(--gray); transition: color 0.3s; }
.link-arrow {
  display: block; text-align: center; margin-top: 48px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; color: var(--blue); text-transform: uppercase;
  transition: transform 0.25s;
}
.link-arrow:hover { transform: translateX(4px); color: var(--navy); }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Proof (image + text split) ===== */
.proof {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--navy);
}
.proof-image { overflow: hidden; height: 100%; min-height: 460px; }
.proof-image img { width: 100%; height: 100%; object-fit: cover; }
.proof-text {
  padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
}
.proof-text h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2; margin-bottom: 20px;
}
.proof-text p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 28px; line-height: 1.6; }
.proof-text .link-arrow { text-align: left; color: var(--gold); margin-top: 0; }
.proof-text .link-arrow:hover { color: var(--white); }

@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; }
  .proof-image { min-height: 320px; }
  .proof-text { padding: 56px 32px; }
}

/* ===== Service area band ===== */
.service-area {
  padding: 90px 32px; text-align: center; background: var(--white);
}
.service-area h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px);
  color: var(--navy); margin-bottom: 12px;
}
.service-area-sub { color: var(--gray); font-size: 16px; }

/* ===== CTA band ===== */
.cta-band {
  padding: 110px 32px; text-align: center; background: var(--blue);
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.cta-band h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 46px);
  color: var(--white); line-height: 1.15;
}

/* ===== Footer ===== */
.footer { background: var(--navy); padding: 64px 32px 28px; color: var(--white); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-contact p { font-size: 14px; margin-bottom: 6px; color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--gold); }
.footer-legal {
  max-width: 1120px; margin: 24px auto 0; font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--navy); padding: 180px 32px 90px;
}
.page-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.page-hero-inner h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5.5vw, 56px);
  color: var(--white); line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.5px;
}
.page-hero-inner p {
  font-size: 18px; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto;
}

/* ===== Services detail rows ===== */
.services-detail { max-width: 900px; margin: 0 auto; padding: 100px 32px; }
.service-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--border);
}
.service-row:first-child { padding-top: 0; }
.service-row-num {
  font-family: var(--display); font-weight: 800; font-size: 42px;
  color: var(--border); line-height: 1;
}
.service-row-content h2 {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  color: var(--navy); margin-bottom: 10px;
}
.service-row-content p { color: var(--gray); font-size: 16px; line-height: 1.65; max-width: 560px; }
.service-row-content a { color: var(--blue); font-weight: 600; }
.service-row-content a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row-num { font-size: 28px; }
}

/* ===== Services gallery strip ===== */
.services-gallery { padding: 0 32px 110px; background: var(--off-white); }
.gallery-strip {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-strip-item { overflow: hidden; aspect-ratio: 4/5; border-radius: 2px; }
.gallery-strip-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease);
}
.gallery-strip-item:hover img { transform: scale(1.06); }

@media (max-width: 800px) {
  .gallery-strip { grid-template-columns: 1fr; }
}

/* ===== Before/After Slider ===== */
.ba-section { padding: 20px 32px 40px; }
.ba-slider {
  position: relative; max-width: 1000px; margin: 0 auto;
  aspect-ratio: 4/3; overflow: hidden; border-radius: 4px;
  cursor: ew-resize; user-select: none; box-shadow: 0 30px 60px rgba(11,27,46,0.25);
}
.ba-after, .ba-before {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden;
}
.ba-after img, .ba-before img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.ba-before { width: 50%; }
.ba-before img { width: 1000px; max-width: none; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0;
}
.ba-handle-line {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 3px; background: var(--white);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.ba-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.ba-label {
  position: absolute; top: 20px; font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: rgba(11,27,46,0.65); padding: 8px 14px;
  pointer-events: none;
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }
.ba-caption {
  text-align: center; max-width: 600px; margin: 24px auto 0;
  color: var(--gray); font-size: 15px;
}

@media (max-width: 600px) {
  .ba-slider { aspect-ratio: 3/4; }
}

/* ===== Portfolio grid ===== */
.portfolio-gallery { padding: 60px 32px 100px; background: var(--white); }
.pf-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px;
}
.pf-item {
  position: relative; overflow: hidden; border-radius: 2px;
}
.pf-tall { grid-row: span 2; }
.pf-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.pf-item:hover img { transform: scale(1.07); }
.pf-item-tag {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--white);
  background: rgba(11,27,46,0.7); padding: 7px 12px;
}

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-tall { grid-row: span 1; }
}

/* ===== Contact ===== */
.contact-section { padding: 90px 32px 120px; background: var(--off-white); }
.contact-grid {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 64px;
}
.contact-form {
  background: var(--white); padding: 44px; border-radius: 4px;
  box-shadow: 0 20px 50px rgba(11,27,46,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block; font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border);
  font-family: var(--body); font-size: 15px; color: var(--charcoal);
  background: var(--off-white); transition: border-color 0.25s;
  border-radius: 2px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form-field textarea { resize: vertical; }
.form-submit { width: 100%; margin-top: 8px; }
.form-success {
  display: none; text-align: center; margin-top: 16px; color: var(--blue);
  font-weight: 600; font-size: 14px;
}
.form-success.show { display: block; }

.contact-info-block { margin-bottom: 44px; }
.contact-big-link {
  display: block; font-family: var(--display); font-weight: 700; font-size: 24px;
  color: var(--navy); margin-bottom: 6px; transition: color 0.25s;
}
.contact-big-link:hover { color: var(--blue); }
.contact-big-link.small { font-size: 15px; font-weight: 500; word-break: break-word; }
.contact-area { color: var(--gray); font-size: 15px; line-height: 1.7; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
