:root {
  --navy: #302b4b;
  --navy-dark: #211d38;
  --coral: #ff7a66;
  --coral-dark: #f0654f;
  --light-bg: #f7f6fb;
  --gray-200: #e6e3f0;
  --gray-600: #6b6780;
  --text-dark: #2a2740;
  --white: #ffffff;
  --radius: 12px;
  --max-width: 1120px;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

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

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

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

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 34px;
  width: auto;
}

#main-nav {
  flex: 1;
}

#main-nav ul {
  display: flex;
  gap: 32px;
  justify-content: center;
}

#main-nav a {
  color: var(--gray-200);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

#main-nav a:hover {
  color: var(--coral);
}

.header-phone {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 8px 20px rgba(255, 122, 102, 0.35);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(33, 29, 56, 0.94) 0%, rgba(48, 43, 75, 0.9) 100%),
    url("images/fiber-patch-panel.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-200);
  margin-bottom: 36px;
}

/* Sections */
section {
  padding: 90px 0;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(48, 43, 75, 0.12);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.98rem;
}

/* About */
.about {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 3px solid var(--coral);
  box-shadow: 0 4px 16px rgba(48, 43, 75, 0.06);
}

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

.about-card p {
  color: var(--gray-600);
  font-size: 0.98rem;
}

/* Network gallery */
.network {
  background: var(--white);
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.network-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.network-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.network-photo:hover img {
  transform: scale(1.06);
}

/* Contact */
.contact {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
}

.contact .section-sub {
  color: var(--gray-200);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.2s;
}

a.contact-item:hover .contact-value {
  color: var(--coral);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  color: var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.cookie-banner p {
  font-size: 0.92rem;
  max-width: 760px;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 10px 22px;
  font-size: 0.92rem;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  #main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #main-nav.open {
    max-height: 260px;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 18px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  section {
    padding: 60px 0;
  }

  .contact-details {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}
