/*
Theme Name: SkyOpSys
Theme URI: https://skyopsys.com
Author: SkyOpSys
Author URI: https://skyopsys.com
Description: A data-driven, professional WordPress theme for SkyOpSys – dark edition.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: skyopsys
Tags: business, data, analytics, dark, professional
*/

/* ============================================================
   CSS VARIABLES — Dark theme
   ============================================================ */
:root {
  /* Core palette */
  --color-body-bg:    #2e2f27;   /* main page background     */
  --color-surface:    #363830;   /* cards, panels            */
  --color-surface-2:  #3e4038;   /* slightly lighter surface */
  --color-border:     #4a4c40;   /* subtle borders           */

  /* Brand colours */
  --color-gold:       #ACA23C;   /* primary accent           */
  --color-gold-dark:  #8a8130;   /* hover / pressed gold     */
  --color-gold-faint: rgba(172,162,60,0.10); /* tints        */
  --color-fill:       #a1b2c3;   /* secondary / muted text   */

  /* Text */
  --color-text:       #d8d6bc;   /* body text on dark bg     */
  --color-text-muted: #9a9980;   /* captions, meta           */
  --color-heading:    #f0eedc;   /* headings                 */

  /* Semantic */
  --color-white:      #ffffff;
  --color-dark:       #1e1f18;   /* deepest dark (footer bg) */

  /* Shadows — warm, not cold */
  --shadow:    0 2px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.50);

  /* Misc */
  --font-main:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius:       5px;
  --transition:   0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--color-body-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Selection colour */
::selection {
  background: var(--color-gold);
  color: var(--color-dark);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #c8bc4e; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }

strong { color: var(--color-heading); }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 80px 0; }

/* Alternate section: slightly lighter surface */
.section--alt {
  background-color: var(--color-surface);
}

/* Dark section: deepest background */
.section--dark {
  background-color: var(--color-dark);
  color: var(--color-fill);
}
.section--dark h2,
.section--dark h3 { color: var(--color-heading); }

/* Accent section: gold band */
.section--accent {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}
.section--accent h2,
.section--accent p  { color: var(--color-dark); }

.section__header { text-align: center; margin-bottom: 52px; }
.section__header h2 { font-size: 2rem; margin-bottom: 0.5em; }
.section__header p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section--dark .section__header p { color: var(--color-fill); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;        gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(172,162,60,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-fill);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-heading);
  border-color: var(--color-fill);
}

.btn--white {
  background: var(--color-heading);
  color: var(--color-dark);
  border-color: var(--color-heading);
}
.btn--white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 31, 24, 0.92);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.site-logo img { height: 54px; width: auto; }
.site-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -0.02em;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav a.current-menu-item {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 1rem;
}
.lang-switcher a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  letter-spacing: 0.05em;
  transition: color var(--transition), border-color var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(
    135deg,
    #1a1b14 0%,
    #252620 45%,
    #2a2d38 100%
  );
  color: var(--color-heading);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Radial glow top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(172,162,60,0.14) 0%, transparent 68%);
  pointer-events: none;
}

/* Radial glow bottom-left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(161,178,195,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  color: var(--color-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  margin-bottom: 1.2rem;
}
.hero__content h1 span { color: var(--color-gold); }

.hero__content p {
  color: var(--color-fill);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BI Dashboard mock in hero */
.data-viz-mock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(172,162,60,0.25);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.data-viz-mock__title {
  color: var(--color-fill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.data-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-bottom: 1.5rem;
}
.data-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--color-gold);
  opacity: 0.85;
}
.data-bar:nth-child(2) { background: var(--color-fill); height: 65% !important; }
.data-bar:nth-child(3) { height: 90% !important; }
.data-bar:nth-child(4) { background: var(--color-fill); height: 50% !important; }
.data-bar:nth-child(5) { height: 80% !important; }
.data-bar:nth-child(6) { background: var(--color-fill); height: 70% !important; }

.data-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.kpi {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.7rem;
  text-align: center;
  border: 1px solid rgba(172,162,60,0.15);
}
.kpi__val   { color: var(--color-gold); font-size: 1.3rem; font-weight: 800; }
.kpi__label { color: var(--color-fill); font-size: 0.72rem; margin-top: 2px; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-gold);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-gold-faint);
  border: 1px solid rgba(172,162,60,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-heading);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ============================================================
   DEFINITION TABS  (BI definitions on homepage)
   ============================================================ */
.def-tabs {
  display: flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-bottom: none;
}
.def-tab {
  flex: 1;
  padding: 0.9em 1em;
  background: var(--color-dark);
  color: var(--color-fill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid var(--color-border);
}
.def-tab:last-child { border-right: none; }
.def-tab.active,
.def-tab:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.def-panel {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 2rem;
}
.def-panel.active { display: block; }
.def-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  color: var(--color-gold);
}
.def-panel p { color: var(--color-text); }

/* ============================================================
   CHALLENGES LIST
   ============================================================ */
.challenges-list { list-style: none; padding: 0; }
.challenges-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text);
}
.challenges-list li:last-child { border-bottom: none; }
.challenges-list li::before {
  content: '▸';
  color: var(--color-gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--color-dark);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.cta-banner p {
  color: rgba(30,31,24,0.78);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group  { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-heading);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(172,162,60,0.18);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* Select arrow colour fix for dark bg */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ACA23C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, #1a1b14 0%, #252620 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-visual .tagline {
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}
.about-visual .tagline span {
  color: var(--color-fill);
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat-box {
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.4rem;
}
.stat-box__val   { font-size: 1.8rem; font-weight: 800; color: var(--color-gold); }
.stat-box__label { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 2px; }

/* ============================================================
   PAGE HERO  (inner page headers)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #1a1b14 0%, #252620 60%, #2a2d38 100%);
  padding: 64px 0 56px;
  color: var(--color-heading);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1  { font-size: 2.2rem; margin-bottom: 0.4rem; }
.page-hero p   { color: var(--color-fill); font-size: 1.05rem; }
.breadcrumb    { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 0.8rem; }
.breadcrumb a  { color: var(--color-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-dark);
  color: var(--color-fill);
  padding: 56px 0 28px;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand .site-logo span { color: var(--color-gold); }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(161,178,195,0.12);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(161,178,195,0.45);
}
.footer-bottom a { color: rgba(161,178,195,0.45); }
.footer-bottom a:hover { color: var(--color-gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .hero__inner,
  .about-intro,
  .footer-grid    { grid-template-columns: 1fr; }
  .hero__visual   { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { gap: 2rem; }
}

@media (max-width: 720px) {
  .main-nav,
  .lang-switcher  { display: none; }
  .nav-toggle     { display: block; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(24, 26, 18, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    gap: 0.8rem;
    z-index: 99;
  }
  .main-nav.open a { color: var(--color-text); }

  .header-inner { position: relative; }
  .section      { padding: 52px 0; }
  .hero         { padding: 64px 0 48px; }
  .hero__content h1 { font-size: 1.8rem; }
  .stat-grid    { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================
   WORDPRESS STANDARD CLASSES
   ============================================================ */
.aligncenter { display: block; margin: 0 auto; }
.alignleft   { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright  { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.wp-caption  { max-width: 100%; }
.wp-block-image figcaption { color: var(--color-text-muted); font-size: 0.85rem; }

/* Gutenberg: make core blocks honour dark theme */
.wp-block-separator { border-color: var(--color-border); }
.wp-block-quote {
  border-left: 4px solid var(--color-gold);
  padding-left: 1.4rem;
  color: var(--color-fill);
  font-style: italic;
}
.wp-block-code,
.wp-block-preformatted {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
