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

:root {
  --color-primary: #2d7d46;
  --color-primary-dark: #1e5c32;
  --color-primary-light: #e8f5ec;
  --color-accent: #f59e0b;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-warm: #faf9f7;
  --color-bg-section: #f3f4f6;
  --color-border: #e5e7eb;
  --color-recording: #dc2626;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 900px;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* === Header / Nav === */
.site-header {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-primary-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-warm) 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
}

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

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

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.section h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* === Recording Notice === */
.recording-notice {
  background: #fef2f2;
  border: 2px solid var(--color-recording);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.recording-notice .notice-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.recording-notice strong {
  color: var(--color-recording);
}

/* === How It Works === */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 {
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--color-text-light);
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  color: var(--color-primary-dark);
}

/* === RustDesk Section === */
.rustdesk-box {
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}

.rustdesk-box h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.rustdesk-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.config-note {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* === Consent Form === */
.consent-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.consent-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.consent-form label:first-child {
  margin-top: 0;
}

.consent-form input[type="text"],
.consent-form input[type="email"],
.consent-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}

.consent-form textarea {
  min-height: 100px;
  resize: vertical;
}

.consent-form input:focus,
.consent-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.15);
}

.checkbox-group {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-primary);
}

.consent-form .btn {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-warm) 100%);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* === Phone Number === */
.phone-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--color-primary-light);
  border-radius: var(--radius);
}

/* === Footer === */
.site-footer {
  background: var(--color-text);
  color: #d1d5db;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fff;
}

/* === Utility === */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

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

  .hero {
    padding: 2.5rem 0;
  }

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

  .page-header h1 {
    font-size: 1.6rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .phone-display {
    font-size: 1.5rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
