/*
Theme Name: SCIDScan
Author: TZ
Description: Custom WordPress theme for SCIDScan.app
Version: 1.0
*/

:root {
  --scid-red: #c1121f;
  --scid-dark: #111827;
  --scid-black: #050505;
  --scid-white: #ffffff;
  --scid-light: #f6f7f9;
  --scid-gray: #6b7280;
  --scid-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--scid-dark);
  background: var(--scid-white);
}

a {
  color: inherit;
  text-decoration: none;
}

.scid-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.scid-header {
  background: var(--scid-white);
  border-bottom: 1px solid var(--scid-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.scid-header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.scid-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: auto;
  text-align: left;
}

/* WordPress logo link */
.scid-logo .custom-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

/* Logo image */
.scid-logo img,
.custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

/* Fallback text */
.scid-logo-text {
  font-size: 22px;
  font-weight: 800;
}

/* Old logo mark fallback */
.scid-logo-mark {
  background: var(--scid-red);
  color: var(--scid-white);
  padding: 8px 10px;
}

.scid-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scid-menu a {
  font-weight: 700;
  font-size: 14px;
}

.scid-menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.scid-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--scid-dark);
  margin: 5px 0;
}

.scid-hero {
  position: relative;
  color: var(--scid-white);
  padding: 96px 0;
  background-blend-mode: multiply;
}

.scid-page-hero {
  background: var(--scid-black);
  color: var(--scid-white);
  padding: 96px 0;
}

.scid-hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.scid-hero h1,
.scid-page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  margin: 0 0 20px;
}

.scid-hero p,
.scid-page-hero p {
  font-size: 20px;
  color: #e5e7eb;
  max-width: 680px;
}

.scid-how .scid-card {
  text-align: center;
}

.scid-how h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.scid-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
}

.scid-split img {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.scid-integration {
  background: var(--scid-light);
}

.scid-integration h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.scid-integration p {
  font-size: 18px;
  color: var(--scid-gray);
}

.scid-eyebrow {
  color: var(--scid-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

@media (max-width: 800px) {
  .scid-split {
    grid-template-columns: 1fr;
  }
}

.scid-cta {
  background: var(--scid-dark);
  color: var(--scid-white);
  text-align: center;
}

.scid-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.scid-cta h2 {
  font-size: 38px;
  margin-bottom: 14px;
}

.scid-cta p {
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 26px;
}

.scid-section {
  padding: 76px 0;
}

.scid-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.scid-section-heading h2 {
  font-size: 36px;
  margin: 0;
}

.scid-grid {
  display: grid;
  gap: 24px;
}

.scid-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.scid-card {
  background: var(--scid-white);
  border: 1px solid var(--scid-border);
  padding: 28px;
}

.scid-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.scid-btn {
  display: inline-block;
  padding: 13px 22px;
  font-weight: 800;
  border: 2px solid transparent;
}

.scid-btn-primary {
  background: var(--scid-red);
  color: var(--scid-white);
}

.scid-btn-secondary {
  background: transparent;
  color: var(--scid-white);
  border-color: var(--scid-white);
}

.scid-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.scid-page {
  min-height: 60vh;
}

.scid-content,
.scid-readable {
  max-width: 850px;
  margin: 0 auto;
}

.scid-form-card {
  max-width: 720px;
  margin: 0 auto;
}

.scid-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 18px;
}

.scid-form input,
.scid-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--scid-border);
  font: inherit;
}

.scid-form button {
  margin-top: 18px;
}

.scid-footer {
  background: var(--scid-dark);
  color: var(--scid-white);
  padding: 42px 0 24px;
}

.scid-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.scid-footer p {
  color: #cbd5e1;
}

.scid-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.scid-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 14px;
}

.scid-footer-note {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
}

.scid-footer-note a {
  color: inherit;
  text-decoration: underline;
}

.scid-footer-note a:hover {
  opacity: 0.8;
}

@media (max-width: 800px) {
  .scid-menu-toggle {
    display: block;
  }

  .scid-nav {
    display: none;
  }

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

  .scid-footer-inner {
    flex-direction: column;
  }

  .scid-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .scid-hero-actions .scid-btn {
    width: auto;
    align-self: center;
  }

  .scid-hero,
  .scid-page-hero {
    padding: 72px 0;
  }
}

.scid-step-card {
  text-align: center;
}

.scid-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

/* Mobile menu styles */

@media (max-width: 800px) {
  .scid-nav.scid-nav-open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--scid-white);
    border-bottom: 1px solid var(--scid-border);
  }

  .scid-nav.scid-nav-open .scid-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
  }

  .scid-nav.scid-nav-open .scid-menu a {
    display: block;
    padding: 14px 0;
  }
}

/* icons */
.scid-icon {
  font-size: 34px;
  margin-bottom: 14px;
  color: var(--scid-red);
}

/* Card hover */
.scid-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Button hover */
.scid-btn {
  transition: all 0.2s ease;
}

.scid-btn-primary:hover {
  background: #a50f1a; /* slightly darker red */
}

.scid-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}


/* Menu link hover */
.scid-menu a {
  position: relative;
}

.scid-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--scid-red);
  transition: width 0.2s ease;
}

.scid-menu a:hover::after {
  width: 100%;
}

.scid-demo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

/* Contact page form */
.scid-form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
}

.scid-form-field {
  margin-bottom: 18px;
}

.scid-form input,
.scid-form textarea {
  width: 100%;
  margin-top: 0;
  padding: 13px 14px;
  border: 1px solid var(--scid-border);
  background: var(--scid-white);
  color: var(--scid-dark);
  font: inherit;
  line-height: 1.4;
  border-radius: 0;
}

.scid-form textarea {
  min-height: 150px;
  resize: vertical;
}

.scid-form input:focus,
.scid-form textarea:focus {
  outline: none;
  border-color: var(--scid-red);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

.scid-form button {
  margin-top: 6px;
  cursor: pointer;
  width: auto;
}

.cf-turnstile {
  margin: 8px 0 18px;
}

.scid-form-success,
.scid-form-error {
  padding: 14px 16px;
  border-radius: 0;
  margin-bottom: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.scid-form-success {
  background: #f6fbf7;
  border: 1px solid #b8d8bf;
  color: #1f5d2c;
}

.scid-form-error {
  background: #fff5f5;
  border: 1px solid #e6bcbc;
  color: #8f1b1b;
}

@media (max-width: 800px) {
  .scid-form-card {
    padding: 24px;
  }
}