/*
Theme Name: Accredion Qualis
Theme URI: https://accredionqualis.com
Author: ScudoCyber Solutions Private Limited
Author URI: https://accredionqualis.com
Description: Official theme for Accredion Qualis - Professional Certification Platform
Version: 1.0.0
License: Proprietary
Text Domain: accredion-qualis
*/

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --navy: #1A3260;
  --navy-dark: #0F1E3D;
  --gold: #C9A84C;
  --gold-light: #DEB96A;
  --cream: #FDF8EE;
  --slate: #4A5568;
  --slate-light: #718096;
  --white: #ffffff;
  --border: #E8E4DA;
  --success: #065F46;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--slate); background: #fff; line-height: 1.6; font-size: 16px; width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-serif); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--slate); }

/* ── Container ─────────────────────────────────────────────────────── */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Section Headers ───────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--slate-light); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.divider { width: 60px; height: 3px; background: var(--gold); margin: 1.25rem auto 0; border-radius: 2px; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.75rem; }

/* ── Badge / Hex ───────────────────────────────────────────────────── */
.hex-badge { width: 80px; height: 80px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: flex; align-items: center; justify-content: center; }

/* ── Header / Nav ──────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,0.15); width: 100%; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.logo-sub { font-size: 9px; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: color 0.2s; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.current-menu-item { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta { margin-left: 1rem; }
.hamburger { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 4px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4080 100%); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; width: 100%; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); border-radius: 20px; padding: 6px 16px; font-size: 12px; font-weight: 600; color: var(--gold-light); letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.125rem; margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-cert-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-lg); padding: 2rem; max-width: 360px; width: 100%; backdrop-filter: blur(10px); }
.hero-cert-card .cert-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(201,168,76,0.2); }
.hero-cert-card .cert-badge { width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--navy); }
.hero-cert-card .cert-title { font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: #fff; }
.hero-cert-card .cert-sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.hero-cert-card .cert-field { margin-bottom: 10px; }
.hero-cert-card .cert-field label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); display: block; margin-bottom: 2px; }
.hero-cert-card .cert-field span { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.hero-cert-card .cert-valid { display: flex; align-items: center; gap: 6px; background: rgba(6,95,70,0.3); border: 1px solid rgba(6,95,70,0.4); border-radius: 6px; padding: 8px 12px; margin-top: 1.25rem; color: #6EE7B7; font-size: 12px; font-weight: 600; }

/* ── Trust Bar ─────────────────────────────────────────────────────── */
.trust-bar { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.trust-item svg { color: var(--gold); }

/* ── Programs Section ──────────────────────────────────────────────── */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.program-card { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s; background: #fff; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card-header { padding: 1.75rem; display: flex; align-items: flex-start; gap: 1rem; }
.program-badge { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.program-badge svg { color: #fff; }
.program-code { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.program-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 0; }
.program-card-body { padding: 0 1.75rem 1.75rem; }
.program-desc { font-size: 13px; color: var(--slate-light); line-height: 1.6; margin-bottom: 1.25rem; }
.program-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.program-meta-item { font-size: 11px; color: var(--slate-light); display: flex; align-items: center; gap: 4px; }
.program-skills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.skill-tag { font-size: 10px; padding: 3px 10px; background: var(--cream); color: var(--navy); border-radius: 20px; border: 1px solid var(--border); font-weight: 500; }
.program-card-footer { padding: 1rem 1.75rem; border-top: 1px solid var(--border); background: #FAFAFA; display: flex; justify-content: space-between; align-items: center; }

/* ── How It Works ──────────────────────────────────────────────────── */
.how-it-works { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px; background: linear-gradient(to right, var(--gold) 0%, var(--gold-light) 100%); z-index: 0; }
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number { width: 80px; height: 80px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; border: 4px solid var(--cream); box-shadow: 0 0 0 3px var(--gold); }
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 14px; color: var(--slate-light); margin-bottom: 0; }

/* ── Stats Section ─────────────────────────────────────────────────── */
.stats-section { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.6); }

/* ── Verify Section ────────────────────────────────────────────────── */
.verify-section { background: linear-gradient(135deg, var(--navy) 0%, #1e4080 100%); color: #fff; }
.verify-box { max-width: 600px; margin: 0 auto; text-align: center; }
.verify-box h2 { color: #fff; margin-bottom: 1rem; }
.verify-box p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.verify-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.verify-input { flex: 1; padding: 14px 18px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s; }
.verify-input::placeholder { color: rgba(255,255,255,0.4); }
.verify-input:focus { border-color: var(--gold); }

/* ── Blog / News ───────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card .post-thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card .post-body { padding: 1.25rem; }
.post-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--gold); }
.post-meta { font-size: 12px; color: var(--slate-light); margin-bottom: 0; }

/* ── About ─────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.value-item { background: var(--cream); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--border); }
.value-icon { width: 40px; height: 40px; background: var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.value-item h4 { font-size: 14px; margin-bottom: 4px; }
.value-item p { font-size: 13px; color: var(--slate-light); margin: 0; }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.contact-icon { width: 40px; height: 40px; background: rgba(26,50,96,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.contact-item h4 { font-size: 14px; margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--slate-light); margin: 0; }
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--navy); outline: none; transition: border-color 0.2s; background: #FAFAFA; }
.form-control:focus { border-color: var(--navy); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { color: #fff; font-family: var(--font-serif); font-size: 15px; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.4); font-size: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Mobile Nav ────────────────────────────────────────────────────── */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--navy); z-index: 200; flex-direction: column; padding: 1.5rem; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 500; }
.mobile-nav a:hover { color: var(--gold); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .main-nav { display: none; }
  .hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .programs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Force Full Width Layout ────────────────────────────────────────── */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* WordPress default content wrapper fix */
.wp-site-blocks,
.wp-block-group,
#page,
#content,
#main,
.site,
.site-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Section full width */
section, .section, .trust-bar, .stats-section, .verify-section, .site-footer {
  width: 100%;
  max-width: 100%;
}

/* Container centered with max width */
.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box;
}

/* Header inner full width */
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Mobile container padding */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .header-inner {
    padding: 0 1rem;
  }
}

/* ── Aggressive Full Width Override ─────────────────────────────────── */
/* Override any WordPress/plugin wrappers that constrain width */
body.home,
body.front-page,
body {
  max-width: 100vw !important;
}

/* Common WordPress wrapper IDs and classes */
#wrapper,
#outer-wrapper,
#page-wrapper,
#content-wrapper,
.page-wrapper,
.content-wrapper,
.wrapper,
.inner-wrap,
#inner-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Elementor / Divi / common builders */
.elementor-section-boxed > .elementor-container {
  max-width: 1200px !important;
}

/* Hero and sections must be edge-to-edge */
.hero,
.trust-bar,
.how-it-works,
.stats-section,
.verify-section,
.site-footer,
.site-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
}
