/* ═══════════════════════════════════════════════════════════
   THIRD PLACES — Main Stylesheet
   "Mountain Lodge Meets Software Studio"
   Pacific Northwest private club software
═══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --green:       #2A4538;
  --green-mid:   #3D6154;
  --green-dark:  #192E23;
  --amber:       #C4873A;
  --amber-light: #D49A4F;
  --bg:          #F5F1EB;
  --surface:     #FFFFFF;
  --text:        #1C1C1C;
  --muted:       #6B7280;
  --border:      #E2DDD6;
  --radius:      8px;
  --radius-lg:   14px;
  --max-w:       1100px;
  --shadow-sm:   0 1px 3px rgba(28,28,28,0.08), 0 1px 2px rgba(28,28,28,0.05);
  --shadow-md:   0 4px 20px rgba(28,28,28,0.10), 0 2px 6px rgba(28,28,28,0.06);
  --shadow-warm: 0 6px 28px rgba(196,135,58,0.22);
  --tx:          0.22s ease;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ── Base ───────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--tx);
}
a:hover {
  color: var(--amber-light);
  text-decoration: underline;
}

.max-w {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background-color: var(--green) !important;
  padding: 0.9rem 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Applied by JS on scroll */
.navbar.navbar-scrolled {
  background-color: rgba(25, 46, 35, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  padding: 0.6rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
}

/* Mountain mark — brand identity icon */
.navbar-brand::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='15,4 28,26 2,26' fill='none' stroke='%23C4873A' stroke-width='2' stroke-linejoin='round'/%3E%3Cpolygon points='15,11 22,26 8,26' fill='%23C4873A' opacity='0.55'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.navbar-brand .brand-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.navbar-brand .brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  color: var(--amber);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--radius);
  transition: color var(--tx), background var(--tx);
  position: relative;
}

/* Underline slide-in on hover/active */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  transition: border-color var(--tx);
}
.navbar-toggler:hover {
  border-color: var(--amber);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary-tp {
  background-color: var(--green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--tx), transform 0.15s ease, box-shadow var(--tx);
  display: inline-block;
  cursor: pointer;
}
.btn-primary-tp:hover {
  background-color: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-amber {
  background-color: var(--amber);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--tx), transform 0.15s ease, box-shadow var(--tx);
  display: inline-block;
  cursor: pointer;
}
.btn-amber:hover {
  background-color: #a86d2a;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-warm);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 0.7rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--tx), border-color var(--tx), transform 0.15s ease;
  display: inline-block;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background-image:
    var(--noise),
    radial-gradient(ellipse at 50% -10%, #4a7060 0%, #2A4538 45%, #192E23 100%);
  color: #ffffff;
  padding: 130px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ambient light scatter */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 10%, rgba(196,135,58,0.09) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Lora', 'Raleway', serif;
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 1.3rem;
  letter-spacing: -0.025em;
  line-height: 1.18;
  position: relative;
}

.hero p.lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
  position: relative;
}

.mountain-svg {
  display: block;
  width: 100%;
  margin-bottom: -2px;
  filter: drop-shadow(0 -6px 24px rgba(0, 0, 0, 0.35));
}

/* ── Section scaffolding ────────────────────────────────── */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-white {
  background-color: var(--surface);
  box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border);
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.75rem;
  line-height: 1.65;
}

.section-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 0.65rem;
}

/* ── Problem columns ─────────────────────────────────────── */
.problem-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.problem-item {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: background var(--tx), box-shadow var(--tx);
}
.problem-item:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

.problem-item h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tx), transform var(--tx), border-top-color var(--tx);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-top-color: var(--amber);
}

.feature-card .feature-icon {
  font-size: 1.55rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(42,69,56,0.10) 0%, rgba(42,69,56,0.05) 100%);
  border-radius: 11px;
  border: 1px solid rgba(42, 69, 56, 0.12);
}

.feature-card h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── Mission strip ──────────────────────────────────────── */
.mission-strip {
  background-color: var(--amber);
  background-image:
    var(--noise),
    repeating-linear-gradient(
      -48deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.035) 28px,
      rgba(255, 255, 255, 0.035) 56px
    );
  color: #ffffff;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Oversized decorative quotation mark */
.mission-strip::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lora', 'Georgia', serif;
  font-size: 16rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
}

.mission-strip blockquote {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 1.25rem;
  border: none;
  padding: 0;
  position: relative;
  color: #ffffff;
}

.mission-strip .attribution {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CTA section ────────────────────────────────────────── */
.cta-section {
  background-image:
    var(--noise),
    linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  color: #ffffff;
  text-align: center;
  padding: 90px 0;
}

.cta-section h2 {
  font-family: 'Raleway', sans-serif;
  color: #ffffff;
  font-size: 2.1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.05rem;
  margin: 0 auto 2.25rem;
  max-width: 560px;
  line-height: 1.70;
}

/* ── Platform feature rows ──────────────────────────────── */
.platform-feature {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--tx);
}
.platform-feature:last-child {
  border-bottom: none;
}

.platform-feature .feat-label {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.platform-feature .feat-emoji {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42,69,56,0.10) 0%, rgba(42,69,56,0.05) 100%);
  border-radius: 11px;
  border: 1px solid rgba(42, 69, 56, 0.12);
}

.platform-feature .feat-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  margin: 0;
  line-height: 1.35;
}

.platform-feature .feat-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Portfolio / case study ─────────────────────────────── */
.case-study-header {
  background-image:
    var(--noise),
    radial-gradient(ellipse at 50% 0%, var(--green-mid) 0%, var(--green) 50%, var(--green-dark) 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  text-align: center;
}

.case-study-header h1 {
  font-family: 'Lora', 'Raleway', serif;
  font-style: italic;
  color: #ffffff;
}

.case-study-header p {
  color: rgba(255, 255, 255, 0.82);
}

.placeholder-screenshot {
  background: linear-gradient(135deg, #e8e4dc, #d8d4cc);
  border-radius: var(--radius-lg);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  border: 1px solid var(--border);
}

.screenshot-caption {
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.demo-cta-box {
  background: linear-gradient(135deg, #fdfaf6 0%, var(--surface) 100%);
  border: 2px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-warm);
}

.demo-cta-box h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--green);
  margin-bottom: 1rem;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── About ──────────────────────────────────────────────── */
.about-section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.how-we-work-list {
  list-style: none;
  padding: 0;
}
.how-we-work-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  color: var(--text);
  position: relative;
  line-height: 1.65;
  margin-bottom: 0;
}
.how-we-work-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  top: 0.65rem;
  color: var(--amber);
  font-size: 0.85rem;
}

/* ── Contact form ───────────────────────────────────────── */
.contact-blurb h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--green);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.form-label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.form-control {
  border-color: var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color var(--tx), box-shadow var(--tx);
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(42, 69, 56, 0.18);
  outline: none;
}

.alert-success-tp {
  background: linear-gradient(135deg, #d8f0de, #c6e8ce);
  border: 1px solid #a8d8b4;
  color: #1a5c2e;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ── Page headers (About, Platform, Contact) ────────────── */
.page-header {
  background-image:
    var(--noise),
    radial-gradient(ellipse at 50% 0%, var(--green-mid) 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #ffffff;
  padding: 70px 0 55px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Lora', 'Raleway', serif;
  font-style: italic;
  color: #ffffff;
  font-size: 2.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.85rem auto 0;
  line-height: 1.70;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background-color: #161E1A;
  background-image:
    var(--noise),
    linear-gradient(180deg, #1a2620 0%, #161E1A 100%);
  color: #ffffff;
  padding: 56px 0 32px;
  border-top: 3px solid var(--amber);
}

.footer-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  color: var(--amber);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

footer a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--tx);
}
footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  margin-top: 2.25rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 90px 0 0;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p.lead {
    font-size: 1rem;
  }
  .hero-btns {
    margin-bottom: 3.5rem;
  }
  .section {
    padding: 65px 0;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .mission-strip {
    padding: 65px 0;
  }
  .mission-strip blockquote {
    font-size: 1.2rem;
  }
  .mission-strip::before {
    font-size: 10rem;
  }
  .cta-section {
    padding: 65px 0;
  }
  .cta-section h2 {
    font-size: 1.65rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .demo-cta-box {
    padding: 1.75rem 1.25rem;
  }
}
