/* ===== RAYVINN TRADING & SHIPPING — SHARED CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --mahogany: #2C1810;
  --mahogany-deep: #1A0D08;
  --mahogany-mid: #4A2820;
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --ivory: #F8F5F0;
  --ivory-dark: #EDE8E1;
  --steel: #1A3A5C;
  --steel-light: #2E5F8A;
  --white: #FFFFFF;
  --text-dark: #1A1008;
  --text-mid: #5A4A3A;
  --text-light: #9A8A7A;
  --nav-tall: 120px;
  --nav-short: 64px;
  --nav-height: var(--nav-tall); /* used by page sections for padding-top */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-tall);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44,24,16,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: height 0.35s ease, box-shadow 0.3s ease, padding 0.35s ease;
}

.navbar.scrolled {
  height: var(--nav-short);
  box-shadow: 0 2px 24px rgba(44,24,16,0.12);
}

/* ===== LOGO ===== */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  /* Tall state: show full portrait logo generously */
  height: 88px;
  width: auto;
  transition: height 0.35s ease;
  object-fit: contain;
}

.navbar.scrolled .nav-logo img {
  height: 44px;
}

/* ===== DESKTOP NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mahogany);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--mahogany) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background 0.2s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--mahogany) !important;
}

/* ===== HAMBURGER (mobile) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  background: none;
  border: none;
  position: relative;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mahogany);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}

/* Hamburger → X when menu open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%; height: 100vh;
  background: var(--mahogany-deep);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 48px 48px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}

/* ===== CLOSE BUTTON inside overlay ===== */
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(248,245,240,0.08);
  border: 1px solid rgba(248,245,240,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  z-index: 10;
}

.mobile-menu-close:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--ivory);
  stroke-width: 2;
  fill: none;
}

/* ===== MOBILE MENU LINKS ===== */
.mobile-menu-links {
  list-style: none;
  width: 100%;
}

.mobile-menu-links li {
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.mobile-menu-links li:first-child {
  border-top: 1px solid rgba(201,168,76,0.15);
}

.mobile-menu-links a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 500;
  color: var(--ivory);
  padding: 20px 0;
  letter-spacing: 0.02em;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s;
}

.mobile-menu.open .mobile-menu-links a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open .mobile-menu-links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) a { transition-delay: 0.25s; }

.mobile-menu-links a:hover { color: var(--gold); }

.mobile-menu-footer {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.35s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-footer p {
  font-size: 13px;
  color: rgba(248,245,240,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu-footer a {
  display: block;
  font-size: 15px;
  color: var(--gold-light);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ===== FAB WhatsApp ===== */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

.fab svg { width: 30px; height: 30px; }

/* ===== SECTION UTILS ===== */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--mahogany-deep);
}

.section-title.light { color: var(--ivory); }

.section-subtitle {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
}

.section-subtitle.light { color: rgba(248,245,240,0.7); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mahogany);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--mahogany);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ivory);
  padding: 13px 32px;
  border-radius: 2px;
  border: 1px solid rgba(248,245,240,0.3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
  background: var(--mahogany-deep);
  color: var(--ivory);
  padding: 64px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248,245,240,0.1);
}

.footer-brand img {
  height: 64px;
  width: auto;
  /* transparent logo — no invert needed on dark bg */
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(248,245,240,0.5);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(248,245,240,0.55);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.footer-col ul a:hover { color: var(--gold); }

.footer-col p {
  font-size: 13px;
  color: rgba(248,245,240,0.55);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(248,245,240,0.3);
  letter-spacing: 0.04em;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --nav-tall: 80px;
    --nav-short: 60px;
  }

  .navbar {
    padding: 0 20px;
    /* sticky already set above — keep it */
  }

  .nav-logo img {
    height: 56px; /* comfortably tall on mobile pre-scroll */
  }

  .navbar.scrolled .nav-logo img {
    height: 36px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  footer { padding: 48px 24px 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== 2026 DESIGN POLISH ===== */
:root {
  --content-max: 1240px;
  --section-space: clamp(76px, 8vw, 112px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 55px rgba(44,24,16,0.08);
}

body { letter-spacing: -0.005em; }

.navbar {
  padding-inline: clamp(22px, 4vw, 64px);
  box-shadow: 0 1px 0 rgba(44,24,16,0.04);
}
.nav-links { gap: clamp(24px, 3vw, 42px); }
.nav-cta { border-radius: var(--radius-sm); padding: 12px 24px !important; }

.section-title { letter-spacing: -0.025em; }
.section-subtitle { font-size: clamp(15px, 1.3vw, 17px); }
.btn-primary, .btn-outline { border-radius: var(--radius-sm); min-height: 48px; }
.btn-primary { box-shadow: 0 8px 24px rgba(44,24,16,0.14); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(44,24,16,0.18); }

footer { padding-top: 76px; }
.footer-grid { max-width: var(--content-max); margin-inline: auto; }
.footer-bottom { max-width: var(--content-max); margin-inline: auto; }
.footer-brand img { height: 72px; }
.footer-col ul { gap: 13px; }

.fab { width: 56px; height: 56px; right: 24px; bottom: 24px; }

@media (max-width: 900px) {
  .mobile-menu { padding-inline: 28px; }
  .footer-grid { margin-bottom: 36px; padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
