/* Fonts */
@font-face {
  font-family: 'Nexa';
  src: url('/fonts/Nexa-Trial-Black.woff2') format('woff2'),
    url('/fonts/Nexa-Trial-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('/fonts/Nexa-Trial-Bold.woff2') format('woff2'),
    url('/fonts/Nexa-Trial-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa Serif';
  src: url('/fonts/NexaSerif_Trial-Regular.woff2') format('woff2'),
    url('/fonts/NexaSerif_Trial-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa Serif';
  src: url('/fonts/NexaSerif_Trial-Medium.woff2') format('woff2'),
    url('/fonts/NexaSerif_Trial-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

/* Base */
:root {
  color-scheme: light dark;
  --color-bg: light-dark(#fafafa, #211d1d);
  --color-text: light-dark(#2e2e2e, #e0e0e0);
  --color-muted: light-dark(#666, #999);
  --color-border: light-dark(#e0e0e0, #322c2c);
  --color-accent: light-dark(#730734, #b40b51);
  --color-accent-hover: light-dark(#b40b51, #d44e80);
  --color-surface: light-dark(#fff, #1a1a1a);
  --color-alt-bg: light-dark(#f0f0f0, #242020);
  --color-required: light-dark(#b40b51, #d44e80);
  --max-width: 960px;
}

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nexa Serif', Georgia, serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Nexa', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: var(--color-text);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-family: 'Nexa', 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Sections */
.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--color-alt-bg);
}

.section h2 {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  padding: 1.5rem 0;
}

.card h3 {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

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

/* CTA Section */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.cta-section p {
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Page Header */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: 'Nexa', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* Content */
.content h2 {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content p {
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

.content a:not(.btn) {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}

.content a:not(.btn):hover {
  color: var(--color-accent-hover);
}

/* Services */
.services-list {
  display: grid;
  gap: 3rem;
}

.service-item h2 {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.service-item p {
  color: var(--color-muted);
  max-width: 640px;
}

/* Case Studies */
.case-study {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.case-study:last-child {
  border-bottom: none;
}

.case-study h2 {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.case-study-meta {
  margin-bottom: 1rem;
}

.case-study-meta .label {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.case-study-meta p {
  font-size: 0.95rem;
}

.required {
  color: var(--color-required);
}

/* Contact Form */
.contact-form {
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'Nexa Serif', Georgia, serif;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  line-height: 1.7;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
}

/* Contact */
.contact-method {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact-method h2 {
  margin-top: 0;
}

.contact-method a:not(.btn) {
  color: var(--color-text);
  transition: color 0.2s;
}

.contact-method a:not(.btn):hover {
  color: var(--color-accent-hover);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-footer a {
  font-family: 'Nexa', 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    gap: 1.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .site-footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
