/* ═══════════════════════════════════════════════
   COMPONENTS
   Buttons, cards, forms, and reusable elements
═══════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-accent:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 14px;
}

/* ─────────────────────────────────────────────
   SECTION COMPONENTS
───────────────────────────────────────────── */
.section {
  padding: 140px 0;
  position: relative;
}

.section-header {
  max-width: 800px;
  margin-bottom: 72px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.industry-card {
  background: var(--bg-primary);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card:hover {
  background: var(--bg-elevated);
}

.industry-thumb {
  width: 100%;
  height: 160px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.industry-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 31, 0.3) 0%, rgba(26, 26, 31, 0.7) 100%);
  transition: all 0.4s ease;
}

.industry-card:hover .industry-thumb::before {
  background: linear-gradient(180deg, rgba(26, 26, 31, 0.2) 0%, rgba(26, 26, 31, 0.5) 100%);
}

.industry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover .industry-thumb img {
  transform: scale(1.08);
}

.industry-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.industry-card:hover .industry-thumb::after {
  transform: scaleX(1);
}

.industry-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.industry-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.industry-card:hover .industry-link {
  gap: 14px;
}

/* System Cards */
.system-card {
  padding: 24px;
  background: #ffffff;
  border: none;
  position: relative;
  transition: all 0.3s ease;
}

.system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.system-number {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  color: rgba(26, 26, 31, 0.08);
  line-height: 1;
}

.system-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: var(--bg-primary);
  color: var(--accent);
}

.system-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--bg-primary);
}

.system-card > p {
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 14px;
  line-height: 1.5;
}

.system-features {
  list-style: none;
}

.system-features li {
  padding: 6px 0;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.system-features li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Guarantee Cards */
.guarantee-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.guarantee-card:hover {
  border-color: var(--success);
}

.guarantee-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  background: var(--success);
  color: var(--bg-primary);
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  margin-bottom: 14px;
}

.guarantee-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Testimonial Cards */
.testimonial-card {
  padding: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

.testimonial-text {
  font-family: 'Instrument Serif', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.testimonial-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.form-header {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.form-header h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-header h3 span {
  color: var(--accent);
}

.form-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a8a5a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
}

.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-checkbox {
  margin-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-text {
  flex: 1;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--accent-hover);
}

.form-links {
  margin-top: 16px;
  font-size: 12px;
  text-align: center;
}

.form-links a {
  color: var(--accent);
  text-decoration: underline;
}

.form-links a:hover {
  color: var(--accent-hover);
}

.form-success {
  display: none;
  text-align: center;
  padding: 44px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.form-success h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Trust badges */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.form-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.form-consent {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.form-consent p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-consent a:hover {
  color: var(--accent-dim);
}

/* GHL Form wrapper */
.ghl-form-wrapper {
  min-height: 850px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--border),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ghl-form-wrapper iframe {
  min-height: 850px;
  background: transparent;
}

/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  padding: 26px 0;
  font-family: 'Instrument Serif', serif;
  font-size: 21px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 26px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}
