/*
Theme Name: AI Visibility Platform
Theme URI: https://elniq.com/geo
Author: ELNIQ GEO
Author URI: https://elniq.com
Description: Official marketing theme for the AI Visibility Platform Chrome extension by ELNIQ GEO. Includes home, welcome (post-install), help (FAQ), and contact pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ai-visibility-platform
*/

/* =========================================================
   AI Visibility Platform — main stylesheet
   Design tokens follow ELNIQ GEO UI Kit (Inter Tight, Primary Blue #155DFC, Panel Navy #10235F)
   ========================================================= */

:root {
  --navy: #10235F;
  --navy-dark: #060f2e;
  --primary: #155DFC;
  --primary-end: #0084D1;
  --text: #1F2937;
  --text-secondary: #4A5565;
  --text-muted: #64748B;
  --border-light: #E8EDF5;
  --border: #DBEAFE;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 20px 50px rgba(16, 35, 95, 0.10);
  --gradient-navy: linear-gradient(160deg, #1c3aa3 0%, var(--navy) 45%, var(--navy-dark) 100%);
  --font-base: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text);
  background-image: url("assets/images/sky-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  z-index: 0;
}

.site-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 0;
  gap: 16px;
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* burger (mobile nav toggle) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  display: block;
  transition: transform .2s, opacity .2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn img,
.btn .icon {
  flex: 0 0 auto;
}

.btn--outline {
  background: var(--surface-solid);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
}

.btn--outline:hover {
  background: #F5F8FB;
}

.btn--outline img {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--gradient-navy);
  color: #fff;
  font-size: 18px;
  padding: 17px 36px;
  box-shadow: 0 16px 36px rgba(16, 35, 95, 0.38);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(16, 35, 95, 0.46);
}

.btn--primary img {
  width: 21px;
  height: 21px;
}

.btn--email {
  background: var(--gradient-navy);
  color: #fff;
  font-size: 17px;
  padding: 14px 28px;
  box-shadow: 0 14px 32px rgba(16, 35, 95, 0.30);
}

.btn--email:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 35, 95, 0.38);
}

.btn--email .icon {
  width: 19px;
  height: 19px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 32px 0;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
}

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

/* =========================================================
   Page head (shared by Help / Contact)
   ========================================================= */

.page-head {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 24px 32px 16px;
}

.page-head__title {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-head__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =========================================================
   Hero (Home page)
   ========================================================= */

.hero {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 100px 32px 56px;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__title .accent {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Cards grid (Home page features)
   ========================================================= */

.cards {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(21, 93, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* =========================================================
   Welcome page — step blocks
   ========================================================= */

.welcome-hero {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 90px 32px 0;
}

.welcome-hero__text {
  font-size: 34px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.steps {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  padding: 64px 32px 110px;
}

.step {
  margin-bottom: 64px;
}

.step:last-child {
  margin-bottom: 0;
}

.step__text {
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.step__image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(16, 35, 95, 0.16);
}

/* =========================================================
   FAQ accordion (Help page)
   ========================================================= */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  font-family: inherit;
}

.faq-question .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 26px 22px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   Contact page — email card
   ========================================================= */

.email-section {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px 140px;
}

.email-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.email-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(21, 93, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.email-card__icon .icon {
  width: 28px;
  height: 28px;
}

.email-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.email-card__note {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 0 32px 48px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   Responsive helpers
   ========================================================= */

@media (max-width: 600px) {
  .hero__title { font-size: 38px; }
  .hero__subtitle { font-size: 18px; }
  .page-head__title { font-size: 32px; }
  .welcome-hero__text { font-size: 24px; }
  .btn--primary { font-size: 16px; padding: 14px 26px; }
}
