/*
Theme Name: Biniksol
Theme URI: https://biniksol.com/
Author: Biniksol
Author URI: https://biniksol.com/
Description: Custom WordPress conversion of the Biniksol React website.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biniksol
*/

:root {
  --background: #090a0c;
  --foreground: #fafafa;
  --card: #0d0e11;
  --card-foreground: #fafafa;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #111216;
  --secondary-foreground: #fafafa;
  --muted: #1b1d22;
  --muted-foreground: #9ea4ad;
  --border: #202329;
  --input: #202329;
  --destructive: #ef4444;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin-bottom: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 12, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.site-brand img {
  max-height: 42px;
  width: auto;
}

.site-footer {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.site-footer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--primary);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  color: rgba(250, 250, 250, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 180ms ease;
}

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

.desktop-nav .nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
}

.mobile-menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-toggle svg {
  width: 26px;
  height: 26px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav .nav-link {
  font-size: 1.075rem;
}

.main-offset {
  padding-top: 64px;
}

.hero-home {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(9, 10, 12, 0.96), rgba(9, 10, 12, 0.91), rgba(9, 10, 12, 0.84));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-block: 96px 80px;
  text-align: center;
}

.page-hero {
  padding-block: 80px;
  background: var(--secondary);
}

.page-hero .hero-content {
  padding-block: 0;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 700;
}

.page-hero .hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.text-primary {
  color: var(--primary);
}

.hero-copy {
  max-width: 700px;
  margin-inline: auto;
  color: rgba(250, 250, 250, 0.8);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  background: #2563eb;
}

.button:active {
  transform: scale(0.98);
}

.button-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.button-outline:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.1);
}

.section {
  padding-block: 80px;
}

.section-secondary {
  background: var(--secondary);
}

.section-soft {
  border-top: 1px solid var(--border);
  background: rgba(17, 18, 22, 0.5);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.section-heading p {
  color: rgba(250, 250, 250, 0.78);
  font-size: 1.075rem;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-two {
  grid-template-columns: 1fr;
}

.grid-three {
  grid-template-columns: 1fr;
}

.grid-four {
  grid-template-columns: 1fr;
}

.grid-five {
  grid-template-columns: 1fr;
  gap: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--card-foreground);
}

.feature-card,
.service-card,
.value-card {
  padding: 32px;
}

.feature-card,
.service-card,
.team-card,
.contact-card,
.platform-card,
.portfolio-card {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.feature-card:hover,
.service-card:hover,
.team-card:hover,
.contact-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.08);
}

.icon-box {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p,
.copy-muted {
  color: rgba(250, 250, 250, 0.78);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--primary);
  font-size: 0.925rem;
  font-weight: 600;
  transition: gap 180ms ease;
}

.service-card .card-link:hover {
  gap: 12px;
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
}

.story-copy {
  display: grid;
  gap: 16px;
  color: rgba(250, 250, 250, 0.78);
}

.rounded-media {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.team-card {
  padding: 20px;
  text-align: center;
}

.team-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--muted);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.team-role {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.team-card p:last-child {
  font-size: 0.75rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 450ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.96), rgba(9, 10, 12, 0.42), transparent);
  transition: opacity 220ms ease;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-within .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-overlay h3 {
  margin: 0;
  font-size: 1.35rem;
}

.platform-grid {
  max-width: 980px;
  margin-inline: auto;
}

.platform-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 14px;
  font-weight: 600;
}

.platform-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.platform-card svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.required {
  color: var(--destructive);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 10px;
  background: var(--input);
  color: var(--foreground);
  outline: 0;
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 14px;
}

.contact-card .icon-box {
  width: 48px;
  height: 48px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 12px;
}

.contact-card .icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  margin-bottom: 4px;
}

.contact-card p:nth-of-type(2) {
  color: rgba(250, 250, 250, 0.58);
  font-size: 0.875rem;
}

.map-card {
  overflow: hidden;
  border-radius: 18px;
}

.map-placeholder {
  display: flex;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  text-align: center;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.status-message {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--foreground);
}

.status-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.center-cta {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.center-cta h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.center-cta p {
  margin-bottom: 32px;
  color: rgba(250, 250, 250, 0.78);
  font-size: 1.075rem;
}

.content-page {
  max-width: 860px;
  padding-block: 96px;
}

.content-page .entry-title {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.content-page .entry-content {
  color: rgba(250, 250, 250, 0.82);
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-animate] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

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

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

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

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-toggle,
  .mobile-nav {
    display: none;
  }

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

  .grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-centered {
    grid-column: 2;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
