/* ==========================================================================
   Rivamet — Global Stylesheet
   ========================================================================== */

:root {
  --ink:        #12181d;
  --navy:       #16303f;
  --navy-dark:  #0d1f29;
  --copper:     #c17a3e;
  --copper-dark:#a4622d;
  --copper-lt:  #e7b98a;
  --bg:         #f7f5f1;
  --bg-alt:     #efe9e0;
  --white:      #ffffff;
  --text:       #22262b;
  --muted:      #5b6470;
  --border:     #e3ddd2;

  --font-head: 'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 24, 29, 0.08);
  --shadow-lg: 0 20px 50px rgba(18, 24, 29, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--copper);
  display: inline-block;
}

section { position: relative; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-dark); color: #cfd8de; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: #a9b7be; }

.text-center { text-align: center; }
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
}
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-copper {
  background: var(--copper);
  color: var(--white);
}
.btn-copper:hover { background: var(--copper-dark); transform: translateY(-1px); }
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  border-color: var(--border);
  color: var(--navy-dark);
}
.btn-outline-dark:hover { border-color: var(--navy-dark); }
.btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--navy-dark);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav > li { position: relative; }
.nav a, .nav button.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-dark);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover, .nav button.nav-link:hover { background: var(--bg-alt); color: var(--copper-dark); }
.nav .caret { width: 10px; height: 10px; transition: transform 0.2s ease; }
.has-dropdown:hover .caret,
.has-dropdown.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--copper-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: 13.5px; }

.mobile-nav { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy-dark);
  transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(193,122,62,0.30), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1c3a4b 100%);
  color: var(--white);
  padding: 128px 0 120px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 24px;
}
.hero .lede { color: #c7d3d9; font-size: 19px; max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.8) contrast(1.15) saturate(1.05);
}
/* full-screen hero: fills the viewport below the sticky header */
.hero--video {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}
.hero--video > .container { width: 100%; }
.hero--video::before { display: none; }
.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(6,14,20,0.55) 0%, transparent 35%),
    linear-gradient(to right, rgba(6,14,20,0.72) 0%, rgba(6,14,20,0.42) 50%, rgba(6,14,20,0.22) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero--video::after { display: none; }
}

.hero--page {
  padding: 76px 0 72px;
}
.hero--page .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #9fb0b8;
  margin-bottom: 18px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero--page .breadcrumb a:hover { color: var(--copper-lt); }
.hero--page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }

/* stat strip inside hero */
.stat-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat-strip .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--white);
}
.stat-strip .stat span {
  font-size: 13px;
  color: #9fb0b8;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--copper-lt), var(--copper));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card .icon-box svg { width: 26px; height: 26px; color: var(--white); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--copper-dark);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* feature / split blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split + .split { margin-top: 88px; }
.split.reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4 / 3.1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-copy .eyebrow { margin-bottom: 12px; }
.split-copy h2 { font-size: 30px; margin-bottom: 16px; }

/* decorative "metal" art panels — pure CSS, no external images */
.art {
  width: 100%;
  height: 100%;
  position: relative;
}
.art-vision {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(155deg, #1c3a4b 0%, var(--navy-dark) 65%);
}
.art-values {
  background:
    radial-gradient(circle at 75% 75%, rgba(231,185,138,0.35), transparent 50%),
    linear-gradient(155deg, var(--copper-dark) 0%, var(--navy-dark) 100%);
}
.art-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}
.art-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
}
.art-facet {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  clip-path: polygon(20% 0, 100% 15%, 85% 100%, 0 80%);
}

/* tile / photo-style swatches used on Home "focus" grid, in place of photography */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.tile {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile:nth-child(7) { grid-row: span 2; }
.tile-label {
  position: absolute;
  left: 16px; bottom: 14px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  z-index: 2;
}
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,31,41,0.65), transparent 55%);
}
.tile-1 { background: linear-gradient(160deg,#22475b,#0d1f29); }
.tile-2 { background: linear-gradient(160deg,#c17a3e,#7c4a20); }
.tile-3 { background: linear-gradient(160deg,#3a5566,#16303f); }
.tile-4 { background: linear-gradient(160deg,#8a9a9e,#2f3d43); }
.tile-5 { background: linear-gradient(160deg,#e7b98a,#a4622d); }
.tile-6 { background: linear-gradient(160deg,#16303f,#0d1f29); }
.tile-7 { background: linear-gradient(160deg,#4c6572,#1c3a4b); }
.tile-8 { background: linear-gradient(160deg,#c17a3e,#16303f); }

/* pillars / numbered list */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  border-left: 2px solid var(--border);
  padding-left: 22px;
}
.pillar b.num {
  display: block;
  font-family: var(--font-head);
  color: var(--copper);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; }

/* advantage checklist */
.advantage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.advantage-item { display: flex; gap: 16px; }
.advantage-item .chk {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.advantage-item .chk svg { width: 15px; height: 15px; color: var(--copper-dark); }
.advantage-item h4 { font-size: 15.5px; margin-bottom: 4px; color: var(--navy-dark); font-family: var(--font-head); }
.advantage-item p { font-size: 14px; margin: 0; }

/* locations */
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.location-card .pin {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.location-card .pin svg { width: 20px; height: 20px; color: var(--copper-lt); }
.location-card h4 { font-family: var(--font-head); font-size: 16.5px; color: var(--navy-dark); margin-bottom: 6px; }
.location-card p { font-size: 14px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,122,62,0.35), transparent 70%);
}
.cta-band h2 { color: var(--white); font-size: 26px; margin-bottom: 8px; max-width: 480px; }
.cta-band p { color: #a9b7be; margin: 0; }

/* Table-style content blocks (services / products) */
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.feature-row:last-child { }
.feature-row .icon-box { margin-bottom: 0; width: 48px; height: 48px; }
.feature-row h3 { font-size: 19px; margin-bottom: 8px; }
.feature-row p { font-size: 15px; max-width: 640px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
}
.form-field input, .form-field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--text);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(193,122,62,0.15);
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-head);
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status.ok { background: #e6f3ea; color: #1f7a45; }
.form-status.err { background: #fbe9e7; color: #b3402a; }

/* contact info cards */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item {
  display: flex; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-info-item .ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
}
.contact-info-item .ico svg { width: 20px; height: 20px; color: var(--copper-dark); }
.contact-info-item h4 { font-family: var(--font-head); font-size: 15px; color: var(--navy-dark); margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; }

/* map placeholder */
.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-box svg { width: 70%; opacity: 0.9; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #93a3ab;
  padding: 72px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 300px; margin-top: 16px; font-size: 14px; }
.footer-col h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: var(--copper-lt); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--copper); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--copper-lt); }
.footer-legal { display: flex; gap: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .advantage-list { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--white);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav > ul > li > a,
  .mobile-nav .m-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    background: none;
    border-left: none; border-right: none; border-top: none;
    text-align: left;
    cursor: pointer;
  }
  .mobile-nav .sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .mobile-nav .sub-list.open { max-height: 260px; }
  .mobile-nav .sub-list a { padding: 12px 6px 12px 18px; font-size: 15px; display: block; }
  .mobile-nav .m-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
  .mobile-nav .m-toggle.open svg { transform: rotate(180deg); }
  .mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 80px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .tile:nth-child(7) { grid-row: span 1; }
  .cta-band { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
