/* Mercury Airyy Mobility - Color Scheme */
:root {
  /* Primary Colors */
  --primary: #1B5E7E;
  --primary-dark: #0D3A52;
  --button-blue: #09436B;
  --secondary: #4A9FBF;

  /* Background Colors */
  --background: #F5F5F5;
  --surface: #FFFFFF;
  --card-background: #F3FAFF;
  --light-blue: #E0F2F7;

  /* Text Colors */
  --text-primary: #2D3E50;
  --text-secondary: #6B7280;
  --text-muted: #544C4C;

  /* Accent & Status Colors */
  --accent-orange: #FF6B35;
  --success: #10B981;
  --error: #EF4444;
  --info-icon: #64B5F6;

  /* Utility Colors */
  --divider: #E5E7EB;
  --inactive-dot: #D9D9D9;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  height: 45px;
  width: 45px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent-orange);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  background-color: rgba(255,255,255,0.2);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  line-height: 1;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-header .effective-date {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Content Card */
.content-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  margin: -1.5rem auto 2rem auto;
  max-width: 900px;
  width: calc(100% - 2rem);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

/* Section Styling */
.section {
  margin-bottom: 2rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-blue);
}

.section h3 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.section ul, .section ol {
  color: var(--text-secondary);
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.section li {
  margin-bottom: 0.4rem;
}

/* Info Box */
.info-box {
  background: var(--card-background);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.info-box.warning {
  border-left-color: var(--accent-orange);
  background: #FFF5F0;
}

.info-box.success {
  border-left-color: var(--success);
  background: #F0FDF4;
}

.info-box ul {
  margin-bottom: 0;
}

/* Contact Card */
.contact-card {
  background: var(--card-background);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  word-break: break-word;
}

.contact-item strong {
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--primary);
  word-break: break-all;
}

/* Link Cards (Home Page) */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.link-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--divider);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.link-card:active {
  transform: translateY(-2px);
}

.link-card h3 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.plan-item {
  background: var(--light-blue);
  padding: 0.875rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-background);
  font-size: 0.95rem;
}

.faq-question:hover {
  background: var(--light-blue);
}

.faq-answer {
  padding: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
  font-size: 0.95rem;
}

.faq-answer ul {
  margin-bottom: 0;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

table th, table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

table thead tr {
  background: var(--card-background);
}

table th {
  font-weight: 600;
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer a {
  color: var(--secondary);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 0.25rem;
}

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

.footer p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--button-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet */
@media (max-width: 900px) {
  .content-card {
    width: calc(100% - 1.5rem);
    margin: -1.5rem auto 1.5rem auto;
  }

  .link-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 0.6rem 0.75rem;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .logo {
    height: 40px;
    width: 40px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .page-header {
    padding: 2rem 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .content-card {
    width: calc(100% - 1rem);
    margin: -1rem auto 1rem auto;
    padding: 1.25rem;
    border-radius: 10px;
  }

  .section h2 {
    font-size: 1.15rem;
  }

  .section h3 {
    font-size: 1rem;
  }

  .link-cards {
    padding: 1rem;
    gap: 0.75rem;
    grid-template-columns: 1fr;
  }

  .link-card {
    padding: 1rem;
  }

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

  .plan-item {
    padding: 0.75rem 0.25rem;
    font-size: 0.85rem;
  }

  .info-box {
    padding: 0.875rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .faq-question {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  table {
    font-size: 0.85rem;
  }

  table th, table td {
    padding: 0.6rem 0.5rem;
  }

  .footer {
    padding: 1.25rem 0.75rem;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .header {
    padding: 0.5rem;
  }

  .logo {
    height: 36px;
    width: 36px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

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

  .page-header h1 {
    font-size: 1.3rem;
  }

  .content-card {
    width: calc(100% - 0.5rem);
    margin: -0.75rem auto 0.75rem auto;
    padding: 1rem;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .plan-item {
    font-size: 0.8rem;
    padding: 0.6rem 0.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Landscape phone */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .page-header {
    padding: 1.5rem 1rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .link-card:hover {
    transform: none;
  }

  .link-card:active {
    transform: scale(0.98);
    background: var(--card-background);
  }

  nav a {
    padding: 0.75rem 1rem;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}
