:root {
  --color-bg: #ffffff;
  --color-text: #1a1d21;
  --color-muted: #5b6470;
  --color-border: #e4e7eb;
  --color-surface: #f7f8fa;
  --color-accent: #2599e0;
  --color-accent-hover: #1c7fbf;
  --max-width: 1040px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.15rem;
}

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark-logo {
  height: 28px;
  width: auto;
  display: block;
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5em;
}

.hero-logo {
  width: clamp(260px, 40vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 auto 0.5em;
  max-width: 640px;
}

.sub-line {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* About */

.about p {
  max-width: 700px;
  color: var(--color-text);
}

/* Brands */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.brand-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-surface);
}

.brand-card h3 {
  margin-bottom: 0.4em;
}

.brand-card p {
  color: var(--color-muted);
  margin: 0 0 0.75em;
}

.brand-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  margin-bottom: 14px;
}

/* Contact */

.contact-intro {
  color: var(--color-muted);
  max-width: 600px;
}

#contact-form {
  max-width: 520px;
  margin-top: 24px;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.cf-turnstile {
  margin-bottom: 18px;
}

#contact-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

#contact-submit:hover {
  background: var(--color-accent-hover);
}

#contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

#form-status[data-state="success"] {
  color: #1a7f37;
}

#form-status[data-state="error"] {
  color: #c1392b;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--color-muted);
}

/* Responsive */

@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  section {
    padding: 48px 0;
  }
}
