/* 
  Home Guard Telecom - Global Styles
  - Modern, security-focused design using dark blue, white, and light grey
  - Responsive layout for mobile, tablet, and desktop
*/

:root {
  --color-bg: #030b1a;
  --color-bg-alt: #0b1628;
  --color-surface: #101b2f;
  --color-surface-alt: #141f33;
  --color-primary: #1c6fe6;
  --color-primary-soft: rgba(28, 111, 230, 0.18);
  --color-primary-light: #4b8ff0;
  --color-accent: #19c1c8;
  --color-border: #29354a;
  --color-text: #f4f7ff;
  --color-text-muted: #a1aec6;
  --color-danger: #ff6b6b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 8px 20px rgba(0, 0, 0, 0.35);

  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #071230 0, #020617 52%, #000 100%);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

main {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
  top: 16px;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(3, 13, 33, 0.96), rgba(3, 13, 33, 0.9) 60%, rgba(3, 13, 33, 0.7) 100%);
  border-bottom: 1px solid rgba(80, 112, 190, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.logo-image {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: #fff;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 141, 255, 0.6);
  background: radial-gradient(circle at top left, rgba(25, 193, 200, 0.09), rgba(12, 26, 65, 0.9));
  color: #f9fbff;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: radial-gradient(circle at top left, rgba(25, 193, 200, 0.18), rgba(12, 26, 65, 1));
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(6, 20, 46, 0.85);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e6edff;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 72vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(28, 111, 230, 0.35), transparent 60%),
              radial-gradient(circle at 90% 10%, rgba(25, 193, 200, 0.25), transparent 50%),
              linear-gradient(135deg, rgba(4, 7, 23, 0.95), rgba(2, 6, 23, 0.97));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 1.25rem 4.25rem;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.hero-text p {
  max-width: 32rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.trust-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 170, 255, 0.6);
  background: rgba(3, 14, 37, 0.9);
  color: #e6edff;
}

.hero-side-card {
  background: rgba(7, 18, 50, 0.92);
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(77, 120, 217, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-side-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.hero-side-card ul {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.hero-side-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(82, 113, 179, 0.6);
}

.hero-side-card li:last-child {
  border-bottom: none;
}

.status-label {
  color: var(--color-text-muted);
}

.status-value {
  padding: 0.16rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 212, 180, 0.65);
  color: #bbf7d0;
  background: rgba(5, 46, 22, 0.8);
  font-size: 0.78rem;
}

.status-value.status-ok {
  border-color: rgba(74, 222, 128, 0.7);
}

.link-inline {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  text-decoration: none;
}

.link-inline:hover,
.link-inline:focus-visible {
  text-decoration: underline;
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(5, 13, 36, 0.98), rgba(3, 8, 25, 1));
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section-grid.align-center {
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 1.2rem;
}

.feature-item {
  background: rgba(11, 20, 49, 0.95);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(43, 76, 146, 0.7);
  box-shadow: var(--shadow-subtle);
}

.feature-item h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: rgba(12, 21, 49, 0.96);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42, 75, 144, 0.8);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.card-body h3,
.card-body h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: rgba(7, 13, 33, 0.98);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(44, 74, 138, 0.85);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.stats-panel {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  background: rgba(5, 13, 33, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(61, 108, 210, 0.85);
  padding: 0.9rem 0.95rem;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonial {
  margin-top: 1.5rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
}

.testimonial-quote {
  font-style: italic;
  margin: 0 0 0.5rem;
}

.testimonial-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.trust-image-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(60, 119, 210, 0.9);
  box-shadow: var(--shadow-soft);
}

.trust-image-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.badge-overlay {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(72, 138, 255, 0.9);
  font-size: 0.78rem;
}

.section-cta-main {
  background: radial-gradient(circle at top left, rgba(25, 193, 200, 0.12), rgba(4, 12, 34, 1));
}

.cta-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-main-inner p {
  color: var(--color-text-muted);
  margin: 0.3rem 0 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Page hero (inner pages) */

.page-hero {
  padding: 3.2rem 0 2.4rem;
  background: linear-gradient(135deg, rgba(11, 20, 49, 0.98), rgba(16, 41, 92, 0.98));
  border-bottom: 1px solid rgba(68, 110, 200, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.page-hero p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 36rem;
}

/* Services grid page */

.services-grid {
  margin-top: 0.75rem;
}

.service-card .checklist {
  margin-top: 0.7rem;
}

/* Forms */

.contact-form {
  background: rgba(6, 14, 35, 0.97);
  border-radius: 18px;
  padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid rgba(52, 87, 162, 0.9);
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(3, 9, 28, 0.96);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 1px rgba(74, 137, 255, 0.8);
  background: rgba(3, 10, 32, 1);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

/* Validation error message */
.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4);
}

.narrow {
  max-width: 480px;
}

.contact-details h2,
.contact-details h3 {
  margin-top: 0;
}

.contact-details p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), #2b9cf0);
  border-color: rgba(136, 185, 255, 0.9);
  color: #02101b;
  box-shadow: 0 14px 30px rgba(4, 118, 255, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #4c9ff6, #37b4f3);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: rgba(151, 185, 255, 0.8);
  color: var(--color-text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(12, 24, 60, 0.95);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(10, 22, 58, 0.96);
  border-color: rgba(91, 136, 238, 0.9);
  color: #dbe7ff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(14, 30, 72, 0.98);
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(229, 241, 255, 0.9);
  color: #e5f1ff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(231, 243, 255, 0.08);
  text-decoration: none;
}

button.btn {
  font-family: inherit;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  background: radial-gradient(circle at top, #02071a 0, #01030c 50%, #000 100%);
  border-top: 1px solid rgba(57, 88, 151, 0.9);
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1.2fr));
  gap: 2.2rem;
  padding: 2.5rem 0 2rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.footer-column a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #f7fbff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(79, 112, 190, 0.9);
  font-size: 0.8rem;
  color: #d8e5ff;
}

.footer-bottom {
  border-top: 1px solid rgba(39, 59, 103, 0.95);
  padding: 0.75rem 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.footer-bottom-domain {
  opacity: 0.7;
}

/* Legal text */

.legal-text h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.legal-text p {
  margin: 0 0 0.4rem;
  color: var(--color-text-muted);
}

.legal-text ul {
  margin: 0 0 0.6rem 1.1rem;
  color: var(--color-text-muted);
}

.legal-text li {
  margin-bottom: 0.25rem;
}

/* Utilities */

.align-right {
  text-align: right;
}

/* Responsive Layouts */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    padding-top: 3.2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1.2fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 10, 30, 0.98);
    border-bottom: 1px solid rgba(48, 81, 160, 0.9);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 1.25rem 0.9rem;
    gap: 0.3rem;
  }

  .main-nav a {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 3.2rem;
    padding-bottom: 3.1rem;
  }

  .hero-side-card {
    margin-top: 0.4rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-main-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

