/*
Theme Name: OGIS AI Readiness
Theme URI: https://ogisphilippines.com
Author: OGIS Philippines, Inc.
Description: Custom theme for the OGIS Philippines AI Readiness Assessment landing page and step-by-step assessment form.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: ogis-ai-readiness
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --radius: 0.75rem;
  --color-background: #ffffff;
  --color-foreground: #231d22;
  --color-card: #ffffff;
  --color-brand: #1a6fac;
  --color-brand-deep: #0d5694;
  --color-secondary: #f2f5f9;
  --color-muted-foreground: #6b7280;
  --color-cta: #e71f22;
  --color-cta-foreground: #ffffff;
  --color-border: #e3e7ee;
  --color-input: #e3e7ee;
  --font-display: "Poppins", sans-serif;
  --font-sans: "Barlow", sans-serif;
  --shadow-brand: 0 20px 60px -20px rgba(26, 111, 172, 0.45);
  --shadow-cta: 0 14px 40px -12px rgba(231, 31, 34, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans)!important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display)!important;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.container--form {
  max-width: 768px;
}

/* ==========================================================================
   Site header (shared) — centered logo only
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.site-header__logo,
.site-header__logo a {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  max-height: 56px;
  width: auto;
}

.site-header__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-brand-deep);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Site footer (shared)
   ========================================================================== */
.site-footer {
  background: var(--color-brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.site-footer .container {
  text-align: center;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.site-footer__address {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.site-footer__copyright {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  transition: filter 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-cta-foreground);
  box-shadow: var(--shadow-cta);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-cta:hover {
  filter: brightness(1.1);
}

.btn-cta--sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: #ffffff;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--color-secondary);
}

/* ==========================================================================
   Landing page
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-deep);
  color: #ffffff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-brand-deep) 0%, rgba(13, 86, 148, 0.95) 55%, rgba(26, 111, 172, 0.7) 100%);
}

.hero__inner {
  position: relative;
  padding: 5rem 0 6rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 44rem;
  color:#fff;
}

.hero__title span {
  color: rgba(255, 255, 255, 0.7);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__lead strong {
  color: #ffffff;
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

section.section {
  padding: 5rem 0;
  background-color: var(--color-background);
}

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

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-deep);
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-brand-deep);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
}

.pillars {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pillar-card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-card);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.pillar-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(13, 86, 148, 0.1);
  color: var(--color-brand-deep);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.pillar-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cta);
  margin-bottom: 0.25rem;
}

.pillar-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brand-deep);
}

.pillar-card__desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

.how-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps-list li {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
}

.steps-list__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(13, 86, 148, 0.35);
}

.steps-list__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-deep);
}

.steps-list__desc {
  margin-top: 0.25rem;
  color: var(--color-muted-foreground);
}

.report-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.report-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-brand-deep);
  color: #ffffff;
  padding: 2.5rem;
  box-shadow: var(--shadow-brand);
}

.report-card__title {
  margin-top: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-background);
}

.report-card__lead {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.report-card__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.report-card__list li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--color-cta);
  font-weight: 700;
}

.stat-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-cta);
}

.stat-card__label {
  margin-top: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-foreground);
  line-height: 17px;
}

section.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-deep);
  color: #ffffff;
  text-align: center;
}

section.cta-section .container{
  text-align: center;
}

section.cta-section__inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-section__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-background);
}

section.cta-section__lead {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

section.cta-section__note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

section.cta-section .btn-cta {
  margin: 2rem 0;
}

/* ==========================================================================
   Assessment form
   ========================================================================== */
.assessment-page {
  background: var(--color-secondary);
  min-height: 100vh;
}

.assessment-progress {
  height: 4px;
  width: 100%;
  background: var(--color-border);
}

.assessment-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-cta);
  transition: width 0.2s ease;
}

.assessment-main {
  padding: 3rem 0 4rem;
}

.assessment-step {
  display: none;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.assessment-step.is-active {
  display: block;
}

.assessment-step--intro,
.assessment-step--result {
  box-shadow: var(--shadow-brand);
}

.assessment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(13, 86, 148, 0.1);
  color: var(--color-brand-deep);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.assessment-step h1,
.assessment-step h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-brand-deep);
}

.assessment-step p.lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--color-muted-foreground);
}

.field {
  display: block;
  margin-top: 2rem;
}

.field__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.assessment-page .assessment-step input:is(.text,.title,[type=email],[type=password],[type=tel],[type=text]), .assessment-step select, .assessment-step textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-input);
  background: #ffffff;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(26, 111, 172, 0.2);
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-cta);
}

.q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-deep);
}

.q-meta span.q-count {
  color: var(--color-muted-foreground);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

.q-text {
  margin-top: 1rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-brand-deep);
  line-height: 1.35;
}

.rating-grid {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-option {
  position: relative;
  display: block;
}

.rating-option__label {
  display: block;
  cursor: pointer;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.rating-option input:checked + .rating-option__label {
  border-color: var(--color-brand-deep);
  background: var(--color-brand-deep);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.rating-option input:focus-visible + .rating-option__label {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.probe {
  display: none;
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px dashed rgba(13, 86, 148, 0.3);
  background: rgba(13, 86, 148, 0.05);
  padding: 1.5rem;
}

.probe.is-visible {
  display: block;
}

.probe__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-deep);
}

.probe__title {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand-deep);
}

.probe-options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.probe-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: #ffffff;
  padding: 1rem;
  transition: border-color 0.15s;
}

.probe-option:hover {
  border-color: rgba(13, 86, 148, 0.4);
}

.probe-option input:checked ~ span,
.probe-option.is-checked {
  border-color: var(--color-brand-deep);
}

.probe-option input {
  margin-top: 0.2rem;
  accent-color: var(--color-brand-deep);
}

.probe-option__text {
  font-size: 0.9rem;
  flex: 1;
}

.probe-option__other-input {
  margin-top: 0.5rem;
}

.step-actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkbox-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 1rem;
  transition: border-color 0.15s, background-color 0.15s;
}

.checkbox-option input {
  margin-top: 0.2rem;
  accent-color: var(--color-cta);
}

.checkbox-option-other {
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 1rem;
}

.checkbox-option-other label {
  font-size: 0.9rem;
  font-weight: 600;
}

.consent {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: var(--color-secondary);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
}

.consent input[type=checkbox] {
  margin-top: 9px;
}

.consent input {
  margin-top: 0.2rem;
  accent-color: var(--color-cta);
}

.consent strong {
  color: var(--color-foreground);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* Result screen */
.result-card {
  position: relative;
  overflow: hidden;
  background: var(--color-brand-deep);
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.result-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.result-title {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
}

.result-score {
  margin-top: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.result-score__num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
}

.result-score__denom {
  padding-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.result-blurb {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.result-blurb strong {
  color: #ffffff;
}

.result-email {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem;
  font-size: 0.9rem;
}

.result-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.result-progress-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .assessment-step {
    padding: 1.5rem;
  }
}
