/*
Theme Name: GoooMobile Informational Theme
Theme URI: https://gooomobile.online/
Author: OpenAI
Author URI: https://openai.com/
Description: A custom WordPress theme for an independent informational UK mobile network guides website. Includes auto-created pages, connected navigation, and a built-in contact form for general informational inquiries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gooomobile
*/

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --text: #172033;
  --muted: #5f6f86;
  --line: rgba(23, 32, 51, 0.10);
  --blue: #1f5fbf;
  --blue-2: #0f3f8a;
  --green: #1d8a63;
  --shadow: 0 18px 50px rgba(15, 63, 138, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
img { max-width: 100%; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(16, 52, 107, 0.08);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, #4f8fff 100%);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(31, 95, 191, 0.22);
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: rgba(31, 95, 191, 0.08);
  transform: translateY(-1px);
}

.notice-bar {
  background: linear-gradient(90deg, rgba(31,95,191,0.08), rgba(29,138,99,0.08));
  border-bottom: 1px solid rgba(31,95,191,0.08);
}
.notice-bar .container {
  padding: 0.8rem 0;
  color: var(--blue-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  padding: 4.8rem 0 2.2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.hero-panel,
.side-panel,
.card,
.feature,
.info-box,
.contact-panel,
.article,
.policy-card,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,95,191,0.12) 0%, rgba(31,95,191,0) 68%);
  pointer-events: none;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(31,95,191,0.08);
  color: var(--blue-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 1rem 0 1rem;
}
.hero p.lead,
.page-hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 1.4rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #407de0 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(31, 95, 191, 0.22);
}
.btn-primary:hover { color: #fff; }
.btn-secondary {
  background: rgba(31, 95, 191, 0.07);
  color: var(--blue-2);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 63, 138, 0.14);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.9rem;
}
.stat {
  padding: 1rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(23, 32, 51, 0.05);
}
.stat strong { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.side-panel {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-panel h3,
.card h3,
.feature h3,
.article h3,
.policy-card h3,
.contact-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.side-panel p,
.card p,
.feature p,
.article p,
.policy-card p,
.contact-panel p,
.list-clean li,
.table-wrap td,
.table-wrap th,
.page-hero p,
.copy p {
  color: var(--muted);
}
.badge-list,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid rgba(31,95,191,0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

main section {
  padding: 1.2rem 0 0.3rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.section-head p {
  max-width: 60ch;
  color: var(--muted);
  margin: 0;
}
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card,
.feature,
.article,
.policy-card,
.contact-panel,
.info-box {
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover,
.feature:hover,
.article:hover,
.policy-card:hover,
.contact-panel:hover,
.info-box:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 95, 191, 0.18);
  box-shadow: 0 26px 42px rgba(15, 63, 138, 0.10);
}
.card-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(31,95,191,0.10);
  color: var(--blue-2);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.copy {
  display: grid;
  gap: 1rem;
}
.copy h2, .copy h3 { margin: 0; letter-spacing: -0.03em; }
.copy p { margin: 0; }
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.list-clean li {
  position: relative;
  padding-left: 1.5rem;
}
.list-clean li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.page-hero {
  padding: 4rem 0 1.25rem;
}
.page-hero .hero-panel {
  padding: 2.3rem;
}
.muted-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(23,32,51,0.05);
  color: var(--text);
  font-weight: 600;
}
.table-wrap {
  overflow: auto;
  padding: 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap th,
.table-wrap td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-wrap th {
  color: var(--text);
  font-size: 0.95rem;
  background: rgba(31,95,191,0.04);
}

.cta-band {
  padding: 1.8rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(31,95,191,0.10), rgba(29,138,99,0.09));
  border-radius: var(--radius);
  border: 1px solid rgba(31,95,191,0.10);
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta-band p { margin: 0; color: var(--muted); max-width: 60ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}
label {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 0.42rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 51, 0.15);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(31,95,191,0.42);
  box-shadow: 0 0 0 4px rgba(31,95,191,0.10);
}
textarea { min-height: 160px; resize: vertical; }
.form-grid { display: grid; gap: 1rem; }

.site-footer {
  margin-top: 3rem;
  background: #0f1d35;
  color: rgba(255,255,255,0.88);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1rem;
  padding: 2.4rem 0;
}
.site-footer h3,
.site-footer h4 { margin: 0 0 0.7rem; color: #fff; }
.site-footer p,
.site-footer li,
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-bottom {
  padding: 1rem 0 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .hero-meta { grid-template-columns: 1fr; }
  .header-wrap {
    flex-wrap: wrap;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
}

@media (max-width: 640px) {
  .hero,
  .page-hero { padding-top: 3.1rem; }
  .hero-panel,
  .page-hero .hero-panel { padding: 1.5rem; }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .cta-row { flex-direction: column; }
}


.current-menu-item > a,
.current_page_item > a,
.site-nav a.current,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(31, 95, 191, 0.08);
  transform: translateY(-1px);
}
.site-main { display: block; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.message-box {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}
.message-box.success {
  background: rgba(29,138,99,0.10);
  color: #0f6b4d;
  border-color: rgba(29,138,99,0.18);
}
.message-box.error {
  background: rgba(191,31,31,0.08);
  color: #8a1c1c;
  border-color: rgba(191,31,31,0.16);
}
.entry-fallback {
  padding: 4rem 0;
}
.entry-fallback .article {
  max-width: 860px;
  margin: 0 auto;
}
.entry-fallback .entry-title {
  margin-top: 0;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3rem);
}
.entry-fallback .entry-content > *:first-child { margin-top: 0; }
