/* ============ Design tokens ============ */
:root {
  --navy-900: #0b1e33;
  --navy-800: #0f2942;
  --navy-700: #16395c;
  --blue-600: #2f6fed;
  --blue-700: #1f56c9;
  --teal-500: #17b7a3;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #101828;
  --text-muted: #64748b;
  --danger: #d92d20;
  --success: #12805c;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #eef1f6; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 32px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:disabled { background: #93b4f7; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { background: #eef2f8; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f4b4ac; }
.btn-danger:hover { background: #fef3f2; }
.btn-small { padding: 7px 12px; font-size: 0.85rem; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }
.link-arrow { font-weight: 600; }

/* ============ Partner banner ============ */
.partner-banner { background: var(--teal-500); }
.partner-banner-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 24px; color: #06342e; font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
}
.partner-banner-inner:hover { text-decoration: none; background: rgba(255,255,255,0.12); }
.partner-banner-logo { display: block; height: 20px; width: auto; max-width: 140px; object-fit: contain; }
.partner-banner-arrow { transition: transform 0.15s ease; }
.partner-banner-inner:hover .partner-banner-arrow { transform: translateX(3px); }

/* ============ Header ============ */
.site-header { background: var(--navy-900); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px;
}
.brand-name { font-weight: 700; font-size: 1.1rem; }
/* No height/width cap on purpose — renders at whatever size the uploaded
   file is. Resize the source image before uploading if you want it bigger
   or smaller. max-width is just a safety net so an oversized upload can't
   overflow the page horizontally, not a stylistic size choice. */
.brand-logo-img { display: block; max-width: 100%; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: #cbd5e1; font-weight: 500; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav .btn { color: #fff; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(circle at top right, var(--navy-700), var(--navy-900) 60%),
    url('/public/img/circuit-pattern.svg');
  background-repeat: no-repeat, repeat;
  background-size: cover, 160px 160px;
  color: #fff;
  padding: 88px 0 72px;
  text-align: center;
}
.hero h1 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.hero-sub { color: #cbd5e1; font-size: 1.15rem; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ============ Icon badges (services, infrastructure highlights) ============ */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: #fff; margin-bottom: 14px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge-sm { width: 40px; height: 40px; border-radius: 9px; margin-bottom: 0; }
.icon-badge-sm svg { width: 20px; height: 20px; }

/* ============ Infrastructure highlights ============ */
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlight-item { text-align: center; }
.highlight-item .icon-badge { margin-left: auto; margin-right: auto; }
.highlight-item h3 { font-size: 1rem; margin-bottom: 4px; }
.highlight-item p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============ Cards / grids ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-location h3 { color: var(--blue-700); }
.location-photo { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ Content pages ============ */
.page-narrow { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.prose h1, .prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { text-decoration: underline; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1em 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.prose th { background: var(--navy-900); color: #fff; font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: #f5f8ff; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ============ Order form ============ */
.page-order { padding-top: 40px; padding-bottom: 64px; }
.page-order > p.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; }

.order-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; margin: 24px 0 32px; }
.order-add-panel, .order-summary-panel { position: sticky; top: 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.checkbox-field label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-field input { width: auto; }

.option-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.option-group legend { font-weight: 600; font-size: 0.85rem; padding: 0 6px; color: var(--navy-800); }
.option-choice { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.92rem; }
.option-choice input { width: auto; }

.price-preview { font-weight: 700; font-size: 1.05rem; color: var(--navy-900); margin: 14px 0; }

.order-summary-panel h2 { margin-bottom: 12px; }
#order-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.order-item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fafcff;
}
.order-item-title { font-weight: 600; font-size: 0.92rem; }
.order-item-price { text-align: right; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.remove-item-btn {
  background: none; border: none; color: var(--danger); font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}
.order-totals { border-top: 2px solid var(--navy-900); padding-top: 12px; }
.order-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 1rem; }
.order-total-row strong { font-size: 1.1rem; }

.customer-form { margin-top: 8px; }
.form-error {
  background: #fef3f2; color: var(--danger); border: 1px solid #f4b4ac;
  border-radius: 8px; padding: 10px 14px; font-size: 0.9rem;
}
.form-success {
  background: #ecfdf3; color: var(--success); border: 1px solid #a9e6c4;
  border-radius: 8px; padding: 10px 14px; font-size: 0.9rem;
}

.pricing-reference { margin-top: 56px; }
.pricing-block { margin-bottom: 40px; }
.pricing-block-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pricing-block-heading h3 { margin: 0; }
.table-scroll { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; white-space: nowrap; }
.pricing-table th { background: var(--navy-900); color: #fff; font-weight: 600; }
.pricing-table td:first-child, .pricing-table th:first-child { white-space: normal; min-width: 200px; }
.svc-name { font-weight: 600; }
.pricing-table tbody tr:hover { background: #f5f8ff; }

.order-success { text-align: center; padding-top: 64px; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: #cbd5e1; margin-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 48px 24px 24px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 24px; font-size: 0.8rem; color: #94a3b8; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .order-add-panel, .order-summary-panel { position: static; }
  .field-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; }
  h1 { font-size: 1.75rem; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .highlights-grid { grid-template-columns: 1fr; }
}
