/* ═══════════════════════════════════════════════════════════════
   Rho Pacific Holdings — styles.css
   Layout modelled closely on Graticule Pacific Holdings
   (www.gama.com). Zero-dependency static site.

   ── Typography System ──────────────────────────────────────────
   Display / Wordmark:  DM Sans, weight 300 (light)
   Body / UI:           DM Sans, weight 400 (regular), 500 (medium), 600 (semibold)
   Fallback stack:      Tahoma, Arial, Helvetica, sans-serif

   ── Color Palette ──────────────────────────────────────────────
   --navy:       #1C3444   Primary brand navy — logo, headings, body text, footer bg
   --white:      #FFFFFF   Backgrounds, reversed text
   --gray:       #6B7B85   Neutral gray — secondary text, rule lines, captions
   No additional accent colors.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', Tahoma, Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #1C3444;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Design Tokens ─── */
:root {
  --navy:          #1C3444;
  --navy-rule:     rgba(28, 52, 68, 0.15);
  --navy-rule-med: rgba(28, 52, 68, 0.25);
  --white:         #ffffff;
  --gray:          #6B7B85;
  --nav-height:    90px;
  --content-max:   860px;   /* ~65–75 chars/line at 18px body */
  --site-max:      1170px;
  --pad-h:         40px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--navy-rule);
}

.navbar-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand / Logo */
.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo {
  height: 64px;
  width: auto;
  display: block;
}

/* Nav Links */
.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-links li {
  border-left: 1px solid var(--navy-rule-med);
}

.navbar-links li:last-child {
  border-right: 1px solid var(--navy-rule-med);
}

.navbar-link {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.navbar-link:hover {
  color: var(--white);
  background-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — full-bleed, flush to nav, no gutters
   ═══════════════════════════════════════════════════════════════ */
.hero {
  margin-top: var(--nav-height);
  width: 100%;
  line-height: 0;
  overflow: hidden;
  display: block;
  /* Ensure no horizontal overflow creates gutters */
  padding: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  vertical-align: bottom;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.main-content {
  background-color: var(--white);
}

.content-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ─── Sections ─── */
.content-section {
  padding-top: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--navy-rule);
}

.content-section:last-child {
  border-bottom: none;
  padding-bottom: 60px;
}

/* Section heading with thin rule beneath — creates clear hierarchy */
.section-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gray);
  margin-bottom: 22px;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--navy-rule);
}

.section-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.2px;
  color: var(--navy);
  text-align: justify;
  margin-bottom: 27px;
}

.section-body:last-child {
  margin-bottom: 0;
}

/* ─── Contact ─── */
.contact-item {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}

.contact-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy-rule-med);
  transition: border-color 200ms ease;
}

.contact-link:hover {
  border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--navy);
}

.footer-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 28px var(--pad-h);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Small monogram in footer */
.footer-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.85;
}

/* Footer text block */
.footer-text {
  flex: 1;
  min-width: 220px;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-regulatory {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer links */
.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  align-self: center;
  flex-shrink: 0;
}

.footer-link {
  display: block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  transition: color 150ms ease;
}

.footer-link:first-child {
  border-left: none;
}

.footer-link:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy, Terms, Important Information)
   ═══════════════════════════════════════════════════════════════ */
.legal-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 50px) var(--pad-h) 60px;
}

.legal-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--navy-rule);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal-body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.2px;
  color: var(--navy);
  margin-bottom: 16px;
}

.legal-body-text:last-child {
  margin-bottom: 0;
}

.legal-body-text a {
  color: var(--navy);
  border-bottom: 1px solid var(--navy-rule-med);
  text-decoration: none;
}

.legal-body-text a:hover {
  border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 1440px / 768px / 375px
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --pad-h:      24px;
  }

  .navbar-logo {
    height: 44px;
  }

  .navbar-link {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  .section-body,
  .contact-item {
    font-size: 16px;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px var(--pad-h);
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 4px 0;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
    --pad-h:      16px;
  }

  /* On very small screens hide the nav links — logo only */
  .navbar-links {
    display: none;
  }

  .navbar-container {
    justify-content: flex-start;
  }

  .navbar-logo {
    height: 38px;
  }

  .section-body,
  .contact-item {
    font-size: 15px;
  }

  .legal-body-text {
    font-size: 15px;
  }
}
