/* ============================================
   PixelForge Agency — Bauhaus/Neo-Brutalist
   ============================================ */

/* --- Tokens --- */
:root {
  --bg: #f5f0e8;
  --text: #1a1a1a;
  --yellow: #ffcc00;
  --red: #e63b2e;
  --blue: #0055ff;
  --border: 2px solid var(--text);
  --border-thick: 3px solid var(--text);
  --shadow: 5px 5px 0 var(--text);
  --shadow-sm: 4px 4px 0 var(--text);
  --radius: 0;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
p { max-width: 65ch; }
.section-title {
  text-transform: uppercase;
  border-bottom: var(--border-thick);
  padding-bottom: 0.4rem;
  display: inline-block;
  margin-bottom: 2rem;
}

/* --- Layout --- */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
section { padding: 5rem 0; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border-thick);
  padding: 1rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.3rem 0.7rem;
  display: inline-block;
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--text);
}
.nav-toggle {
  display: none;
  background: none;
  border: var(--border-thick);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border: var(--border-thick);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--bg);
  color: var(--text);
}
.btn-accent {
  background: var(--yellow);
  color: var(--text);
}
.btn-accent:hover {
  background: var(--text);
  color: var(--yellow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* --- Cards --- */
.card {
  border: var(--border-thick);
  padding: 2rem;
  background: var(--bg);
  position: relative;
  transition: transform 0.2s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.card-text { font-size: 0.95rem; line-height: 1.6; }
.card-price {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0;
  border: none;
  border-bottom: var(--border-thick);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--blue);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
  cursor: pointer;
}
.form-error {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.3rem;
  display: none;
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 6rem;
  border-bottom: var(--border-thick);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 50ch;
}
.hero-accent {
  display: inline-block;
  background: var(--yellow);
  padding: 0.1rem 0.5rem;
  border-bottom: 3px solid var(--text);
}

/* --- Stats --- */
.stats {
  background: var(--text);
  color: var(--bg);
  padding: 3rem 0;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* --- Testimonials --- */
.testimonial {
  border: var(--border-thick);
  padding: 2rem;
  position: relative;
  background: var(--bg);
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  position: absolute;
  top: 0.8rem;
  left: 1.2rem;
  color: var(--yellow);
}
.testimonial-text {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  padding-top: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--yellow);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { margin-bottom: 1.5rem; }

/* --- Footer --- */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 3rem 0 2rem;
  border-top: var(--border-thick);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer a { opacity: 0.7; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245,240,232,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 1;
}

/* --- Process --- */
.process-step {
  border: var(--border-thick);
  padding: 2rem;
  position: relative;
  background: var(--bg);
}
.step-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.process-step h3 { margin-bottom: 0.6rem; }

/* --- FAQ --- */
.faq-item {
  border: var(--border-thick);
  margin-bottom: -2px;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 1.5rem 1.2rem;
  max-width: 100%;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

/* --- Page Header --- */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: var(--border-thick);
}
.page-header p {
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 50ch;
}

/* --- Utilities --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.bg-dark { background: var(--text); color: var(--bg); }
.bg-yellow { background: var(--yellow); color: var(--text); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: var(--border-thick);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 5rem 0 4rem; }
  section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
