/* Watch At Home: shared styles for the Smart Network & Wi-Fi and Smart Home pages.
   Follows the homepage identity: #f5f5f5 background, white cards, green headings, Arial. */

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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a { color: #0a58ca; }

a:focus-visible {
  outline: 3px solid #0a58ca;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: #fff;
  color: #333;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: bold;
}

.skip-link:focus { top: 12px; }

/* Header and navigation */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: 64px;
  height: 64px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #333;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover { background-color: #f5f5f5; }

.site-nav a[aria-current="page"] {
  color: #1e7e34;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.page-hero {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto 10px;
  font-size: clamp(16px, 3vw, 18px);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button-whatsapp {
  background-color: #25d366;
  color: #102a1c;
}

.button-whatsapp:hover { background-color: #1fb958; }

.button-secondary {
  border: 2px solid #1e7e34;
  background-color: #fff;
  color: #1e7e34;
}

.button-secondary:hover { background-color: #f0f7f1; }

.page-hero .button { margin-top: 14px; }

/* Content sections */
.section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-size: 28px;
  line-height: 1.25;
  color: #28a745;
  text-align: center;
  margin-bottom: 20px;
}

.section h3 {
  font-size: 19px;
  line-height: 1.3;
  color: #333;
  margin: 24px 0 8px;
}

.section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 14px;
}

.section ul {
  margin: 0 0 14px 22px;
  color: #555;
}

.section li {
  font-size: 16px;
  margin-bottom: 8px;
}

.section strong { color: #333; }

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

.section-centered,
.section-action { text-align: center; }

.section-action .button { margin-top: 6px; }

/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 24px 20px;
  margin-top: 20px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-bottom: 10px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
}

.site-footer a:focus-visible { outline-color: #fff; }

.site-footer p { font-size: 14px; }

@media (max-width: 768px) {
  .page-hero { padding: 40px 16px; }
  .section {
    padding: 28px 16px;
    margin: 14px 10px;
  }
  .section h2 { font-size: 24px; }
  .section p,
  .section li { font-size: 15px; }
  .site-header-inner { padding: 6px 12px; }
  .site-nav a {
    padding: 8px;
    font-size: 14px;
  }
  .button { width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
