/*
Theme Name: Sigma Solutions Philly
Theme URI: https://sigmasolutionsphilly.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A custom responsive WordPress theme for Sigma Solutions Philly with built-in page setup, contact form, cookie banner, and branded blue/white design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sigma-solutions-philly
*/

:root {
  --ssp-navy: #0c122a;
  --ssp-deep: #0e1631;
  --ssp-accent: #1ab2e9;
  --ssp-accent-dark: #17486a;
  --ssp-white: #ffffff;
  --ssp-text: #d8e7f7;
  --ssp-muted: #93aac5;
  --ssp-border: rgba(255, 255, 255, 0.12);
  --ssp-surface: rgba(255, 255, 255, 0.04);
  --ssp-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --ssp-radius: 22px;
  --ssp-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at center, rgba(17, 34, 79, 0.9) 0%, rgba(12, 18, 42, 1) 48%, rgba(7, 11, 28, 1) 100%);
  color: var(--ssp-text);
  line-height: 1.65;
}

a {
  color: var(--ssp-accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.92;
}

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

.container {
  width: min(var(--ssp-container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(9, 14, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ssp-white);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ssp-white);
}

.brand-tagline {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ssp-muted);
  margin-top: 3px;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav .menu li a {
  display: inline-flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--ssp-white);
  font-weight: 600;
  border-radius: 999px;
  transition: 0.2s ease;
}

.primary-nav .menu li.current-menu-item a,
.primary-nav .menu li a:hover {
  background: rgba(26, 178, 233, 0.14);
  color: var(--ssp-white);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ssp-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  cursor: pointer;
}

.site-main {
  min-height: 60vh;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.sigma-page {
  padding: 34px 0 70px;
}

.sigma-page .entry-content {
  display: grid;
  gap: 28px;
}

.sigma-shell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ssp-border);
  border-radius: 28px;
  box-shadow: var(--ssp-shadow);
  overflow: hidden;
}

.sigma-section {
  padding: 62px 0;
}

.sigma-section-tight {
  padding: 26px 0 62px;
}

.sigma-hero {
  padding: 92px 0 84px;
}

.sigma-hero-grid,
.sigma-contact-grid,
.sigma-about-grid,
.sigma-cta-grid,
.sigma-service-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.sigma-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 178, 233, 0.12);
  color: var(--ssp-accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.sigma-title,
.sigma-section h2,
.sigma-card h3,
.sigma-contact-card h3,
.sigma-policy h2,
.sigma-policy h3 {
  color: var(--ssp-white);
  margin: 0 0 14px;
  line-height: 1.15;
}

.sigma-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 12ch;
}

.sigma-lead {
  font-size: 1.08rem;
  color: var(--ssp-text);
  max-width: 60ch;
}

.sigma-copy {
  color: var(--ssp-text);
}

.sigma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.btn-primary,
.wp-block-button__link {
  background: linear-gradient(135deg, var(--ssp-accent), #52d1f5);
  color: #071122;
  box-shadow: 0 16px 32px rgba(26, 178, 233, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ssp-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-link {
  color: var(--ssp-white);
}

.sigma-hero-card,
.sigma-card,
.sigma-contact-card,
.sigma-map-wrap,
.sigma-form-wrap,
.sigma-highlight-box,
.sigma-policy,
.sigma-footer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  box-shadow: var(--ssp-shadow);
}

.sigma-hero-card {
  padding: 28px;
}

.sigma-hero-logo {
  width: min(100%, 460px);
  display: block;
  margin: 0 auto 20px;
  border-radius: 22px;
}

.sigma-stat-grid,
.sigma-card-grid,
.sigma-value-grid,
.sigma-policy-grid,
.sigma-footer-grid {
  display: grid;
  gap: 20px;
}

.sigma-stat-grid,
.sigma-card-grid,
.sigma-value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sigma-card,
.sigma-contact-card,
.sigma-policy,
.sigma-highlight-box {
  padding: 24px;
}

.sigma-card p,
.sigma-contact-card p,
.sigma-policy p,
.sigma-policy li,
.sigma-highlight-box p,
.sigma-highlight-box li {
  color: var(--ssp-text);
}

.sigma-card-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(26, 178, 233, 0.14);
  color: var(--ssp-accent);
}

.sigma-divider-title {
  text-align: center;
  margin-bottom: 26px;
}

.sigma-divider-title p {
  max-width: 60ch;
  margin: 0 auto;
}

.sigma-list,
.sigma-policy ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.sigma-highlight-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.sigma-contact-grid {
  align-items: stretch;
}

.sigma-form-wrap,
.sigma-map-wrap {
  padding: 28px;
}

.sigma-contact-card a,
.site-footer a {
  color: var(--ssp-white);
}

.sigma-form {
  display: grid;
  gap: 16px;
}

.sigma-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sigma-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ssp-white);
  font-weight: 600;
}

.sigma-field input,
.sigma-field textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ssp-white);
  font: inherit;
}

.sigma-field input::placeholder,
.sigma-field textarea::placeholder {
  color: rgba(216, 231, 247, 0.55);
}

.sigma-field textarea {
  min-height: 160px;
  resize: vertical;
}

.sigma-form-notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.sigma-form-notice.success {
  background: rgba(77, 214, 149, 0.12);
  border: 1px solid rgba(77, 214, 149, 0.35);
  color: #d7ffe9;
}

.sigma-form-notice.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffdede;
}

.sigma-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 18px;
}

.sigma-policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  padding: 0 0 34px;
}

.sigma-footer-card {
  padding: 28px;
}

.sigma-footer-grid {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

.footer-title {
  color: var(--ssp-white);
  margin: 0 0 10px;
}

.footer-meta,
.footer-links {
  color: var(--ssp-text);
}

.footer-links a {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 8px;
}

.footer-copy {
  margin-top: 16px;
  color: var(--ssp-muted);
  font-size: 0.94rem;
}

.sigma-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 31, 0.96);
  box-shadow: var(--ssp-shadow);
  display: none;
}

.sigma-cookie-banner.is-visible {
  display: block;
}

.sigma-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sigma-cookie-title {
  margin: 0 0 8px;
  color: var(--ssp-white);
}

.sigma-cookie-text {
  margin: 0;
  color: var(--ssp-text);
}

.sigma-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 980px) {
  .sigma-hero-grid,
  .sigma-contact-grid,
  .sigma-about-grid,
  .sigma-cta-grid,
  .sigma-service-layout,
  .sigma-footer-grid,
  .sigma-policy-grid {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: rgba(9, 14, 31, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--ssp-shadow);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav .menu li a {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }

  .sigma-hero,
  .sigma-section {
    padding: 54px 0;
  }

  .sigma-title {
    max-width: none;
  }

  .sigma-stat-grid,
  .sigma-card-grid,
  .sigma-value-grid,
  .sigma-form-grid {
    grid-template-columns: 1fr;
  }

  .sigma-form-wrap,
  .sigma-map-wrap,
  .sigma-hero-card,
  .sigma-card,
  .sigma-contact-card,
  .sigma-policy,
  .sigma-highlight-box,
  .sigma-footer-card,
  .sigma-cookie-banner {
    border-radius: 18px;
  }

  .sigma-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sigma-cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
