/* Riverloft Advisors — Executive advisory aesthetic */

:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --paper-warm: #f6f5f3;
  --muted: #6b6b6b;
  --muted-light: #9a9a9a;
  --border: #e5e5e5;
  --max-width: 720px;
  --nav-height: 4rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", sans-serif;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  color: var(--ink);
  margin-top: var(--space-xl);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--ink);
}

p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42ch;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--ink);
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-logo a {
  border: none;
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
}

.site-nav a:hover {
  color: var(--muted);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Home hero — full-bleed with background image */
.hero--full {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  border: none;
}

.hero--image {
  background-image: url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero--image .hero__content h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

/* Header over hero — dark tint for contrast over image and content */
.site-header--over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-header--over-hero .site-logo a,
.site-header--over-hero .site-nav a {
  color: #fff;
}

.site-header--over-hero .site-nav a:hover {
  color: rgba(255,255,255,0.8);
}

/* Home main — no max-width constraint for full-bleed hero */
.home-main {
  max-width: none;
  padding: 0;
}

/* Home page — intro paragraph then nav boxes */
.home-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) calc(var(--space-2xl) + var(--space-xl));
}
.home-intro__p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  text-align: justify;
}

/* Inner pages with full hero — same layout as home */
.main--with-hero {
  max-width: none;
  padding: 0;
}

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Hero with image (streaming/sports) — same white text as home */
.hero--streaming .hero__content h1,
.hero--sports .hero__content h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.hero--streaming .hero__content .hero__tagline,
.hero--sports .hero__content .hero__tagline {
  color: rgba(255,255,255,0.88);
}

/* Footer on home */
.site-footer--home {
  margin-top: 0;
}

/* Streaming/sports hero backgrounds (used with hero--full on inner pages) */
.hero--streaming {
  background-image: url("https://images.unsplash.com/photo-1522869635100-9f4c5e695562?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--sports {
  background-image: url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Default hero (other pages, no image) */
.hero {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border);
}

.hero .lead {
  margin-top: var(--space-md);
}

/* Section blocks */
.section {
  padding: var(--space-xl) 0;
}

.section > h2:first-child {
  margin-top: 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: var(--max-width);
  margin: var(--space-xl) auto;
}

/* Expertise page — Speaking section has subtle background for visual separation */
.expertise-speaking-section {
  background: var(--paper-warm);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
}

.expertise-speaking-section h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* About page — second section (Ben Grad) has subtle background for visual separation */
.about-section {
  background: var(--paper-warm);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
}

/* Home page focus list */
.home-focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.home-focus-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.home-focus-list li:last-child {
  border-bottom: none;
}

.home-focus-list strong {
  font-weight: 500;
  font-family: var(--font-serif);
}

.positioning .positioning-statement {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.about-close {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.section--links {
  padding-top: var(--space-md);
}

/* Focus areas / list styling */
.focus-list,
.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.focus-list li,
.experience-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: var(--space-xs);
}

.focus-list li:last-child,
.experience-list li:last-child {
  border-bottom: none;
}

.focus-list .title,
.experience-list .title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
}

.focus-list .desc,
.experience-list .desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* About — photo floats right so text is narrow beside it, full width below */
.about-content {
  overflow: auto;
}

/* When stacked: narrow newspaper-style column with a small buffer */
.about-content .about-copy {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 6px;
  padding-right: 6px;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  margin: 0 auto var(--space-lg);
}

@media (min-width: 720px) {
  .about-photo {
    float: right;
    width: 280px;
    max-width: none;
    margin: 0 0 var(--space-md) var(--space-xl);
  }

  /* Text flows beside photo (narrow), then uses full width below — no extra constraint */
  .about-content .about-copy {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* About (legacy) */
.profile {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .profile {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

/* Contact */
/* Speaker page */
.speaker-venues,
.speaker-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.speaker-venues li,
.speaker-topics li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.speaker-venues li:last-child,
.speaker-topics li:last-child {
  border-bottom: none;
}

.speaker-venues strong,
.speaker-topics strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 0.25em;
}

.speaker-venue-org {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--muted);
}

.speaker-topics li {
  padding: var(--space-md) 0;
}

.speaker-topics strong {
  display: inline;
  font-weight: 500;
}

.speaker-cta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: var(--space-xl);
  margin-bottom: 0;
}

.speaker-cta a {
  border-color: var(--muted-light);
}

.speaker-cta a:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.contact-block {
  padding: var(--space-lg) 0;
}

.contact-block p {
  margin: 0 0 var(--space-xs);
  color: var(--muted);
}

.contact-block a {
  font-size: 1rem;
  border: none;
}

/* Footer */
.site-footer {
  margin: 0;
  margin-top: auto;
  padding: 0;
  background: #4a4a4a;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Nav boxes — Home | Expertise | About | Contact (inside footer, dark band) */
.nav-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.nav-box {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-box:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-box--current {
  background: rgba(255, 255, 255, 0.14);
  cursor: default;
  opacity: 0.95;
}

.site-footer > p {
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  color: inherit;
}

.site-footer a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.site-footer a:hover {
  color: #fff;
  border-color: #fff;
  opacity: 0.9;
}

/* LinkedIn icon link — no underline, inline with text */
.icon-link {
  border: none;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.icon-link .icon-linkedin {
  display: block;
  transition: opacity 0.2s ease;
}

.icon-link:hover .icon-linkedin {
  opacity: 0.85;
}

/* Contact page: LinkedIn brand blue */
.icon-link--linkedin .icon-linkedin {
  fill: #0A66C2;
}

.site-footer .icon-link--linkedin .icon-linkedin {
  fill: #fff;
}

.site-footer .icon-link--linkedin:hover .icon-linkedin {
  opacity: 0.9;
}
/* Temporary "Stealth" Hide for Apple Review */
nav, .nav-links, .menu-items {
  display: none !important;
}