/* ===== alb3r7.fi — Global Styles ===== */

:root {
  --forest: #142a24;
  --forest-light: #1e3d34;
  --gold: #ecb648;
  --gold-dim: #d4a43e;
  --cream: #f5f0e8;
  --offwhite: #fafaf8;
  --text: #1a1a1a;
  --text-light: #555;
  --text-inv: #f5f0e8;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --transition: .25s ease;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--forest);
}

a { color: var(--forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dim); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20, 42, 36, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 182, 72, .15);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a {
  color: rgba(245, 240, 232, .8);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--gold); }
.nav-links .nav-cta .btn { padding: 8px 20px; font-size: .8rem; }

/* Tighten spacing a touch on mid-size screens so the longer menu still fits one row */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .82rem; }
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; margin-right: -10px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--cream); margin: 5px 0;
  transition: transform .3s ease, opacity .2s ease;
}
/* Hamburger → X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop behind the mobile drawer */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 20, 17, .55);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity var(--transition);
}
.nav-backdrop.show { opacity: 1; }
/* Prevent body scroll while the drawer is open */
body.nav-open { overflow: hidden; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--forest);
  color: var(--text-inv);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(236, 182, 72, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; padding: 80px 0; }

.hero-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(236, 182, 72, .3);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(245, 240, 232, .7);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}
.btn-gold:hover { background: var(--gold-dim); color: var(--forest); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 240, 232, .3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--forest);
  color: var(--cream);
}
.btn-dark:hover { background: var(--forest-light); transform: translateY(-1px); }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Venture Cards (Homepage) ===== */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.venture-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.venture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.venture-card:hover::before { transform: scaleX(1); }

.venture-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.venture-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.venture-card p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 24px;
}

.venture-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.venture-link:hover { color: var(--gold-dim); gap: 10px; }

/* ===== Compact ventures (homepage "Also building") ===== */
.ventures-grid-compact { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.venture-card-compact { padding: 28px 24px; }
.venture-card-compact h3 { font-size: 1.1rem; }
.venture-card-compact p { font-size: .9rem; margin-bottom: 18px; }

/* ===== Product Blocks (homepage products) ===== */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-block.reverse { direction: rtl; }
.product-block.reverse > * { direction: ltr; }

.product-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.product-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 18px;
}

.product-text > p {
  color: var(--text-light);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.product-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.product-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: .95rem;
}
.product-points li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(236, 182, 72, .15);
}

.product-visual {
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.product-visual-forest {
  background: var(--forest);
  color: var(--cream);
}
.product-visual-forest::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 90%; height: 180%;
  background: radial-gradient(ellipse, rgba(236, 182, 72, .12) 0%, transparent 70%);
  pointer-events: none;
}
.product-visual-cream {
  background: var(--offwhite);
  color: var(--forest);
  border: 1px solid rgba(20, 42, 36, .08);
}
.product-visual-inner { position: relative; z-index: 1; }
.product-visual-icon { font-size: 4.5rem; display: block; margin-bottom: 18px; }
.product-visual-caption {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}

/* ===== Feature List ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature {
  padding: 32px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(0,0,0,.04);
}

.feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-light);
  font-size: .9rem;
}

/* ===== Page Hero (subpages) ===== */
.page-hero {
  background: var(--forest);
  color: var(--text-inv);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(245, 240, 232, .7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Stats Row ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.stat {
  text-align: center;
  padding: 24px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== Contact Form ===== */
.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forest);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0ddd5;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--offwhite);
  transition: border-color var(--transition);
}

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

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

/* ===== Content Block ===== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-text h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.content-visual {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--forest);
  color: var(--text-inv);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(245, 240, 232, .7);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--forest);
  color: rgba(245, 240, 232, .6);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(236, 182, 72, .1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: .9rem; max-width: 300px; }

.footer h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(245, 240, 232, .6);
  font-size: .9rem;
}
.footer ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .8rem;
}
.footer-legal a { color: var(--cream); }
.footer-legal a:hover { color: var(--gold); }

/* FAQ:start (generated by alb3r7-website-tools/faq_schema.py, edit there) */
/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: rgba(236, 182, 72, .55); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 60px 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-dim);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--forest-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { color: var(--text-light); font-size: .96rem; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(236, 182, 72, .7);
  text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--gold-dim); }
@media (max-width: 768px) {
  .faq-item summary { padding: 18px 52px 18px 20px; font-size: .98rem; }
  .faq-item summary::after { right: 20px; }
  .faq-answer { padding: 0 20px 20px; }
}
/* FAQ:end */

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Slide-in drawer from the right */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--forest);
    padding: 88px 28px 32px;
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(245, 240, 232, .08); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 16px 4px;
    font-size: 1rem;
  }
  .nav-links .nav-cta { margin-top: 20px; }
  .nav-links .nav-cta .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: .9rem;
  }
  .nav-toggle { display: block; }

  .hero-content { padding: 40px 0; }
  .hero h1 { font-size: 2rem; }

  .ventures-grid { grid-template-columns: 1fr; }
  .product-block { grid-template-columns: 1fr; gap: 32px; }
  .product-block.reverse { direction: ltr; }
  .product-block.reverse .product-visual { order: -1; }
  .product-visual { min-height: 220px; padding: 36px; }
  .product-visual-icon { font-size: 3.5rem; }
  .content-block { grid-template-columns: 1fr; gap: 32px; }
  .content-block.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
