/* ============================================
   Trellis Directory - Marketing Site Styles
   ============================================ */

:root {
  --bg: #F8F6F1;
  --text: #203027;
  --accent: #C89B57;
  --accent-hover: #B8883E;
  --surface: rgba(32, 48, 39, 0.08);
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --muted: #5A6B5E;
  --border: rgba(32, 48, 39, 0.08);
  --footer-bg: #203027;
  --footer-text: #F0EDE4;
  --footer-accent: #C89B57;
  --radius: 8px;
  --radius-lg: 12px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
}

.eyebrow + h2 {
  margin-bottom: 2rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---- Layout ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section.section-compact {
  padding: 64px 0;
}

.section.section-spacious {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}


/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  width: 28px;
  height: 28px;
}

.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  margin-left: 8px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger span:nth-child(1) { top: 8px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 22px; }

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 15px;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero .container {
  display: block;
}

.hero h1 {
  font-size: 3.25rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-panel {
  display: none;
}

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 12px;
}

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

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  padding: 32px 28px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.feature-item h3 {
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.features-more {
  text-align: center;
  margin-top: 48px;
}

.features-more p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---- Quote Section ---- */
.quote-section {
  text-align: center;
  padding: 72px 0;
}

.quote-section .quote-statement {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.quote-section .quote-attr {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: rgba(32, 48, 39, 0.07);
  position: relative;
  overflow: hidden;
}


.cta-banner h2 {
  margin-bottom: 28px;
}

.cta-banner .btn {
  margin-bottom: 20px;
}

.cta-banner .cta-email {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-banner .cta-email a {
  color: var(--accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(240, 237, 228, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--footer-accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-company {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(240, 237, 228, 0.65);
  line-height: 1.6;
}

.footer-company a {
  color: var(--footer-accent);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(240, 237, 228, 0.45);
}

/* ---- Page Header ---- */
.page-header {
  text-align: center;
  padding: 80px 0 60px;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header .page-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Feature Detail (features.html) ---- */
.feature-detail {
  padding: 48px 0;
}

.feature-detail:nth-child(even) {
  background: var(--surface);
}

.feature-detail-inner {
  max-width: 720px;
  margin: 0 auto;
}

.feature-detail h2 {
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.feature-detail p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-detail .screenshot-placeholder {
  margin-top: 28px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  height: 200px;
  display: none; /* Hidden until screenshots are added */
}

/* Coming Soon */
.coming-soon-section {
  padding: 80px 0;
}

.coming-soon-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.coming-soon-item {
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.coming-soon-item h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.coming-soon-item p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

.coming-soon-target {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 840px;
  margin: 0 auto 60px;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(200, 155, 87, 0.12);
}

.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.925rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-bottom {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-bottom p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-bottom strong {
  color: var(--text);
}

/* ---- FAQ ---- */
.faq-section {
  padding: 80px 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- About ---- */
.about-story {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.about-story p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.value-card {
  padding: 32px 28px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.value-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 0;
}

.team-section {
  text-align: center;
  padding: 80px 0;
}

.team-section h2 {
  margin-bottom: 40px;
}

.team-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

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

.team-member h3 {
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Contact ---- */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-email a {
  color: var(--accent);
  font-weight: 600;
}

.contact-form {
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.2s ease;
}

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

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

.form-submit {
  text-align: center;
  margin-top: 28px;
}

.form-submit .btn {
  min-width: 180px;
}

.contact-response {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 24px;
}

.legal-content a {
  color: var(--accent);
}

/* ---- Section headings ---- */
.section-heading {
  text-align: left;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---- Accent arc dividers ---- */
.arc-divider {
  position: relative;
  overflow: hidden;
}

.arc-divider::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 220px;
  background: url('images/accent-arcs.svg') no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

.arc-divider--from-left::after {
  top: 50%;
  left: -240px;
  transform: translateY(-40%) rotate(90deg);
  opacity: 0.06;
}

.arc-divider--from-right::after {
  top: 50%;
  right: -200px;
  transform: translateY(-60%) rotate(-90deg);
  opacity: 0.07;
}

.arc-divider > * {
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .cards-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1.05rem; }

  .section { padding: 56px 0; }

  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 24px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-left: 0;
  }

  .cards-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-company {
    text-align: center;
  }

  .quote-section .quote-statement {
    font-size: 1.1rem;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .page-header {
    padding: 56px 0 40px;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  .container { padding: 0 16px; }

  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .card { padding: 28px 24px; }

  .pricing-card { padding: 32px 24px; }

  .quote-section .quote-statement {
    font-size: 1rem;
  }

  .team-grid { gap: 24px; }

  .section-heading {
    text-align: center;
  }

  .eyebrow::before {
    display: none;
  }
}

/* ---- Desktop overrides ---- */
@media (min-width: 769px) {
  .hero {
    text-align: left;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
    align-items: center;
  }

  .hero h1 {
    margin: 0 0 24px;
    max-width: none;
  }

  .hero-sub {
    margin: 0 0 40px;
    max-width: none;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
  }
}
