/* ── Lidberg Land Surveying — Shared Stylesheet ──────────────────── */

:root {
  --stone-50:  #f5f2ed; --stone-100: #e8e4dc; --stone-200: #d4cec2;
  --stone-300: #b5ad9e; --stone-400: #918779; --stone-500: #746a5c;
  --stone-600: #5a5148; --stone-700: #3d3830; --stone-800: #2a2620;
  --stone-900: #1a1814;
  --sage-50: #f0f4ec; --sage-100: #dbe5d2; --sage-200: #b8cca8;
  --sage-300: #8fa67a; --sage-400: #6d8a56; --sage-500: #5a7247;
  --sage-600: #475a38; --sage-700: #354428; --sage-800: #252b1f;
  --sage-900: #1a1f16;
  --sand-50: #faf6ee; --sand-100: #f0e8d4; --sand-200: #e2d3b0;
  --sand-300: #c9b382; --sand-400: #b09258;
  --terrain: #5a7247; --terrain-light: #8fa67a; --terrain-dark: #354428;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--stone-800);
  background: var(--stone-50); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,31,22,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(143,166,122,0.15);
  transition: all 0.4s;
}
.nav.scrolled { background: rgba(26,31,22,0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 100%; margin: 0 auto; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--stone-100); }
.nav-logo-mark {
  width: 40px; height: 40px; background: var(--terrain); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; color: white;
}
.nav-logo-text { font-family: var(--font-display); font-size: 18px; }
.nav-logo-text span { color: var(--sage-300); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--stone-300); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 16px;
  border-radius: 6px; transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--stone-50); background: rgba(143,166,122,0.12); }
.nav-links a.cta-link { background: var(--terrain); color: white; margin-left: 8px; }
.nav-links a.cta-link:hover { background: var(--sage-400); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--stone-200); margin: 5px 0; transition: all 0.3s; }

/* ── PAGE HERO ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--sage-900), var(--stone-900));
  padding: 160px 40px 100px; text-align: center;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; }
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(36px,5vw,56px);
  color: var(--stone-50); line-height: 1.15; margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--sage-300); }
.page-hero-sub { font-size: 18px; color: var(--stone-400); font-weight: 300; max-width: 600px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(143,166,122,0.12); border: 1px solid rgba(143,166,122,0.25);
  border-radius: 100px; padding: 8px 20px; margin-bottom: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--sage-300);
}

/* ── SECTIONS ─────────────────────────────── */
.section { padding: 100px 40px; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--terrain); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px,4vw,42px);
  color: var(--stone-800); line-height: 1.2; max-width: 600px;
}
.section-title.light { color: var(--stone-100); }
.section-desc { font-size: 17px; color: var(--stone-500); max-width: 600px; margin-top: 20px; font-weight: 300; }
.section-desc.light { color: var(--stone-400); }
.section-header { margin-bottom: 56px; }

/* ── CONTENT 2-COL ────────────────────────── */
.content-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.content-2col.reverse { direction: rtl; }
.content-2col.reverse > * { direction: ltr; }
.content-image {
  aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: var(--sand-100); border: 1px solid var(--stone-200);
  display: flex; align-items: center; justify-content: center;
}
.content-text h2 {
  font-family: var(--font-display); font-size: 32px;
  color: var(--stone-800); margin-bottom: 20px; line-height: 1.2;
}
.content-text p { color: var(--stone-500); margin-bottom: 16px; font-size: 16px; font-weight: 300; }
.placeholder { font-size: 14px; color: var(--stone-400); text-align: center; padding: 20px; font-style: italic; }

/* ── TEAM GRID ────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card {
  background: rgba(37,43,31,0.6); border: 1px solid rgba(143,166,122,0.12);
  border-radius: 16px; padding: 32px; text-align: center; transition: all 0.3s;
}
.team-card:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sage-800); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.team-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--stone-100); margin-bottom: 4px; }
.team-card p { font-size: 14px; color: var(--stone-400); font-weight: 300; }

/* ── DETAIL CARDS ─────────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.detail-card {
  background: white; border: 1px solid var(--stone-200); border-radius: 16px;
  padding: 40px 32px; transition: all 0.3s;
}
.detail-card:hover { border-color: var(--sage-200); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.detail-card .icon { font-size: 28px; margin-bottom: 16px; }
.detail-card h3 { font-family: var(--font-display); font-size: 22px; color: var(--stone-800); margin-bottom: 12px; }
.detail-card p { font-size: 15px; color: var(--stone-500); font-weight: 300; line-height: 1.7; }
.detail-card ul { list-style: none; margin-top: 12px; }
.detail-card ul li {
  padding: 6px 0; font-size: 14px; color: var(--stone-500); font-weight: 300;
  border-bottom: 1px solid var(--stone-100);
}
.detail-card ul li::before { content: '→ '; color: var(--terrain); font-weight: 600; }

/* dark variant */
.detail-card.dark {
  background: rgba(37,43,31,0.8); border-color: rgba(143,166,122,0.12);
}
.detail-card.dark:hover { border-color: var(--sage-300); }
.detail-card.dark h3 { color: var(--stone-100); }
.detail-card.dark p, .detail-card.dark ul li { color: var(--stone-400); }
.detail-card.dark ul li { border-color: rgba(143,166,122,0.1); }

/* ── PORTFOLIO GRID ───────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  border-radius: 16px; overflow: hidden; background: white;
  border: 1px solid var(--stone-200); text-decoration: none; display: block; transition: all 0.4s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.portfolio-thumb {
  aspect-ratio: 16/10; background: var(--sand-100);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-info { padding: 24px; }
.portfolio-info .type {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--terrain); margin-bottom: 8px;
}
.portfolio-info h3 { font-family: var(--font-display); font-size: 20px; color: var(--stone-800); margin-bottom: 8px; }
.portfolio-info p { font-size: 14px; color: var(--stone-500); font-weight: 300; }

/* ── CTA BANNER ───────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--terrain-dark), var(--terrain), var(--sage-400));
  padding: 100px 40px; text-align: center;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 500px; margin: 0 auto 36px; font-weight: 300; }

/* ── CONTACT FORM ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-details { margin-top: 32px; }
.cd-item { margin-bottom: 24px; }
.cd-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--terrain); margin-bottom: 4px; }
.cd-value { font-size: 16px; color: var(--stone-700); font-weight: 300; }
.cd-value a { color: var(--stone-700); text-decoration: none; }
.cd-value a:hover { color: var(--terrain); }
.contact-form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--stone-500); margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--stone-200);
  border-radius: 8px; font-family: var(--font-body); font-size: 15px;
  color: var(--stone-800); background: white; margin-bottom: 20px;
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--terrain); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { }
.sent-msg { background: var(--sage-50); border: 1px solid var(--sage-200); border-radius: 12px; padding: 20px; color: var(--terrain-dark); margin-bottom: 24px; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
  border-radius: 8px; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--terrain); color: white; }
.btn-primary:hover { background: var(--sage-400); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(90,114,71,0.3); }

/* ── FOOTER ───────────────────────────────── */
.footer { background: var(--sage-900); padding: 80px 40px 40px; color: var(--stone-400); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand h3 { font-family: var(--font-display); font-size: 22px; color: var(--stone-100); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; font-weight: 300; max-width: 340px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-300); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--stone-400); text-decoration: none; font-size: 14px; margin-bottom: 10px; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--stone-100); }
.footer-bottom {
  border-top: 1px solid rgba(143,166,122,0.12); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--stone-600);
}

/* ── ANIMATIONS ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .detail-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-2col { gap: 48px; }
  .contact-grid { gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 80px; left: 0; right: 0;
    background: rgba(26,31,22,0.98); flex-direction: column;
    padding: 20px; gap: 4px; border-bottom: 1px solid rgba(143,166,122,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 60px 20px; }
  .page-hero { padding: 140px 20px 60px; }
  .content-2col, .contact-grid { grid-template-columns: 1fr; }
  .content-2col.reverse { direction: ltr; }
  .detail-grid, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
