/* ===================================================
   BRIDGE GRC — PAGES.CSS
   Styles for non-landing pages (Login, Demo, About, Contact, Legal)
   Imports alongside styles.css which provides the design system.
   =================================================== */

/* ---- SUBPAGE LAYOUT ---- */
.subpage-hero {
  padding: calc(100px + var(--space-2xl)) var(--space-md) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(45,200,130,0.06), transparent 60%);
  pointer-events: none;
}

.subpage-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.subpage-hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- PAGE CONTENT WRAPPER ---- */
.page-content {
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================================================
   LOGIN PAGE
   ================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
}

.login__form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.login__brand-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(45,200,130,0.08) 0%, var(--bg-surface) 50%, rgba(15,42,74,0.15) 100%);
  border-left: 1px solid var(--border-subtle);
}

.login__brand-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,200,130,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,200,130,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login__brand-logo {
  position: relative;
  z-index: 1;
  width: 120px;
  height: auto;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 0 40px rgba(45,200,130,0.15));
}

.login__brand-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 320px;
}

.login__brand-sub {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
}

.login__form-wrapper {
  width: 100%;
  max-width: 400px;
}

.login__logo-mobile {
  display: none;
  width: 48px;
  margin-bottom: var(--space-lg);
}

.login__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ==================================================
   FORMS (shared across pages)
   ================================================== */
.form__group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form__label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-tertiary);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(45,200,130,0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(234,234,240,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--accent-primary);
  color: #050508;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: var(--space-sm);
}

.form__submit:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(45,200,130,0.25);
}

.form__row {
  display: flex;
  gap: var(--space-md);
}

.form__row .form__group {
  flex: 1;
}

.form__footer {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--text-tertiary);
}

.form__footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.form__footer a:hover {
  color: var(--accent-glow);
}

.form__divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.form__divider::before,
.form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ==================================================
   DEMO / BOOKING PAGE
   ================================================== */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.demo__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
}

.demo__form-side::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--border-subtle);
}

.demo__form-inner {
  width: 100%;
  max-width: 480px;
}

.demo__form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.demo__form-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.demo__info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.demo__info-glow {
  position: absolute;
  top: 40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(45,200,130,0.06), transparent 60%);
  pointer-events: none;
}

.demo__info-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.demo__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-xl);
}

.demo__step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.demo__step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.demo__step-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.demo__step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo__benefits {
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

.demo__benefits-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.demo__benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.demo__benefit-item:last-child {
  margin-bottom: 0;
}

.demo__benefit-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.demo__fallback {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--text-tertiary);
}

.demo__fallback a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.15);
  transition: color 0.2s;
}

.demo__fallback a:hover {
  color: var(--accent-primary);
}

/* ==================================================
   ABOUT PAGE
   ================================================== */
.about-story {
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.about-story__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-story__text {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-story__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Mission / Vision Cards */
.about-cards {
  padding: var(--space-xl) var(--space-md);
}

.about-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-xl) var(--space-lg);
  transition: border-color 0.3s;
}

.about-card:hover {
  border-color: var(--border-glow);
}

.about-card__icon {
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.about-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.about-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Values Section */
.about-values {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-values__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1080px;
  margin: 0 auto;
}

.about-value {
  text-align: center;
  padding: var(--space-md);
}

.about-value__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--accent-primary);
  transition: border-color 0.3s, background 0.3s;
}

.about-value:hover .about-value__icon {
  border-color: var(--accent-primary);
  background: rgba(45,200,130,0.05);
}

.about-value__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.about-value__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Saudi Context */
.about-ksa {
  padding: var(--space-2xl) var(--space-md);
}

.about-ksa__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-ksa__text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================================================
   CONTACT PAGE
   ================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
}

.contact__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

.contact__form-inner {
  width: 100%;
  max-width: 500px;
}

.contact__form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.contact__form-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.contact__info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.contact__info-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(45,200,130,0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(15,42,74,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact__info-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.contact__info-block {
  margin-bottom: var(--space-xl);
}

.contact__info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.contact__info-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
}

.contact__info-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.15);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact__info-text a:hover {
  color: var(--accent-primary);
}

.contact__social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.contact__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.contact__social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(45,200,130,0.05);
}

/* ==================================================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ================================================== */
.legal-article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-3xl);
}

.legal-article__updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.legal-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-article h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-article p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-article ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.legal-article li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-article li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.legal-article a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45,200,130,0.3);
}

.legal-article a:hover {
  color: var(--accent-glow);
}

/* ==================================================
   RESPONSIVE — PAGES
   ================================================== */
@media (max-width: 1024px) {
  .login-page {
    flex-direction: column;
  }

  .login__brand-panel {
    display: none;
  }

  .login__logo-mobile {
    display: block;
  }

  .demo-split,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .demo__form-side::after {
    display: none;
  }

  .demo__info-side {
    padding: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
  }

  .contact__info-side {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .about-cards__grid {
    grid-template-columns: 1fr;
  }

  .about-values__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-values__grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    flex-direction: column;
    gap: 0;
  }

  .demo__form-side,
  .contact__form-side {
    padding: var(--space-xl) var(--space-md);
  }

  .demo__info-side,
  .contact__info-side {
    padding: var(--space-xl) var(--space-md);
  }
}
