/* ============================================================
   WIRELESS CONCEPT — Main Stylesheet
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — matched from brand images */
  /* Image 1: deep navy blues (#001964, #05238c), Image 2: soft blue (#afc8e6) + warm beige (#dcc8b4) */
  --color-primary: #001442;
  --color-primary-light: #001e6e;
  --color-accent: #0037b3;
  --color-accent-hover: #002b8c;
  --color-accent-light: #d6e4f8;
  --color-soft-blue: #afc8e6;
  --color-beige: #dcc8b4;
  --color-beige-light: #ede6dc;
  --color-green: #10b981;
  --color-green-light: #d1fae5;
  --color-white: #ffffff;
  --color-bg: #f8f5f0;
  --color-bg-alt: #f0ebe2;
  --color-text: #1a1a2e;
  --color-text-light: #5a5560;
  --color-text-muted: #8a8490;
  --color-border: #e2dbd0;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 55, 179, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 55, 179, 0.35);
}

.btn-primary:disabled {
  background: var(--color-text-muted);
  border-color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-icon {
  font-style: normal;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 20, 66, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-highlight {
  color: var(--color-accent);
}

/* Nav Links */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  display: flex;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-white);
  color: var(--color-text);
  overflow: hidden;
}

/* Background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 55, 179, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0, 55, 179, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(0, 55, 179, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(0, 20, 66, 0.015) 2px,
      rgba(0, 20, 66, 0.015) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding: 6rem 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 55, 179, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ============================================================
   SECTIONS — Shared
   ============================================================ */

.section {
  padding: var(--section-padding);
}

.section:nth-child(even) {
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

.about-text {
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.feature-check {
  color: var(--color-green);
  font-weight: 700;
  font-size: 1rem;
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-slow);
}

.why-card:hover {
  border-color: var(--color-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.why-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.why-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.brand-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.brand-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
}

.contact-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-detail a {
  color: var(--color-accent);
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 55, 179, 0.12);
}

.form-input.error {
  border-color: #ef4444;
}

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

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-green-light);
  color: #065f46;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================================
   MAP SECTION
   ============================================================ */

.map-section {
  padding: 0 1.5rem 5rem;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #e2dbd0, #d5ccbc);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-text-muted);
  transition: all var(--transition);
}

.map-overlay-content {
  text-align: center;
  color: var(--color-text-light);
}

.map-pin {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.map-overlay-content p {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-primary);
  color: #e2dbd0;
  padding: 4rem 1.5rem 0;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--color-accent);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #a3b8e8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-slow);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays for cards */
.service-card:nth-child(1),
.why-card:nth-child(1) { animation-delay: 0ms; }
.service-card:nth-child(2),
.why-card:nth-child(2) { animation-delay: 100ms; }
.service-card:nth-child(3),
.why-card:nth-child(3) { animation-delay: 200ms; }
.service-card:nth-child(4),
.why-card:nth-child(4) { animation-delay: 300ms; }
.service-card:nth-child(5) { animation-delay: 400ms; }
.service-card:nth-child(6) { animation-delay: 500ms; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-xl);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero-trust {
    gap: 1rem;
  }

  .trust-divider:nth-child(4) {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Brands */
  .brands-grid {
    gap: 0.75rem;
  }

  .brand-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-links ul {
    align-items: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤480px)
   ============================================================ */

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
