:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1f2430;
  --muted: #5a6270;
  --primary: #6c5ce7;
  --primary-soft: rgba(108, 92, 231, 0.1);
  --primary-faint: rgba(108, 92, 231, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --max: 1100px;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.2rem;
}

/* Header */
.site-header {
  background: linear-gradient(
    to bottom,
    rgba(108, 92, 231, 0.08) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

/* Main layout */
.page-content {
  position: relative;
}

.page-content > section:first-child {
  padding-top: 0.5rem;
}

/* Hero / intro */
.section-intro {
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.section-intro p {
  margin: 0.75rem 0;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.4rem;
  margin: 0.5rem 0 0.9rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.7rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

p {
  margin: 0.75rem 0;
}

ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0;
}

ul li {
  margin-bottom: 0.45rem;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(20, 26, 40, 0.03);
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(20, 26, 40, 0.04);
  width: 100%;
  max-width: 100%;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.button-primary {
  background: linear-gradient(135deg, #6c5ce7, #5a4fd8);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.35);
}

.button-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Utility */
.muted-small {
  font-size: 0.95rem;
  color: var(--muted);
}

.required {
  color: #d64545;
  font-weight: 600;
  margin-left: 4px;
}

.optional {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 6px;
  font-weight: 400;
}

/* About image support */
.about-profile {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.about-profile-image {
  width: 100%;
  max-width: 240px;
  border-radius: 18px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(20, 26, 40, 0.08);
  background: #fff;
}

.about-profile .section-intro {
  max-width: none;
  margin-bottom: 0;
}

.about-profile h2 {
  margin-top: 0;
}

/* Forms */
.form-stack {
  max-width: 760px;
  width: 100%;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  width: 100%;
  max-width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a90a0;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.cf-turnstile {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem;
  background: #f6f7fb;
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cf-turnstile iframe {
  max-width: 100% !important;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.form-note {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: linear-gradient(
    to top,
    rgba(108, 92, 231, 0.08) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1.2rem;
  flex-wrap: wrap;
}

.footer-meta {
  color: var(--muted);
  line-height: 1.7;
}

.footer-meta strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 900px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-profile-image {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  h2 {
    font-size: 1.45rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .brand-logo {
    height: 68px;
  }

  .brand-text {
    font-size: 1.05rem;
    white-space: normal;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }

  .form-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-field input,
  .form-field textarea {
    padding: 0.85rem 0.9rem;
    font-size: 16px;
  }

  .cf-turnstile {
    border-radius: 14px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .form-card,
  .form-stack,
  .contact-form,
  .form-field,
  .form-field input,
  .form-field textarea,
  .cf-turnstile {
    max-width: 100%;
  }

  .form-card {
    overflow: hidden;
  }

  .form-card {
    padding: 1.5rem;
  }

  .card {
    padding: 1.35rem;
  }
}
