/* General Styles */
:root {
  --blue-primary: #1a67b0;
  --blue-dark: #0a4a8a;
  --orange-accent: #ff6b35;
  --gray-light: #f5f7fa;
  --gray-medium: #d9e2ec;
  --gray-dark: #4a5568;
  --white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-texture: #f9fafc;
  --footer-bg: #2d3748;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-texture);
  position: relative;
  overflow-x: hidden;
}

/* Subtle Noise Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', serif;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--orange-accent);
}

.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 4px;
}

.btn-primary {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline-primary {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-outline-primary:hover {
  background-color: var(--blue-primary);
  color: var(--white);
}

.btn-accent {
  background-color: var(--orange-accent);
  border-color: var(--orange-accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #e55a24;
  border-color: #e55a24;
}

/* Header Styles */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand img {
  height: 45px;
}

.navbar-item {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar-burger {
  height: 4rem;
  width: 4rem;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-body {
  padding: 4rem 1.5rem;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-body {
    padding: 6rem 1.5rem;
  }
}

/* Features Section */
.features-section {
  padding: 4rem 1.5rem;
  background-color: var(--white);
}

.feature-item {
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  background-color: var(--white);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  padding: 4rem 1.5rem;
  background-color: var(--gray-light);
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
  padding: 4rem 1.5rem;
  background-color: var(--white);
}

.service-card {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  background-color: var(--white);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: var(--orange-accent);
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 1.5rem;
  background-color: var(--gray-light);
}

.testimonial-card {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  background-color: var(--white);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: var(--gray-medium);
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
}

.testimonial-author-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
  padding: 4rem 1.5rem;
  background-color: var(--white);
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .title {
  margin-bottom: 2rem;
}

.contact-info {
  padding: 2rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--blue-primary);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-info-content h4 {
  margin-bottom: 0.5rem;
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer a {
  color: var(--gray-medium);
}

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

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--orange-accent);
}

/* Page Header */
.page-header {
  padding: 6rem 1.5rem 4rem;
  background-color: var(--blue-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--white);
}

.page-header p {
  opacity: 0.9;
  max-width: 700px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

.modal-card-foot {
  flex-direction: column;
  gap: 10px;
}

.cookie-settings-modal {
  z-index: 1001;
}

.cookie-consent.is-active {
  display: block;
}

.cookie-settings-modal {
  display: none;
}

.cookie-settings-modal.is-active {
  display: flex;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Testing Page Styles */
.testing-process {
  padding: 4rem 1.5rem;
}

.step-card {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  background-color: var(--white);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background-color: var(--blue-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Coverage Maps Page */
.coverage-maps {
  padding: 4rem 1.5rem;
}

.map-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.map-info {
  padding: 1.5rem;
  background-color: var(--white);
}

/* Network Testing Page */
.network-testing {
  padding: 4rem 1.5rem;
}

.test-result-card {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  background-color: var(--white);
}

.test-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.test-meta-item {
  display: flex;
  flex-direction: column;
}

.test-meta-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.test-meta-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.performance-meter {
  height: 10px;
  background-color: var(--gray-medium);
  border-radius: 5px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.performance-value {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--blue-primary);
  border-radius: 5px;
}

/* Thank you page */
.thank-you-section {
  padding: 6rem 1.5rem;
  text-align: center;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--blue-primary);
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .reverse-columns-mobile {
    flex-direction: column-reverse;
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-item, .service-card, .testimonial-card, .step-card, .test-result-card {
    padding: 1.5rem;
  }
  
  .contact-form, .contact-info {
    padding: 1.5rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .page-header {
    padding: 4rem 1.5rem 2rem;
  }
  
  .test-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Telephone Input Styles */
.iti {
  width: 100%;
}

.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}

/* IntlTelInput Custom Styles */
.iti {
  display: block;
  margin-bottom: 1.5rem;
}

.iti__country-list {
  max-height: 200px;
}

/* Map */
#map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
}

#map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Subtle transitions for scroll transforms */
.transform-on-scroll {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--blue-primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* Added for privacy policy and terms pages */
.legal-content {
  padding: 4rem 1.5rem;
  background-color: var(--white);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.update-date {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Table styles for coverage information */
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.coverage-table th,
.coverage-table td {
  padding: 1rem;
  border: 1px solid var(--gray-medium);
}

.coverage-table th {
  background-color: var(--blue-primary);
  color: var(--white);
  font-weight: 500;
}

.coverage-table tr:nth-child(even) {
  background-color: var(--gray-light);
}

.coverage-table td:first-child {
  font-weight: 500;
}

/* Compatibility list styles */
.compatibility-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.compatibility-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.compatibility-brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--blue-primary);
}

.compatibility-models {
  flex: 1;
}

.compatibility-models ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.compatibility-status {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-medium);
  display: flex;
  align-items: center;
}

.status-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.status-full {
  color: #22c55e;
}

.status-partial {
  color: #f59e0b;
}

.status-none {
  color: #ef4444;
}