/* ============================================================
   River Tree Partners — Static Site CSS
   Based on Inspiro theme by WPZOOM
   Fonts: Inter (body), Montserrat (headings/nav/buttons)
   Colors: Primary #0bb4aa | Dark #101010 | Grey #f2f4f6
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
:root {
  --primary:       #0bb4aa;
  --dark:          #101010;
  --light-grey:    #f2f4f6;
  --body-bg:       #fff;
  --body-text:     #444;
  --mid-grey:      #7a7a7a;
  --link-hover:    #000;
  --nav-height:    64px;
  --transition:    0.2s ease;
}

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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--body-text);
  background: var(--body-bg);
}

img { max-width: 100%; height: auto; display: block; border: none; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: #222;
}

p { margin: 0 0 1rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; margin: 0; padding: 0; }

/* ── LAYOUT HELPERS ───────────────────────────────────────── */
.wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 30px;
}
.wrap.wide { max-width: 1300px; }

.inner-pad { padding-top: 60px; padding-bottom: 60px; }

.spacer-50 { height: 50px; }
.spacer-sm { height: 31px; }

/* ── HEADER & NAV ─────────────────────────────────────────── */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  background: var(--dark);
  color: #fff;
  padding: 12px 0;
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent navbar — used on homepage AND interior pages with hero images */
.navbar.navbar-transparent {
  background: transparent;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.25) 1%, rgba(0,0,0,0) 100%);
  padding: 18px 0;
  box-shadow: none;
}

/* Scrolled/solid state */
.navbar.navbar-scrolled,
.navbar.navbar-solid {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 2px 18px rgba(0,0,0,0.18);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  margin-right: 10px;
  max-width: 50%;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  max-height: 80px;   /* full size when transparent (over hero) */
  width: auto;
  display: block;
  transition: max-height 0.35s ease;
}

/* Subtle logo shrink once navbar goes solid — matches Inspiro theme (80→70px) */
.navbar.navbar-scrolled .custom-logo,
.navbar.navbar-solid .custom-logo {
  max-height: 70px;
}

/* Nav links */
.header-navigation-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-nav li { margin: 0; }

.navbar-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 5px 0 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.navbar-nav a:hover {
  border-bottom-color: rgba(255,255,255,0.8);
  opacity: 0.85;
  color: #fff;
}

.navbar-nav .current-menu-item a {
  border-bottom-color: rgba(255,255,255,0.35);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.2s ease;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  padding: 20px 30px;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }

.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }

.mobile-nav a {
  display: block;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 0;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--primary); }

/* ── HOMEPAGE HERO ────────────────────────────────────────── */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* White overlay at 20% opacity (matching dimRatio:20, customOverlayColor:#FFF) */
.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.20);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-line-1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.08em;
  letter-spacing: -0.02em;
}

.hero-line-2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.65em;
  letter-spacing: -0.02em;
}

.hero-subtitle p {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 auto;
  max-width: 780px;
  text-align: center;
}

/* Scroll-down chevron */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: block;
  width: 40px;
  height: 24px;
  opacity: 0.6;
  animation: pulsate 1.6s ease-out infinite;
}

.scroll-down::before {
  content: "";
  display: block;
  position: absolute;
  left: 9px;
  bottom: 4px;
  height: 22px;
  width: 22px;
  border: 2px solid #fff;
  transform: rotate(45deg);
  border-top: none;
  border-left: none;
}

.scroll-down:hover { opacity: 1; }

@keyframes pulsate {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.9; }
  100% { opacity: 0.4; }
}

/* ── AT RIVER TREE SECTION ────────────────────────────────── */
.at-river-tree {
  padding: 70px 0 60px;
  text-align: center;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 20px);  /* has-medium-font-size in WP */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 20px;
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  text-align: center;
}

.lets-work {
  font-family: 'Inter', sans-serif;  /* plain paragraph — body font */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--primary);
  margin: 10px 0 0;
}

/* ── TWO COLUMN SECTIONS ──────────────────────────────────── */
.two-col-section { overflow: hidden; }

.two-col-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.two-col-row.reverse { flex-direction: row-reverse; }

.col-text, .col-image { flex: 1 1 0; }

.col-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 20px);  /* has-medium-font-size in WP */
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 18px;
}

.col-text p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.section-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Approach section: white bg */
.approach-section { background: #fff; }

/* Strength section: light grey bg */
.strength-section.has-bg { background: var(--light-grey); }
.strength-section.has-bg .inner-pad { padding-bottom: 40px; }

/* ── OUR CLIENTS ──────────────────────────────────────────── */
.our-clients {
  padding: 40px 0 60px;
  text-align: center;
}

.section-heading-center {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
  text-align: center;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logo {
  max-height: 60px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.client-logo:hover { opacity: 1; }

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.cta-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fffffa;
  margin-bottom: 0;
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 28px;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-btn:hover {
  background: #fff;
  color: #111;
}

/* ── FOOTER ───────────────────────────────────────────────── */
/* Theme mods: color_footer_background:#ffffff, color_footer_copyright_text:#000000 */
.site-footer {
  background: #ffffff;
  color: #000000;
  padding: 30px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.site-footer .site-info {
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.02em;
  color: #000000;
}

.site-footer a { color: #444; }
.site-footer a:hover { color: var(--primary); }

/* ── PAGE HERO IMAGE (Interior pages) ────────────────────── */
.page-hero-image {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background-size: cover;
  background-position: center 65%;   /* show lower/foreground of image, not sky */
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: flex-end;   /* push content to bottom */
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;        /* must be 100% so flex item spans full width, title stays left */
  padding-bottom: 40px;
}

.page-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ── PAGE CONTENT PADDING ─────────────────────────────────── */
.page-content { padding-bottom: 0; }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-intro {
  padding: 60px 0 0;
}

.about-heading-main {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  color: #222;
  max-width: 900px;
}

.about-heading-main strong {
  font-weight: 700;
}

.about-columns {
  padding: 0 0 60px;
}

.three-col-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-col { flex: 1 1 0; }

.about-col-img {
  margin: 0 0 16px;
  overflow: hidden;
}

.about-col-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.about-col-img img:hover { transform: scale(1.02); }

.about-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}
.about-col-title a {
  color: #000;
  text-decoration: none;
}
.about-col-title a:hover { color: var(--primary); }

.about-col-text {
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-section { padding: 60px 0 0; }

.contact-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.contact-heading-col { flex: 0 0 50%; padding-right: 7%; }
.contact-empty-col   { flex: 0 0 50%; }

.contact-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: #222;
  line-height: 1.25;
}

.contact-form-wrap { max-width: 700px; }

.contact-form { width: 100%; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #444;
  border: 2px solid rgba(68,68,68,0.2);
  border-radius: 0;
  background: #fff;
  display: block;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #3d84f6;
  border: 2px solid #3d84f6;
  padding: 12px 30px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.form-submit:hover {
  background: #2a6fd4;
  border-color: #2a6fd4;
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  color: var(--primary);
}

/* ── SCROLL FADE-IN ANIMATION ─────────────────────────────── */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .two-col-row { gap: 40px; }
  .three-col-row { gap: 28px; }
}

@media screen and (max-width: 768px) {
  /* Mobile nav */
  .header-navigation-wrapper { display: none; }
  .navbar-toggle { display: flex; }

  /* Two col: stack */
  .two-col-row,
  .two-col-row.reverse { flex-direction: column; gap: 30px; }

  .col-image,
  .col-text { flex: 1 1 auto; width: 100%; }

  .inner-pad { padding-top: 40px; padding-bottom: 40px; }

  /* Three col: stack */
  .three-col-row { flex-direction: column; gap: 40px; }

  /* Contact row stack */
  .contact-row { flex-direction: column; gap: 20px; }
  .contact-heading-col { flex: none; padding-right: 0; width: 100%; }
  .contact-empty-col { display: none; }

  /* No fixed parallax on mobile */
  .cta-section { background-attachment: scroll; }
  .page-hero-image { min-height: 38vh; }

  /* About intro padding */
  .about-intro { padding: 40px 0 0; }
  .about-columns { padding-bottom: 40px; }

  /* Hero text */
  .hero-line-1, .hero-line-2 { line-height: 1.1; }
}

@media screen and (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-line-1, .hero-line-2 { font-size: 32px; }
  .hero-subtitle p { font-size: 17px; }
  .at-river-tree { padding: 50px 0 40px; }
  .our-clients { padding: 30px 0 40px; }
  .cta-section { min-height: 250px; }
  .cta-heading { font-size: 13px; }
  .page-hero-bar { padding-top: 90px; padding-bottom: 30px; }
}
