/* ============================================================
   Tilden Capital LLC — Shared Stylesheet
   "Elevated Ranch" design system
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   ------------------------------------------------------------ */

:root {
  /* Colors */
  --gold: #d59438;
  --gold-dark: #b87d2e;
  --charcoal: #2c2a26;
  --off-white: #faf8f5;
  --cream: #f0ebe3;
  --white: #ffffff;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}


/* ------------------------------------------------------------
   2. Reset & Base Styles
   ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}


/* ------------------------------------------------------------
   3. Navigation
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.nav.scrolled,
.nav.nav-frosted {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

/* Scrolled-state nav link color handled by default charcoal */
.nav:not(.scrolled):not(.nav-frosted) .nav-links a {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  transition: transform var(--transition-fast),
              opacity var(--transition-fast);
}

.nav:not(.scrolled):not(.nav-frosted) .nav-hamburger span {
  background-color: var(--white);
}


/* ------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
}

.hero-short {
  height: 40vh;
  min-height: 280px;
  background-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 42, 38, 0.15) 0%,
    rgba(44, 42, 38, 0.4) 50%,
    rgba(44, 42, 38, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero p.hero-tagline {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  opacity: 1;
}

/* Gold CTA button */
.btn-gold {
  display: inline-block;
  background-color: var(--gold);
  color: var(--charcoal);
  padding: 0.85rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
}


/* ------------------------------------------------------------
   5. Stats Bar
   ------------------------------------------------------------ */

.stats-bar {
  background-color: var(--charcoal);
  padding: 3rem 2rem;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
}


/* ------------------------------------------------------------
   6. Content Sections
   ------------------------------------------------------------ */

.section {
  padding: 5rem 0;
}

.section-cream {
  background-color: var(--cream);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.intro-card,
.content-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--off-white);
  padding: 3rem 3.5rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(44, 42, 38, 0.08);
}

.intro-card {
  text-align: center;
}

.intro-card-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.intro-card p {
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.content-card p {
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card h2 {
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.intro-card-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.intro-card-link:hover {
  color: var(--gold-dark);
}

/* Shared section heading style */
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin-top: 0.75rem;
}

.section-title.centered {
  text-align: center;
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}


/* ------------------------------------------------------------
   7. Team — Leadership Cards
   ------------------------------------------------------------ */

.leader-card {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.leader-card.reverse {
  flex-direction: row-reverse;
}

.leader-card img {
  width: 300px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.leader-card .bio {
  flex: 1;
}

.leader-card h3 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 0.5rem;
}

.leader-card .title {
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.leader-card .bio p {
  line-height: 1.7;
}

/* Team — Grid Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card .title {
  color: var(--gold);
  font-size: 0.9rem;
}


/* ------------------------------------------------------------
   8. Contact Page
   ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-grid .content-card {
  max-width: none;
}

.contact-info h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  line-height: 1.7;
}

.contact-title {
  color: var(--gold);
  font-style: italic;
  margin-top: -0.5rem;
}

.contact-info a {
  color: var(--gold);
  transition: opacity var(--transition-fast);
}

.contact-info a:hover {
  opacity: 0.8;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1cdc6;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background-color: var(--white);
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

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

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Map Embed */
.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
}


/* ------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------ */

.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer a {
  color: var(--white);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--gold);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-address p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-copyright {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}


/* ============================================================
   10. Responsive Breakpoints
   ============================================================ */

/* ---- Below 1024px ---- */
@media (max-width: 1024px) {

  /* Team grid: 2 columns */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Leader cards: stack vertical */
  .leader-card,
  .leader-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .leader-card img {
    width: 240px;
  }

  .leader-card h3 {
    display: inline-block;
  }
}

/* ---- Below 768px ---- */
@media (max-width: 768px) {

  :root {
    --nav-height: 60px;
  }

  /* Hamburger visible */
  .nav-hamburger {
    display: flex;
  }

  /* Mobile nav links: hidden by default, slide down when open */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--cream);
    padding: 1rem 2rem 2rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(44, 42, 38, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-logo img {
    height: 30px;
  }

  .nav-links a {
    color: var(--charcoal);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream);
    width: 100%;
    text-align: left;
  }

  .nav:not(.scrolled):not(.nav-frosted) .nav-links a {
    color: var(--charcoal);
  }

  /* Hero adjustments */
  .hero {
    padding-bottom: 5vh;
  }

  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: 0.12em;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero p.hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  /* Stats bar: vertical stack */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Contact grid: single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Team grid: single column */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Leader card image smaller on mobile */
  .leader-card img {
    width: 200px;
  }

  /* Footer: stack vertical */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Card padding tighter on mobile */
  .intro-card,
  .content-card {
    padding: 2rem 1.5rem;
  }

  /* Section padding tighter on mobile */
  .section {
    padding: 3.5rem 0;
  }
}
