/* styles.css - GhostLabs Modern Innovator theme
   Ivory base, sophisticated green, gold CTAs.
*/

:root {
  /* Modern Innovator palette */
  --bg: #FAF5E9;        /* warm ivory base */
  --bg-alt: #FFFFFF;
  --bg-soft: #F3EBDA;
  --border-subtle: #E0D4BF;
  --border-strong: #C9B898;

  --text: #1F2933;      /* deep charcoal */
  --text-muted: #6B7280;

  --accent: #2A9D8F;          /* forest/teal green */
  --accent-soft: rgba(42, 157, 143, 0.12);
  --accent-strong: #1B6A60;

  --cta: #E9C46A;             /* pale gold CTA */
  --cta-strong: #D4A93A;

  --danger: #C0392B;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 4px;

  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.16);
  --container: 1080px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Reset & base */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */

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

.page--dark {
  background: transparent;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 245, 233, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.site-header__logo {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.site-nav__link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.16s ease, background 0.16s ease;
}

.site-nav__link:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.site-nav__link--primary {
  background: var(--cta);
  color: #1F2933;
  padding: 8px 16px;
  box-shadow: 0 8px 24px rgba(212, 169, 58, 0.45);
}

.site-nav__link--primary:hover {
  background: var(--cta-strong);
}

.site-nav__link--active {
  color: var(--accent-strong);
}

/* Hero */

.hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at top left, #FFF4D6 0, #FAF5E9 45%, #F3EBDA 90%);
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
}

.hero--subpage {
  padding: 52px 0 32px;
  background: var(--bg-alt);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 36px;
  align-items: center;
}

.hero__inner--subpage {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.hero__title,
.hero h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
  color: #111827;
}

.hero--subpage .hero__title,
.hero--subpage h1 {
  font-size: 30px;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 12px;
}

.hero__meta {
  font-size: 13px;
  color: #4B5563;
}

.hero__sidecard {
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section--border {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
}

.section--highlight {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.section__header {
  max-width: 720px;
}

.section__header h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Eyebrow labels */

.section__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

/* Cards & stats */

.card,
.stat-card,
.case,
.step,
.faq__item {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
}

.card--highlight {
  border-color: transparent;
  background: linear-gradient(135deg, #FFFFFF, #FFF3D4);
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.card--link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.card__title,
.case__header h2,
.step__title,
.faq__question {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.card__body,
.card__meta,
.case__meta,
.step__body,
.faq__answer {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.stat-card {
  background: linear-gradient(145deg, #2A9D8F, #1B6A60);
  border: none;
  color: #ECFEFF;
}

.stat-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #C7F9F3;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 18px;
  margin: 0 0 8px;
  color: #FFFFFF;
}

.stat-card__note {
  font-size: 13px;
  color: #D1FAF5;
}

/* Grid */

.grid {
  display: grid;
  gap: 18px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Steps */

.step {
  padding: 18px 16px;
}

.step__index {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.step__title {
  margin-bottom: 6px;
}

/* Lists */

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.list--bullet {
  list-style: disc;
}

.list--check {
  list-style: none;
  padding-left: 0;
}

.list--check li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.list--check li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  font-size: 14px;
  color: var(--accent);
}

/* FAQ */

.faq__item {
  border-radius: var(--radius-md);
}

/* Case */

.case__header {
  margin-bottom: 14px;
}

.case__meta {
  font-size: 13px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--cta);
  color: #1F2933;
  box-shadow: 0 12px 26px rgba(212, 169, 58, 0.55);
}

.btn--primary:hover {
  background: var(--cta-strong);
  transform: translateY(-1px);
}

.btn--secondary {
  background: #FFFFFF;
  color: var(--accent-strong);
  border: 1px solid var(--border-subtle);
}

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

.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(42, 157, 143, 0.3);
}

.btn--ghost:hover {
  background: var(--accent-soft);
}

.btn--full {
  width: 100%;
}

/* Forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.form--inline .form__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 13px;
  color: var(--text-muted);
}

.form__input {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

textarea.form__input {
  border-radius: var(--radius-md);
  min-height: 80px;
  resize: vertical;
}

select.form__input {
  appearance: none;
  -webkit-appearance: none;
}

.form__input::placeholder {
  color: rgba(107, 114, 128, 0.9);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.35);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
  padding: 18px 0 24px;
  background: var(--bg-alt);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  gap: 12px;
}

.site-footer__link {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--accent-strong);
}

/* Responsive */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__sidecard {
    order: -1;
    margin-bottom: 18px;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 10px 16px;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav__link {
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero__title,
  .hero h1 {
    font-size: 26px;
  }

  .section {
    padding: 30px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form--inline .form__row {
    flex-direction: column;
  }
}
