/* ============================================
   Eastern Renaissance Quality Trading Company
   ============================================ */

:root {
  --navy-950: #060f22;
  --navy-900: #0B1E3F;
  --navy-800: #13294B;
  --navy-700: #1C3A63;
  --gold: #C89B3C;
  --gold-light: #E4C77A;
  --paper: #F6F4EF;
  --paper-dim: #ECE8DE;
  --ink: #10182A;
  --ink-soft: #5B6472;
  --line: rgba(11, 30, 63, 0.12);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 155, 60, .35);
}

.btn-ghost {
  border: 1px solid rgba(246, 244, 239, .4);
  color: var(--paper);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 15, 34, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .3s ease, border-color .3s ease;
}

.site-header.solid {
  background: rgba(6, 15, 34, 0.94);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity .25s ease;
}
.brand:hover .brand-logo { opacity: .85; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav .nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(246, 244, 239, .82);
  border-radius: 4px;
  transition: color .25s ease, background .25s ease;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.main-nav .nav-link:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, .06);
}
.main-nav .nav-link:hover::after { transform: scaleX(1); }

.main-nav .nav-link.active {
  color: var(--gold-light);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease;
  margin: 0 auto;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: rgba(6, 15, 34, 0.98);
  transition: max-height .35s ease;
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav ul { padding: 8px 24px 20px; }
.mobile-nav .nav-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg { position: absolute; inset: 0; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(6,15,34,.94) 0%, rgba(11,30,63,.90) 45%, rgba(19,41,75,.88) 100%);
}

.hero-grid {
  opacity: .4;
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(200,155,60,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,155,60,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .96;
  color: var(--paper);
  margin: 0 0 28px;
  letter-spacing: -.01em;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: rgba(246,244,239,.78);
  max-width: 460px;
  margin: 0 0 40px;
}

/* ---------- Section basics ---------- */
.section { padding: 120px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 58px);
  line-height: .98;
  color: var(--navy-900);
  margin: 0 0 20px;
}
.section-lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.6;
}

/* ---------- Overview ---------- */
.overview { background: var(--paper); border-bottom: 1px solid var(--line); }
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.check-list li {
  position: relative;
  padding: 18px 0 18px 34px;
  font-size: 17px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Services ---------- */
.services { background: var(--navy-900); }
.services .section-title { color: var(--paper); }

.service-list { margin-top: 50px; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid rgba(246,244,239,.12);
  align-items: baseline;
}
.service-row:last-child { border-bottom: 1px solid rgba(246,244,239,.12); }

.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}

.service-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--paper);
  margin: 0 0 8px;
}
.service-copy p {
  font-size: 16px;
  color: rgba(246,244,239,.68);
  margin: 0;
  max-width: 560px;
}

/* ---------- Coverage ---------- */
.coverage { background: var(--paper); }
.coverage-top { margin-bottom: 50px; }

.coverage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.coverage-stat {
  background: var(--navy-900);
  border-radius: 6px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 76px;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 15px;
  color: rgba(246,244,239,.7);
  margin-top: 10px;
  line-height: 1.4;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.location {
  background: var(--paper);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .25s ease;
}
.location:hover { background: var(--paper-dim); }
.location-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy-900);
}
.location-type {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Workflow ---------- */
.workflow { background: var(--navy-800); }
.workflow .section-title, .workflow .section-lead { color: var(--paper); }
.workflow .section-lead { color: rgba(246,244,239,.7); }

.workflow-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246,244,239,.14);
}
.workflow-step {
  background: var(--navy-800);
  padding: 34px 26px;
}
.workflow-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 18px;
}
.workflow-step p {
  font-size: 16px;
  color: rgba(246,244,239,.82);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Why Us ---------- */
.why { background: var(--paper); }
.why-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-item {
  background: var(--paper);
  padding: 40px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy-900);
  margin: 0 0 10px;
}
.why-item p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--navy-950); }
.contact .section-title { color: var(--paper); }
.contact-lead {
  font-size: 20px;
  color: rgba(246,244,239,.82);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 50px;
}
.contact-lead strong { color: var(--gold-light); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246,244,239,.14);
  margin-bottom: 40px;
}
.contact-item {
  background: var(--navy-950);
  padding: 30px 6px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.contact-item a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--paper);
  transition: color .25s ease;
}
.contact-item a:hover { color: var(--gold-light); }

.contact-note {
  font-size: 16px;
  color: rgba(246,244,239,.6);
}

/* ---------- Contact form ---------- */
.contact-form-wrap {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid rgba(246,244,239,.14);
  max-width: 640px;
}

.form-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--paper);
  margin: 0 0 28px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(246,244,239,.65);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  background: rgba(246,244,239,.06);
  border: 1px solid rgba(246,244,239,.18);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color .25s ease, background .25s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(246,244,239,.1);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: #C0553F;
}

/* Honeypot — hidden from real users, present for bots that auto-fill forms */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-field input { max-width: 140px; }

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.form-status {
  margin: 4px 0 0;
  font-size: 14.5px;
  min-height: 20px;
}
.form-status.success { color: #7CC49B; }
.form-status.error { color: #E48C7A; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { margin-top: 50px; padding-top: 40px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(246,244,239,.1);
  padding: 40px 32px 30px;
  text-align: center;
}
.footer-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 18px;
  opacity: .9;
}
.site-footer p {
  margin: 4px 0;
  font-size: 13px;
  color: rgba(246,244,239,.55);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .5);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

@media (max-width: 560px) {
  .whatsapp-float {
    left: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 60, .35);
  background: rgba(6, 15, 34, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease, border-color .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
  transform: translateY(-4px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { padding: 24px 0; border-bottom: 1px solid rgba(246,244,239,.14); }
}

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .header-inner { padding: 0 20px; }
  .section-inner { padding: 0 22px; }
  .section { padding: 84px 0; }
  .hero-inner { padding: 60px 22px; }
  .service-row { grid-template-columns: 56px 1fr; gap: 16px; }
  .service-index { font-size: 30px; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 40px; }
  .footer-logo { height: 34px; }
  .hero-title { font-size: clamp(38px, 12vw, 60px); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .location { padding: 16px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; justify-content: center; }
}
