/* ================================================================
   Peak CNC Fabrication — Artisan Theme
   Dark + Gold · Mobile-First · Playfair + Inter
   ================================================================ */

:root {
  --bg:         #0e0e0e;
  --bg-card:    #181818;
  --bg-elevated:#1e1e1e;
  --gold:       #c8963e;
  --gold-light: #dab76a;
  --gold-dark:  #a07428;
  --text:       #e8e4de;
  --text-muted: #9a9488;
  --white:      #fafaf8;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --max-w:      1200px;
  --radius:     10px;
  --transition: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Accessibility ─────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Container ─────────────────────────────────────────────────── */

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* ── CTA Button ────────────────────────────────────────────────── */

.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ================================================================
   NAV
   ================================================================ */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,150,62,0.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links { display: none; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: none; }
.nav-cta .btn-cta { padding: 10px 22px; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,14,0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 999;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}
.mobile-drawer a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta   { display: block; }
  .hamburger { display: none; }
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,14,14,0.55) 0%,
    rgba(14,14,14,0.80) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
  transition: background var(--transition);
}
.hero-dot.active { background: var(--gold); }

/* ================================================================
   TRUST BAR
   ================================================================ */

.trust-bar {
  padding: 28px 0;
  border-bottom: 1px solid rgba(200,150,62,0.12);
}
.trust-items {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px 32px;
}
.trust-item {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-item::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* ================================================================
   SERVICES
   ================================================================ */

.services { padding: 96px 0; }
.section-eyebrow {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 56px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(200,150,62,0.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,150,62,0.35);
}
.service-icon {
  width: 48px; height: 48px;
  max-width: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-icon svg,
.service-card svg {
  width: 48px;
  height: 48px;
  max-width: 48px;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.65;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-link:hover { color: var(--gold-light); }

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* ================================================================
   PORTFOLIO
   ================================================================ */

.portfolio { padding: 96px 0; background: var(--bg-elevated); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }

@media (min-width: 900px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ================================================================
   ABOUT
   ================================================================ */

.about { padding: 96px 0; }
.about-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.about-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-inner strong { color: var(--white); }

/* ================================================================
   PROCESS
   ================================================================ */

.process { padding: 96px 0; background: var(--bg-elevated); }
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--gold);
}
.process-step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

/* ================================================================
   CTA BAND
   ================================================================ */

.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--bg);
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(14,14,14,0.7);
  margin-bottom: 32px;
  font-size: 1rem;
}
.cta-band .btn-cta {
  background: var(--bg);
  color: var(--gold);
}
.cta-band .btn-cta:hover {
  background: var(--bg-card);
  color: var(--gold-light);
}

/* ================================================================
   CONTACT
   ================================================================ */

.contact { padding: 96px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact-info h3,
.contact-form-wrap h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(200,150,62,0.2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn-cta { align-self: flex-start; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(200,150,62,0.12);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(154,148,136,0.6);
}
