/* Computing 360 – Brand styles from business card */
:root {
  --bg: #0d0d0f;
  --bg-elevated: #16161a;
  --bg-card: #1a1a20;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dark: #a8862a;
  --white: #f5f5f7;
  --muted: #9a9aa8;
  --blue-accent: #6b9fd4;
  --border: rgba(212, 175, 55, 0.2);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.15);
  --font: "Heebo", system-ui, sans-serif;
  --header-h: 72px;
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.poly-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.85) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,16 58,36 30,50 2,36 2,16' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
  background-size: auto, 60px 52px;
}

.header,
main,
.footer {
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(13, 13, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: clamp(2.25rem, 5.5vw, 3rem);
  width: auto;
  max-width: min(11.5rem, 42vw);
  aspect-ratio: 1024 / 388;
  object-fit: contain;
  object-position: right center;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-tag {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

.hero-brand {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1408;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  margin-top: 0.5rem;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.hero-branding {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: min(100%, 26rem);
  height: auto;
  aspect-ratio: 1024 / 388;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.45));
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Services */
.services {
  background: linear-gradient(180deg, transparent, rgba(22, 22, 26, 0.6) 20%, rgba(22, 22, 26, 0.9) 80%, transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-gold);
}

.service-card--featured {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card--featured .service-card-media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: clamp(9.5rem, 26vw, 11.5rem);
  overflow: hidden;
}

.service-card--featured .service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(26, 26, 32, 0.85) 85%,
    var(--bg-card) 100%
  );
  pointer-events: none;
}

.service-card--featured .service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-card--featured:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card--featured .service-card-body {
  flex: 1;
  padding: 0 1.25rem 1.25rem;
  margin-top: -0.35rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 600px) {
  .service-card--featured .service-card-media {
    height: clamp(10rem, 18vw, 11.25rem);
  }

  .service-card--featured .service-card-body {
    padding: 0 1.35rem 1.35rem;
  }

  .service-card--featured .service-card-body h3 {
    font-size: 1.05rem;
  }

  .service-card--featured .service-card-body p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* כרטיס אחרון בשורה בודדת – ממורכז */
  .services-grid .service-card--featured:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
  }
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-highlights {
  list-style: none;
  margin-top: 1.5rem;
}

.about-highlights li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.about-highlights li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note--success {
  color: #6dd4a0;
}

.form-note--error {
  color: #f08080;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-item:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-item span span {
  color: var(--muted);
  font-size: 1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-branding {
    order: -1;
  }

  .hero-logo {
    max-width: min(20rem, 88vw);
  }

  .logo-img {
    max-width: min(10rem, 38vw);
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(13, 13, 15, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
}
