/* ============================================================
   TradeGPT — style.css
   Plain CSS conversion of the Tailwind + CSS-variable design
   ============================================================ */

/* ---------- CSS custom properties (design tokens) ---------- */
:root {
  --radius: 0.625rem;
  --background: oklch(0.68 0.14 165);
  --foreground: oklch(1 0 0);
  --cta: oklch(0.7 0.18 15);
  --cta-foreground: oklch(1 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --border: oklch(0.929 0.013 255.508);
  --muted-foreground: oklch(0.554 0.046 257.417);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Layout helpers ---------- */
.page-wrapper {
  direction: rtl;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 64rem;   /* max-w-5xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container--sm  { max-width: 28rem; }
.container--md  { max-width: 36rem; }   /* max-w-md  */
.container--lg  { max-width: 42rem; }   /* max-w-2xl ≈ */
.container--xl  { max-width: 48rem; }   /* max-w-3xl */
.container--2xl { max-width: 56rem; }   /* max-w-4xl */
.container--5xl { max-width: 64rem; }   /* max-w-5xl */

/* ---------- Typography ---------- */
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 700; }

.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-xs   { font-size: 0.75rem; }

.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.italic        { font-style: italic; }
.opacity-75    { opacity: 0.75; }
.opacity-80    { opacity: 0.80; }
.opacity-90    { opacity: 0.90; }
.opacity-95    { opacity: 0.95; }

/* ---------- CTA button ---------- */
.btn-cta {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--cta);
  color: var(--cta-foreground);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
  font-family: inherit;
}
.btn-cta:hover  { transform: scale(1.02); }
.btn-cta:active { transform: scale(0.99); }
.btn-cta:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-wrap {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header / Hero ---------- */
.hero {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

.hero__logo {
  height: 4rem;
  width: auto;
  margin: 0 auto 2rem;
}

.hero__headline {
  max-width: 48rem;
  margin: 0 auto;
}

.hero__sub {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  opacity: 0.95;
}

.hero__disclaimer {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 0.875rem;
  opacity: 0.80;
}

/* ---------- Form section ---------- */
.form-section {
  padding: 0 1rem 3rem;
  text-align: center;
}

.form-section__intro {
  max-width: 28rem;
  margin: 0 auto 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.form-section__security {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  font-weight: 700;
}

.form-section__note {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: 0.875rem;
  opacity: 0.90;
}

/* Lead form */
.lead-form {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.lead-form .field + .field { margin-top: 1rem; }
.field:first-child { margin-top: 0; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.field input,
.field select {
  width: 100%;
  border: none;
  outline: none;
  border-radius: var(--radius);
  background: white;
  color: #1a1a2e;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.field input::placeholder { color: #9ca3af; }

.phone-row {
  display: flex;
  gap: 0.5rem;
}

.phone-row select {
  width: auto;
  flex-shrink: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.phone-row input { flex: 1; }

/* ---------- About / Features section ---------- */
.about-section {
  padding: 3rem 1rem;
}

.about-intro {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-intro p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.about-intro .tagline {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature__icon {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.feature h3 { margin-bottom: 0.75rem; }

.feature p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* ---------- Dashboard section ---------- */
.dashboard-section {
  padding: 3rem 1rem;
  text-align: center;
}

.dashboard-section .intro-text {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.dashboard-img {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.dashboard-section .caption {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
}

.dashboard-section .cta-prompt {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- Testimonials section ---------- */
.testimonials-section {
  padding: 3rem 1rem;
  text-align: center;
}

.testimonials-section h2 {
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial__avatar {
  height: 6rem;
  width: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }

.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 0.75rem;
}

.testimonial .role {
  font-size: 0.875rem;
  opacity: 0.80;
}

.testimonials-disclaimer {
  max-width: 42rem;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.testimonials-cta-prompt {
  margin-top: 3rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 3rem;
  padding: 2.5rem 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

footer p {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* ---------- Success / loading states ---------- */
#form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Contact Form 7 styling ---------- */
/* Container styling */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    font-family: 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Hide default hidden fields visually */
.hidden-fields-container {
    display: none;
}

/* Labels and inputs */
.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: right;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* Textarea specific styling */
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit button */
.wpcf7-form input[type="submit"] {
    background: #000;
    color: #fff;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    float: right;
}

.wpcf7-form input[type="submit"]:hover {
    background: #eee;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Response message */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    text-align: right;
}

.wpcf7-mail-sent-ok {
    color: #fff;
    background: #22c55e;
}

.wpcf7-mail-sent-ng {
    color: #fff;
    background: #ef4444;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .wpcf7-form {
        padding: 1.5rem;
    }
    .wpcf7-form input[type="submit"] {
        width: 100%;
        float: none;
    }
}
