/*
Theme Name: Mobile Device Help
Theme URI: https://mobiledevicehelp.online/
Author: Mobile Device Help
Description: Independent advisory theme for UK mobile plan comparison and SIM-only switching services — teal/purple gradient identity on a dark navy shell.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mdh
*/

/* -------------------------------------------------- */
/* Design tokens                                       */
/* -------------------------------------------------- */
:root{
  --ink: #0F1B2E;
  --ink-2: #16233A;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --purple: #7C5CFC;
  --purple-dark: #6D4CE0;

  --bg-light: #F3F2FA;
  --bg-hero-a: #DEF6F0;
  --bg-hero-b: #ECE8FC;
  --white: #FFFFFF;

  --text-dark: #16213A;
  --text-gray: #6B7385;
  --text-gray-light: #8891A2;
  --hairline: #E6E4F1;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}

/* -------------------------------------------------- */
/* Reset / base                                        */
/* -------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1, h2, h3, h4{
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; max-width: 62ch; color: var(--text-gray); }
ul{ margin: 0; padding: 0; list-style: none; }
button, input, textarea, select{ font-family: inherit; font-size: inherit; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

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

.mono{ font-family: var(--font-mono); }

/* -------------------------------------------------- */
/* Top notice bar                                      */
/* -------------------------------------------------- */
.notice-bar{
  background: var(--ink);
  color: #AEB8C9;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px var(--gutter);
}

/* -------------------------------------------------- */
/* Site header                                         */
/* -------------------------------------------------- */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.site-branding{
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dark);
}
.site-branding .logo-dot{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  flex-shrink: 0;
}

.primary-nav ul{
  display: flex;
  gap: 30px;
}
.primary-nav a{
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-gray);
}
.primary-nav a:hover{ color: var(--text-dark); }

.header-call{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--purple));
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.header-call::before{
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.nav-toggle{ display: none; }

@media (max-width: 480px){
  .header-call{ display: none; }
}
@media (max-width: 780px){
  .primary-nav{ display: none; }
  .primary-nav.is-open{
    display: block;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 16px;
    z-index: 30;
  }
  .primary-nav.is-open ul{ flex-direction: column; gap: 4px; }
  .primary-nav.is-open a{ display: block; padding: 10px 0; }
  .site-header .container{ position: relative; }
  .nav-toggle{
    display: inline-flex;
    background: none; border: 1px solid var(--hairline);
    padding: 8px 12px; border-radius: 8px;
  }
}

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */
.hero{
  background: linear-gradient(115deg, var(--bg-hero-a) 0%, var(--bg-hero-b) 100%);
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 88px);
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-dark);
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.hero h1{
  font-size: clamp(32px, 4.2vw, 46px);
}
.hero h1 .accent-line{ color: var(--teal-dark); }
.hero-lede{
  font-size: 17px;
  color: var(--text-gray);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{ background: var(--ink-2); }
.btn-ghost{
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 4px;
  padding-right: 4px;
}
.hero-fineprint{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-gray-light);
  margin-top: 16px;
}

/* Ticket / case-reference card */
.case-ticket{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ticket-top{
  padding: 20px 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--hairline);
}
.ticket-label{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-gray-light); letter-spacing: .04em; }
.ticket-ref{ font-weight: 700; font-size: 15px; margin-top: 2px; }
.ticket-body{ padding: 16px 22px; }
.ticket-body li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--text-dark);
}
.ticket-body li .check{
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--teal);
  color: var(--white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.ticket-status{
  padding: 14px 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.ticket-status .label{ color: var(--text-gray-light); }
.ticket-status .value{ color: var(--teal-dark); font-weight: 600; }

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/* Stat strip                                          */
/* -------------------------------------------------- */
.stat-strip{
  background: var(--ink);
  padding: 26px 0;
}
.stat-strip .container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-label{
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.stat-item:nth-child(odd) .stat-label{ color: var(--teal); }
.stat-item:nth-child(even) .stat-label{ color: var(--purple); }
.stat-item .stat-sub{
  font-size: 12.5px;
  color: #8894A6;
}

@media (max-width: 600px){
  .stat-strip .container{ grid-template-columns: 1fr 1fr; row-gap: 22px; }
}

/* -------------------------------------------------- */
/* Section scaffolding                                 */
/* -------------------------------------------------- */
.section{ padding: clamp(48px, 7vw, 84px) 0; }
.section.bg-tint{ background: var(--bg-light); }
.section-head{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: end;
}
.section-kicker{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal-dark);
  letter-spacing: .04em;
}
.section-head h2{ font-size: clamp(24px, 3vw, 32px); }
.section-head .section-desc{ color: var(--text-gray); margin: 0; }

@media (max-width: 780px){
  .section-head{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/* Services                                            */
/* -------------------------------------------------- */
.service-list{ display: flex; flex-direction: column; }
.service-row{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  align-items: flex-start;
}
.service-row:last-child{ border-bottom: 1px solid var(--hairline); }
.service-num{
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
}
.service-row:nth-child(odd) .service-num{ background: var(--teal); }
.service-row:nth-child(even) .service-num{ background: var(--purple); }
.service-row h3{ font-size: 18px; margin-bottom: 6px; }
.service-row p{ color: var(--text-gray); margin-bottom: 0; }

@media (max-width: 600px){
  .service-row{ grid-template-columns: 1fr; gap: 10px; }
}

/* -------------------------------------------------- */
/* Process timeline                                    */
/* -------------------------------------------------- */
.timeline{
  position: relative;
  max-width: 640px;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 17px; top: 18px; bottom: 18px;
  width: 1px;
  background: var(--hairline);
}
.timeline-step{
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  padding-bottom: 34px;
}
.timeline-step:last-child{ padding-bottom: 0; }
.timeline-num{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  z-index: 1;
}
.timeline-step:nth-child(2n) .timeline-num{ border-color: var(--purple); color: var(--purple-dark); }
.timeline-step h3{ font-size: 16.5px; margin-bottom: 6px; }
.timeline-step p{ font-size: 14.5px; margin-bottom: 0; }

/* CTA strip */
.cta-strip{
  background: linear-gradient(120deg, var(--teal) 0%, var(--purple) 100%);
  border-radius: var(--radius);
  padding: 36px clamp(24px, 5vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h3{ color: var(--white); margin-bottom: 4px; font-size: 20px; }
.cta-strip p{ color: rgba(255,255,255,.85); margin: 0; }
.cta-strip .btn-primary{ background: var(--ink); }

/* -------------------------------------------------- */
/* Transparency section                                */
/* -------------------------------------------------- */
.transparency{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.transparency p{ font-size: 15px; }

@media (max-width: 780px){
  .transparency{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/* Legal accordion                                     */
/* -------------------------------------------------- */
.legal-accordion{ max-width: 780px; display: flex; flex-direction: column; gap: 14px; }
.legal-item{
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 0 22px;
}
.legal-item summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15.5px;
}
.legal-item summary::-webkit-details-marker{ display: none; }
.legal-item summary::after{
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-gray-light);
  flex-shrink: 0;
  margin-left: 16px;
}
.legal-item[open] summary::after{ content: "–"; }
.legal-content{ padding: 0 0 22px; color: var(--text-gray); }
.legal-content h4{ font-size: 13px; margin: 16px 0 6px; color: var(--text-dark); }
.legal-content h4:first-child{ margin-top: 0; }
.legal-content p{ font-size: 14px; }
.legal-content ul{ margin-bottom: 1em; }
.legal-content li{ padding: 3px 0 3px 18px; position: relative; font-size: 14px; }
.legal-content li::before{ content: "–"; position: absolute; left: 0; color: var(--text-gray-light); }

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: #AEB8C9;
  padding: 52px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-grid h4{
  color: var(--white);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.footer-brand{
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.footer-brand .logo-dot{
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}
.footer-grid p{ color: #8894A6; font-size: 14px; }
.footer-grid a{ text-decoration: none; color: #AEB8C9; font-size: 14px; display: block; margin-bottom: 8px; }
.footer-grid a:hover{ color: var(--teal); }
.footer-bottom{
  background: var(--ink-2);
  padding: 20px var(--gutter);
  font-size: 12.5px;
  color: #7C879B;
}
.footer-bottom .container{ padding-left: 0; padding-right: 0; }
.footer-bottom p{ margin: 0 0 6px; max-width: none; }

@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Sticky mobile call bar */
.mobile-call-bar{ display: none; }
@media (max-width: 780px){
  .mobile-call-bar{
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, var(--teal), var(--purple));
    color: var(--white);
    text-decoration: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    font-weight: 600;
    z-index: 40;
  }
  body{ padding-bottom: 54px; }
}
