/* River Mountain Media — site styles */
:root {
  --navy-900: #0b1420;
  --navy-800: #101c2c;
  --navy-700: #16263b;
  --navy-600: #20344f;
  --ink: #0f1722;
  --text: #2a3441;
  --muted: #5d6b7c;
  --line: #e2e6ec;
  --light: #f4f6f9;
  --white: #ffffff;
  --accent: #ff7a2f;
  --accent-600: #e8641a;
  --accent-soft: rgba(255, 122, 47, 0.12);
  --river: #4fb3e8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(11, 20, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 20, 32, 0.16);
  --max: 1180px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-600); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 32, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links .btn { padding: 10px 20px; margin-left: 8px; color: var(--white); }
.nav-links .btn:hover { background: var(--accent-600); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 12px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; }
  .nav-links .btn { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #22406a 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 110px 0 200px;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 46ch; }
.hero .tagline { font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--white); font-weight: 600; margin-bottom: .8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; list-style: none; padding: 0; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.hero-pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-landscape { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }

.page-hero { padding: 90px 0 150px; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy-800); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}
.prose p { font-size: 1.08rem; }
.prose .big { font-size: 1.3rem; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600); margin-bottom: 22px;
}
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-600);
  text-decoration: none; margin-top: 8px;
}
.card-link:hover { gap: 12px; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.checklist li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist.two-col { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 640px) { .checklist.two-col { grid-template-columns: 1fr; } }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } }
.service-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.service-item .num {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--accent-600);
  background: var(--accent-soft); border-radius: 10px; min-width: 40px; height: 40px; display: grid; place-items: center;
}
.service-item h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; padding-top: 8px; }

/* ---------- Media visual panels (placeholders for photography) ---------- */
.visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
}
.visual svg { width: 70%; height: auto; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual.logo-panel { background: var(--white); border: 1px solid var(--line); aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; padding: 8%; }
.visual.logo-panel img { width: 100%; height: 100%; object-fit: contain; }
.brand img { width: auto; height: 42px; }

/* Browser-window showcase of a client site */
.showcase { margin: 0; }
.browser {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.browser:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(11, 20, 32, 0.22); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d8df; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url {
  flex: 1; margin-left: 10px; background: var(--white); border-radius: 6px; padding: 4px 12px;
  font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; }
.showcase figcaption { margin-top: 18px; font-size: .98rem; color: var(--muted); }
.showcase figcaption .eyebrow { display: block; margin-bottom: 4px; }
.showcase figcaption strong { color: var(--ink); }
.showcase figcaption a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-600); font-weight: 600; text-decoration: none; white-space: nowrap; }
.showcase figcaption a svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .browser { transition: none; } }
.visual .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 26px 22px;
}
.why .n { font-family: var(--font-head); color: var(--accent); font-weight: 700; font-size: 1.6rem; margin-bottom: 8px; }
.why p { margin: 0; color: rgba(255,255,255,.85); font-size: 1rem; }

/* ---------- Philosophy / callout ---------- */
.callout {
  border-left: 4px solid var(--accent); background: var(--white);
  padding: 28px 32px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
}
.callout p { margin: 0; font-size: 1.15rem; color: var(--ink); }
.callout strong { color: var(--accent-600); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--accent);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9a4d 100%);
  color: var(--white); border-radius: var(--radius-lg); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(255, 122, 47, .3);
}
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.92); }
@media (max-width: 600px) { .cta-band { padding: 36px 28px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: var(--white); color: var(--text);
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer;
  font-family: var(--font-body);
}
.filter[aria-pressed="true"] { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }
.project {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.project[hidden] { display: none; }
.project .thumb { aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; }
.project .thumb svg { width: 64px; height: 64px; color: var(--accent); opacity: .9; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project .client { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.project p { color: var(--muted); font-size: .98rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 22px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .item .icon {
  flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600);
}
.contact-info .item .icon svg { width: 22px; height: 22px; }
.contact-info h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-info p { margin: 0; color: var(--muted); }
.contact-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--accent-600); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--light);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-soft);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #e8f7ee; color: #17663a; }
.form-status.err { display: block; background: #fdecec; color: #9b1c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.65); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { margin-bottom: 16px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}

/* Keep grid children from forcing horizontal overflow on small screens */
.split > *, .contact-grid > *, .form-row > *, .footer-grid > * { min-width: 0; }
.contact-info a, .site-footer a { overflow-wrap: anywhere; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
