/* =========================================================
   GR NOVA CONSULTING — Landing Page
   Mobile-first, semantic, accessible
   ========================================================= */

:root {
  --color-purple: #7046AF;
  --color-purple-dark: #291C3B;
  --color-purple-darker: #1E1329;
  --color-purple-mid: #4A2F75;
  --color-teal: #99CCC8;
  --color-teal-accent: #23B0A0;
  --color-gray-bg: #F2F2F2;
  --color-text-dark: #101112;
  --color-text-body: #494D51;
  --color-white: #FFFFFF;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-button: 'Inter', -apple-system, sans-serif;

  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: 2rem; font-weight: 900; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }

p { margin: 0 0 16px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 720px; }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-white p { color: rgba(255,255,255,.85); }

section.section { padding: 64px 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 18px 42px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

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

.btn--primary:hover {
  background: #5f3a97;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(112,70,175,.35);
}

.btn--outline {
  background: var(--color-purple);
  color: var(--color-white);
}

.btn--block { display: block; width: 100%; }

/* ---------- CHECK / BULLET LISTS ---------- */
.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-text-body);
}
.check-list--primary .icon { color: var(--color-purple); flex-shrink: 0; margin-top: 2px; }
.check-list--teal .icon { flex-shrink: 0; margin-top: 3px; }

.bullet-list { list-style: none; margin: 0 0 20px; padding: 0; }
.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--color-teal-accent);
  border-radius: 2px;
}
.bullet-list--light li::before { background: var(--color-teal-accent); }
.bullet-list--light li { color: rgba(255,255,255,.85); }

.label-strong {
  font-weight: 600;
  color: var(--color-text-dark);
}
.section--dark .label-strong,
.section--purple-gradient .label-strong { color: var(--color-white); }

.icon { display: inline-block; vertical-align: middle; }
.icon--teal { color: var(--color-teal-accent); }
.icon--outline { color: var(--color-purple); }

/* ---------- HERO ---------- */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%), url('../assets/images/bg-pattern-grid.webp');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto, 60% auto;
  position: relative;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__logo { margin-bottom: 20px; width: 150px; height: auto; }

.hero__title { font-size: 1.9rem; }

.hero__text { font-size: 1rem; }

.hero__form-wrap { width: 100%; }

/* ---------- LEAD FORM ---------- */
.lead-form {
  background: var(--color-purple-dark);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.lead-form--flat {
  background: transparent;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
}

.lead-form--flat .lead-form__field label { color: var(--color-text-dark); }
.lead-form--flat input,
.lead-form--flat textarea {
  background: var(--color-gray-bg);
  border: 1px solid #e2ded9;
}

.lead-form__field { margin-bottom: 18px; }

.lead-form__field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 8px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.15);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text-dark);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--color-purple);
  outline-offset: 1px;
}

.lead-form textarea { resize: vertical; }

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border-radius: 5px;
  padding: 0 10px;
}
.phone-input img { border-radius: 2px; flex-shrink: 0; }
.phone-input input { border: none; padding-left: 4px; }
.phone-input input:focus { outline: none; }

.lead-form__disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin: 14px 0 0;
}
.lead-form--flat .lead-form__disclaimer { color: var(--color-text-body); }

.lead-form__status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  margin: 10px 0 0;
}
.lead-form__status.is-success { color: #1c9d6f; }
.lead-form__status.is-error { color: #c0392b; }

/* ---------- SECTIONS: BACKGROUNDS ---------- */
.section--dark {
  background-color: var(--color-purple-dark);
  color: rgba(255,255,255,.85);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,.75); }
.section--pattern {
  background-image: linear-gradient(160deg, rgba(74,47,117,.55), rgba(41,28,59,.95)), url('../assets/images/bg-gradient-purple.webp');
  background-size: cover;
  background-position: center;
}

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

.section--purple-gradient {
  background: linear-gradient(135deg, #3c2960 0%, #291c3b 60%, #1e1329 100%);
}

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

.section--teal { background-color: var(--color-teal); }
.section--teal h2, .section--teal h3 { color: var(--color-text-dark); }

.section--clients h2 { margin-bottom: 32px; }

.section--cta-dark {
  background-color: #0d0714;
  background-image: linear-gradient(120deg, rgba(50,23,65,.55), rgba(13,7,20,.9)), url('../assets/images/bg-circuit.webp');
  background-size: cover;
  background-position: center;
}
.section--cta-dark h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.section--cta-dark .btn { margin-top: 12px; }

/* ---------- SPLIT LAYOUT (image + text) ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.split__text { width: 100%; }
.split__media { width: 100%; }
.split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}
.split__media--framed img { max-height: 480px; margin: 0 auto; }

/* ---------- CHECK GRID (benefits) ---------- */
.check-grid {
  list-style: none;
  margin: 32px 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.check-grid li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-grid h3 { margin-bottom: 4px; }
.check-grid p { margin: 0; font-size: 0.95rem; }

/* ---------- SERVICE CARDS ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.service-card .icon--outline {
  border: 2px solid var(--color-purple);
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 16px;
}
.service-card h3 { font-family: var(--font-body); font-size: 1.05rem; }
.service-card p { font-size: 0.92rem; margin: 0; }

.services-link {
  text-align: center;
  margin-top: 20px;
  color: rgba(255,255,255,.75);
}
.services-link a { color: var(--color-teal); text-decoration: underline; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.testimonial-card {
  margin: 0;
  border: 1px solid #e7e3ee;
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { font-style: italic; color: var(--color-text-body); }
.testimonial-card footer { display: flex; flex-direction: column; font-style: normal; }
.testimonial-card footer strong { color: var(--color-text-dark); }
.testimonial-card footer span { font-size: 0.88rem; color: var(--color-text-body); }

/* ---------- CLIENT LOGOS ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.logo-row img {
  width: auto;
  height: 56px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity .2s ease, filter .2s ease;
}
.logo-row img:hover { filter: grayscale(0%); opacity: 1; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-purple-dark);
  padding: 48px 0;
  color: rgba(255,255,255,.85);
}
.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.footer__logo { width: 130px; height: auto; }
.footer__contact h2 { color: var(--color-white); font-size: 1.2rem; }
.footer__contact p { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-bottom: 10px; }
.footer__contact .icon { flex-shrink: 0; margin-top: 3px; color: var(--color-teal); }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact a:hover { color: var(--color-teal); }

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (mobile-first)
   ========================================================= */

/* Small tablets (≥576px) */
@media (min-width: 576px) {
  .hero__title { font-size: 2.2rem; }
  .check-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Tablets vertical (≥768px) */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  section.section { padding: 80px 0; }

  .check-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .lead-form { padding: 40px; }
}

/* Tablets horizontal / small desktop (≥1024px) */
@media (min-width: 1024px) {
  .hero__grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .hero__content { flex: 1 1 50%; }
  .hero__form-wrap { flex: 1 1 45%; }

  .split {
    flex-direction: row;
    align-items: center;
  }
  .split--image-right { flex-direction: row; }
  .split--image-right .split__text { order: 1; }
  .split--image-right .split__media { order: 2; }
  .split--image-left .split__media { order: 1; }
  .split--image-left .split__text { order: 2; }
  .split__text, .split__media { flex: 1 1 50%; }

  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid .service-card:nth-child(4),
  .service-grid .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .footer__grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer__contact p,
  .footer__contact a { justify-content: flex-start; }
}

/* Large desktop / ultrawide (≥1440px) */
@media (min-width: 1440px) {
  :root { --max-width: 1280px; }
  h1 { font-size: 3rem; }
}

/* Fine-grained small phones */
@media (max-width: 374px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.6rem; }
  .btn { padding: 16px 28px; font-size: 0.8rem; }
}
