/*
Theme Name: CYBERZ Corporate
Theme URI: https://www.cyberzky.com
Author: CYBERZ KY LIMITED
Description: Lightweight corporate theme for CYBERZ KY LIMITED — built for clarity, contactability, and Apple Developer organization review.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cyberz-corp
*/

:root {
  --bg: #e8eef4;
  --bg-deep: #0c1a24;
  --surface: #f5f8fb;
  --ink: #102033;
  --muted: #5b6b7c;
  --line: rgba(16, 32, 51, 0.12);
  --accent: #0f7a6b;
  --accent-2: #1f9d88;
  --accent-soft: rgba(15, 122, 107, 0.12);
  --warn: #b45309;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(12, 26, 36, 0.18);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 157, 136, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(16, 32, 51, 0.08), transparent 50%),
    linear-gradient(180deg, #dfe8f0 0%, var(--bg) 28%, #f3f6f9 100%);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0a5f53;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--bg-deep);
}

.brand-legal {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.primary-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #f4faf8;
  background:
    linear-gradient(115deg, rgba(8, 20, 28, 0.94) 0%, rgba(12, 40, 44, 0.82) 46%, rgba(15, 122, 107, 0.58) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(159, 227, 213, 0.22), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(31, 157, 136, 0.35), transparent 40%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.025) 18px 19px
    ),
    #0c1a24;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, rgba(232, 238, 244, 0.95));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4.5rem;
  max-width: 40rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 250, 248, 0.78);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  max-width: 34rem;
  color: rgba(244, 250, 248, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #f4faf8;
  color: var(--bg-deep);
}

.button-primary:hover {
  background: #fff;
  color: var(--bg-deep);
}

.button-ghost {
  background: transparent;
  color: #f4faf8;
  border-color: rgba(244, 250, 248, 0.35);
}

.button-ghost:hover {
  background: rgba(244, 250, 248, 0.1);
  color: #fff;
}

.button-solid {
  background: var(--accent);
  color: #fff;
}

.button-solid:hover {
  background: #0c6559;
  color: #fff;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-tight {
  padding: 2.5rem 0 4rem;
}

.section-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.panel {
  background: rgba(245, 248, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.legal-strip h2 {
  margin-top: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.meta-list li {
  display: grid;
  gap: 0.15rem;
}

.meta-list strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.meta-list span,
.meta-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.page-hero {
  padding: 3.2rem 0 1.4rem;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.entry-content {
  padding-bottom: 3.5rem;
}

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

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.entry-content h2 {
  margin-top: 2rem;
}

.entry-content ul {
  padding-left: 1.2rem;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0 0 0.85rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(244, 250, 248, 0.86);
  padding: 2.6rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #9fe3d5;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: rgba(244, 250, 248, 0.62);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: rise 0.8s ease both;
  }

  .feature {
    animation: rise 0.7s ease both;
  }

  .feature:nth-child(2) {
    animation-delay: 0.08s;
  }

  .feature:nth-child(3) {
    animation-delay: 0.16s;
  }

  .legal-strip,
  .contact-grid {
    animation: rise 0.75s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid,
  .legal-strip,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

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

  .primary-nav ul {
    flex-direction: column;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    padding-top: 4.2rem;
  }
}
