/* ==========================================================================
   Pinelands Technology LLC — Main Stylesheet
   ========================================================================== */

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

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --pine-deepest: #04342C;
  --pine-dark:    #085041;
  --pine-mid:     #0F6E56;
  --pine-bright:  #1D9E75;
  --pine-light:   #5DCAA5;
  --pine-pale:    #9FE1CB;
  --pine-mist:    #E1F5EE;

  /* Dark theme surfaces */
  --bg-base:      #0D1412;
  --bg-raised:    #131C19;
  --bg-card:      #182320;
  --bg-input:     #1E2D28;
  --border:       rgba(29, 158, 117, 0.15);
  --border-hover: rgba(93, 202, 165, 0.35);

  /* Text */
  --text-primary: #E8F5F1;
  --text-muted:   #7FA898;
  --text-faint:   #4A6B61;
  --white:        #FFFFFF;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(13, 20, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.4); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg { width: 36px; height: 44px; }

.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-wordmark span:first-child {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--pine-pale);
}

.nav-wordmark span:last-child {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--pine-bright);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--pine-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--pine-pale); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--pine-bright);
  color: var(--bg-base);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--pine-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--border-hover);
  color: var(--pine-pale);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--pine-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Shared Section Utilities ────────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine-bright);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--pine-light); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem 5rem;
  position: relative;
  z-index: 2;
  background: var(--bg-base);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine-bright);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--pine-light);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pine-deepest);
  overflow: hidden;
}

.hero-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.5s forwards;
}

.hero-right::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(93, 202, 165, 0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-right::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(93, 202, 165, 0.07);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.tagline-badge {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(93, 202, 165, 0.1);
  border: 1px solid rgba(93, 202, 165, 0.25);
  border-radius: 2px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.tagline-badge p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--pine-pale);
  letter-spacing: 0.02em;
}

/* ── About ───────────────────────────────────────────────────────────────── */
#about {
  background: var(--bg-raised);
  padding: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-body p + p { margin-top: 1.25rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border-left: 3px solid var(--pine-bright);
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--pine-pale);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ── Services ────────────────────────────────────────────────────────────── */
#services {
  background: var(--bg-base);
  padding: 7rem 5rem;
}

.services-header {
  max-width: 540px;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pine-bright), var(--pine-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: var(--border-hover);
}

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

.service-icon {
  width: 44px; height: 44px;
  background: rgba(29, 158, 117, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--pine-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-bright);
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
#contact {
  background: var(--bg-raised);
  padding: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1rem; }

.contact-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: color 0.2s;
}

.contact-detail:hover { color: var(--pine-pale); }

.contact-detail svg {
  width: 18px; height: 18px;
  stroke: var(--pine-bright);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-input);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group select option { background: var(--bg-input); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pine-bright);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

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

.btn-submit {
  align-self: flex-start;
  padding: 0.9rem 2.25rem;
  background: var(--pine-bright);
  color: var(--bg-base);
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--pine-light);
  transform: translateY(-1px);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-base);
  padding: 2.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo svg { width: 28px; height: 34px; }

.footer-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--pine-pale);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(159, 225, 203, 0.4);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: rgba(159, 225, 203, 0.5);
  transition: color 0.2s;
}

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

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 7rem 2rem 4rem; }
  .hero-right { height: 340px; }
  #about, #contact { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
  #services { padding: 5rem 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
