/* ===========================================================
   Ron Rivlin Media — stylesheet
   =========================================================== */

:root {
  --teal-dark: #0d3b3e;
  --teal-accent: #1b6b70;
  --white: #ffffff;
  --off-white: #f7f8f8;
  --text-dark: #12222a;
  --text-gray: #5a6b6f;

  --font-heading: 'Barlow Condensed', 'Arial Narrow', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --header-height: 84px;
  --container-width: 1180px;

  --shadow-sm: 0 2px 10px rgba(13, 59, 62, 0.08);
  --shadow-md: 0 10px 40px rgba(13, 59, 62, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--teal-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }

p { margin: 0 0 1em; color: var(--text-gray); }

section[id] { scroll-margin-top: var(--header-height); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 720px; }

section { padding: 96px 0; }

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #0a2e30; box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}
.btn-outline:hover { background: var(--teal-dark); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  margin-top: 40px;
}
.btn-white:hover { background: var(--off-white); box-shadow: var(--shadow-md); }

.btn-full { width: 100%; }

.text-link {
  display: inline-block;
  color: var(--teal-accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover { border-color: currentColor; }
.text-link-large { font-size: 1.05rem; }
.text-link-white { color: var(--white); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--teal-accent);
  margin: 0 0 1em;
}
.eyebrow-light { color: #9fd4d6; }

/* ---------- Icon circles ---------- */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-accent);
  flex-shrink: 0;
}
.icon-circle .icon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle-light { border-color: rgba(255,255,255,0.55); color: var(--white); }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(13, 59, 62, 0.08);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { flex-shrink: 0; }
.logo-horizontal { height: 34px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal-accent);
  transition: width 0.2s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.btn-nav-cta { padding: 12px 26px; font-size: 0.82rem; flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-dark);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Hero
   =========================================================== */
.hero { padding: 88px 0 100px; background: var(--off-white); }
.hero-inner {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 40px;
}
.hero-subhead { font-size: 1.25rem; color: var(--text-dark); font-weight: 500; margin-bottom: 0.75em; }
.hero-body { font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-art { display: flex; justify-content: center; }
.hero-illustration { width: 100%; max-width: 400px; height: auto; }
.hero-label {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  fill: var(--teal-dark);
}

/* ===========================================================
   The Problem
   =========================================================== */
.the-problem { text-align: center; background: var(--white); }
.the-problem p { font-size: 1.1rem; }
.problem-closer {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-top: 1.5em;
}

/* ===========================================================
   Three Solutions
   =========================================================== */
.solutions { background: var(--off-white); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.solution-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.solution-desc { color: var(--text-dark); font-weight: 500; }
.solution-list { margin: 0 0 24px; }
.solution-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-gray);
  font-size: 0.95rem;
}
.solution-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--teal-accent);
}
.solution-card .text-link { margin-top: auto; }

/* ===========================================================
   The Differentiator
   =========================================================== */
.differentiator {
  background: var(--teal-dark);
  color: var(--white);
  text-align: center;
}
.differentiator h2 { color: var(--white); }
.differentiator > .container > p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 60ch; margin-left: auto; margin-right: auto; }
.differentiator-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}
.differentiator-item { display: flex; flex-direction: column; align-items: flex-start; }
.differentiator-item h3 { color: var(--white); }
.differentiator-item p { color: rgba(255,255,255,0.75); margin: 0; }

/* ===========================================================
   Lead Form
   =========================================================== */
.lead-form-section { background: var(--off-white); }
.lead-form-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
  text-align: center;
}
.lead-form-subhead { font-size: 1.05rem; margin-bottom: 2em; }
#lead-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.required { color: var(--teal-accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #dfe4e5;
  border-radius: 10px;
  background: var(--off-white);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-accent);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #c0392b; }
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}
/* Honeypot: off-screen for people, still fillable by bots. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #c0392b;
  background: rgba(192, 57, 43, 0.07);
}
#lead-form .btn[disabled] { opacity: 0.65; cursor: not-allowed; }

#lead-form .btn { margin-top: 8px; }

.form-success { padding: 24px 0; }
.form-success p { font-size: 1.05rem; }

/* ===========================================================
   Technology Partners
   =========================================================== */
.partners { background: var(--white); }
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-heading p { font-size: 1.05rem; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.partner-card {
  border: 1.5px solid #e7ebeb;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.partner-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.partner-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}
.partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-name { font-size: 1.1rem; margin-bottom: 0.4em; }
.partner-card p { font-size: 0.95rem; }

.partners-closer { text-align: center; margin-top: 56px; }
.partners-closer p { max-width: 50ch; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ===========================================================
   Technology Companies
   =========================================================== */
.tech-companies {
  background: var(--teal-dark);
  color: var(--white);
}
.tech-companies h2 { color: var(--white); }
.tech-companies .section-heading p:not(.eyebrow) { color: rgba(255,255,255,0.82); }
.tech-companies-closer { text-align: center; margin-top: 48px; }
/* .btn-white carries its own margin-top for the hero; not wanted on top of the closer's. */
.tech-companies-closer .btn-white { margin-top: 0; }

/* ===========================================================
   About Ron
   =========================================================== */
.about-ron { background: var(--off-white); }
.about-ron-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-copy p { font-size: 1.02rem; }
.about-copy .btn { margin-top: 8px; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 40px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }

.footer-logo-link {
  display: inline-block;
  margin-bottom: 24px;
}
.footer-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-contact { margin-bottom: 28px; }
.footer-copyright { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .solutions-grid,
  .partners-grid,
  .differentiator-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about-ron-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 32px 24px;
  }
  .main-nav .nav-link { display: block; width: 100%; padding: 14px 0; font-size: 1.15rem; }
  .nav-cta-mobile { display: block; width: 100%; margin-top: 16px; }
  .nav-cta-mobile .btn { width: 100%; }

  .btn-nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .hero-illustration { max-width: 300px; }

  .solutions-grid,
  .partners-grid,
  .differentiator-row { grid-template-columns: 1fr; }

  .about-ron-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }

  .lead-form-card { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  h1 { font-size: 2.3rem; }
}
