/* ============================================================
   EverydayMeds — Acid Reflux & Heartburn Consultation PPC Landing Page
   (acid-reflux.everydaymeds.co.uk)
   Base + Header + Banner styles. Section styles get appended as built.
   ============================================================ */

/* ---- Sofia Pro (self-hosted option) ----
   To self-host instead of using fonts.cdnfonts.com: put the files in
   assets/fonts/ and uncomment. Then remove the cdnfonts <link> in partials/head.php.

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

:root {
  --em-dark: #0B4131;        /* brand dark green */
  --em-green: #4CAF50;       /* mid green accent */
  --em-lime: #BFDF72;        /* brand lime */
  --em-lime-soft: #C5E86C;
  --em-mint: #EAF3EC;        /* pale section background */
  --em-text: #1E2A24;
  --em-text-muted: #4A5A52;
  --em-border: #E3EAE5;
  --font: 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius-pill: 999px;
  --radius-card: 14px;
  --container: 1200px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--em-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn--dark {
  background: var(--em-dark);
  color: #fff;
}
.btn--dark:hover { background: #0e5340; }
.btn--dark .btn__arrow { color: var(--em-lime); }
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 15px 28px; }
.btn:active { transform: scale(.98); }

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--em-border);
  position: relative;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo img { width: 200px; height: auto; }
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-dark);
}
.site-header__phone:hover { text-decoration: underline; }


/* ---- Header help text ---- */
.site-header__help {
  font-size: 13px;
  color: var(--em-text-muted);
}

@media (max-width: 640px) {
  .site-header__help { display: none; }
}

/* ---- Hero / Banner ---- */
.hero {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__media picture { height: 100%; } /* lets object-position crop the photo */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero__content { max-width: 600px; }

.pill-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--em-border);
  color: var(--em-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--em-dark);
  margin-bottom: 18px;
}
.hero__title-accent { color: #90B74C; }

.hero__text {
  font-size: 16px;
  color: var(--em-text-muted);
  margin-bottom: 26px;
  max-width: 440px;
}

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--em-text-muted);
}
.hero__ticks li {
  position: relative;
  padding-left: 16px;
}
.hero__ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em-lime);
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--em-mint);
  border: 1px solid #DCEADF;
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-top: 26px;
  max-width: 460px;
}
.hero__note-icon { flex-shrink: 0; margin-top: 2px; }
.hero__note p { font-size: 13px; color: var(--em-text-muted); line-height: 1.55; }
.hero__note strong { color: var(--em-dark); font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  /* Header */
  .site-header__logo img { width: 160px; }
  .site-header__actions { gap: 12px; }

  /* Hero: image moves below content */
  .hero__media {
    position: static;
    order: 2;
    height: 360px;
  }
  .hero__media img { object-position: 50% 55%; } /* keeps face and hand on chest in frame */
  .hero { display: flex; flex-direction: column; }
  .hero__inner {
    order: 1;
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .hero__content { max-width: 100%; }
  .hero__text { max-width: 100%; }
  .hero__note { max-width: 100%; }
}

@media (max-width: 480px) {
  .btn--lg { width: 100%; justify-content: center; font-size: 15px; }
  .btn--sm { padding: 8px 12px; font-size: 12px; gap: 6px; }
  .site-header__logo img { width: 128px; }
  .site-header__actions { gap: 10px; }
  .hero__title { font-size: 30px; }
  .hero__media { height: 210px; }
}

/* ---- Banner: eyebrow, wide CTA, pill chips ---- */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--radius-pill);
  padding: 6px 13px 6px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--em-dark);
  line-height: 1.2;
}
.hero__chips svg { flex-shrink: 0; }

.hero__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--em-green);
  margin-bottom: 14px;
}
.hero__text { max-width: 500px; }
.hero__title { text-wrap: balance; }
.hero .btn--lg {
  min-width: 340px;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero .btn--lg { min-width: 0; }
}
@media (max-width: 380px) {
  .hero__chips li { font-size: 12px; padding: 5px 11px 5px 7px; }
}
/* ---- Trust strip ---- */
.trust {
  background: #F6F2EA; /* warm cream */
  padding: 44px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.trust__item + .trust__item { border-left: 1px solid #E6E0D2; }
.trust__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 14px;
}
.trust__item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--em-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}
.trust__item p {
  font-size: 12.5px;
  color: var(--em-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* tablet: two columns, last item centred across both */
@media (max-width: 900px) {
  .trust { padding: 36px 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .trust__item:nth-child(odd) { border-left: 0; }
  .trust__item:last-child { grid-column: 1 / -1; border-left: 0; max-width: 360px; justify-self: center; }
}

/* phone: one column, icon beside the text */
@media (max-width: 560px) {
  .trust { padding: 28px 0; }
  .trust__grid { grid-template-columns: 1fr; gap: 0; }
  .trust__item,
  .trust__item:last-child {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding: 16px 0;
    border-left: 0;
    max-width: none;
    justify-self: stretch;
  }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid #E6E0D2; }
  .trust__icon { margin-bottom: 0; width: 38px; height: 38px; }
  .trust__item h3 { margin-bottom: 3px; }
}
/* ---- Shared section elements ---- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--em-green);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--em-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-intro {
  font-size: 15px;
  color: var(--em-text-muted);
  max-width: 520px;
}

/* ---- How it works ---- */
.hiw {
  background: #E6F5ED;
  padding: 72px 0;
}
.hiw__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}
.hiw__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hiw__step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(11, 65, 49, .05);
}
.hiw__step-num {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--em-dark);
  line-height: 1.3;
  position: relative;
  padding-bottom: 6px;
}
.hiw__step-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--em-lime);
}
.hiw__step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--em-dark);
  margin-bottom: 4px;
}
.hiw__step-body p {
  font-size: 13.5px;
  color: var(--em-text-muted);
  line-height: 1.55;
}
.hiw__media { margin: 0; }
.hiw__media img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.hiw__media figcaption {
  font-size: 12.5px;
  color: var(--em-text-muted);
  margin-top: 12px;
}

@media (max-width: 900px) {
  .hiw { padding: 48px 0; }
  .hiw__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 28px;
  }
  .hiw__media {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }
  .hiw__media figcaption { text-align: center; }
}

@media (max-width: 480px) {
  .hiw__step { padding: 16px 18px; gap: 16px; }
  .hiw__step-num { font-size: 20px; }
}
.hiw__media img { max-width: 520px; margin-left: auto; }
@media (max-width: 900px) { .hiw__media img { max-width: 100%; margin: 0 auto; } }

/* ---- Common symptoms + safety + regulatory strip ---- */
.nowrap { white-space: nowrap; }
.symptoms {
  background: #fff;
  padding: 72px 0;
}
.symptoms__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.symptoms__lead {
  font-size: 14.5px;
  color: var(--em-text-muted);
  margin-top: 4px;
}
.symptoms__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.symptoms__list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--em-dark);
  line-height: 1.45;
}
.symptoms__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23B6DA71'/%3E%3Cpath d='m4.6 8.2 2.2 2.2 4.6-4.8' stroke='%230B4131' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* round icon used across this section */
.symptoms__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.symptoms__icon--white { background: #fff; }
.symptoms__icon--lime { background: #F0FDD4; }

.symptoms__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #E6F5ED;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-top: 26px;
}
.symptoms__note p {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--em-dark);
  line-height: 1.6;
}

/* safety card */
.safety {
  background: #F2F7F4;
  border: 1px solid #E5EDE8;
  border-radius: 16px;
  padding: 26px 26px 24px;
}
.safety__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--em-dark);
  line-height: 1.3;
  margin-bottom: 18px;
}
.safety__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.safety__row--divided {
  border-top: 1px solid #DCE6E0;
  margin-top: 20px;
  padding-top: 20px;
}
.safety h3,
.gp-note h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--em-dark);
  line-height: 1.4;
  margin: 5px 0 8px;
}
.safety__bullets {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.safety__bullets li {
  font-size: 13.5px;
  color: var(--em-dark);
  line-height: 1.5;
}
.safety__bullets li::marker { color: var(--em-dark); }
.safety p,
.gp-note p {
  font-size: 13.5px;
  color: var(--em-text-muted);
  line-height: 1.6;
}

/* GP notification */
.gp-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F0FDD4;
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 16px;
}
.gp-note p { color: var(--em-dark); }

/* regulatory strip */
.regulated {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: #E6F5ED;
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 40px;
}
.regulated__icon { width: 46px; height: 46px; }
.regulated__copy h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--em-dark);
  margin-bottom: 6px;
}
.regulated__copy p {
  font-size: 13.5px;
  color: var(--em-text-muted);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}
.regulated__card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
}
.regulated__card img { width: 110px; height: auto; }
.regulated__card-body {
  border-left: 1px solid var(--em-border);
  padding-left: 18px;
}
.regulated__card-body h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--em-dark);
}
.regulated__card-body p {
  font-size: 12.5px;
  color: var(--em-text-muted);
  margin-top: 2px;
}
.regulated__card-body a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--em-dark);
  margin-top: 8px;
}
.regulated__card-body a:hover { text-decoration: underline; }
.regulated__card-body a svg { display: inline-block; vertical-align: -2px; margin-left: 6px; }

@media (max-width: 1020px) {
  .regulated { grid-template-columns: auto 1fr; }
  .regulated__card { grid-column: 2; justify-self: start; }
}
@media (max-width: 900px) {
  .symptoms { padding: 48px 0; }
  .symptoms__grid { grid-template-columns: 1fr; gap: 28px; }
  .regulated { margin-top: 28px; }
}
@media (max-width: 560px) {
  .safety { padding: 22px 18px 20px; }
  .gp-note { padding: 18px; }
  .regulated { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; }
  .regulated__card { grid-column: auto; justify-self: stretch; padding: 14px 16px; gap: 14px; }
  .regulated__card img { width: 92px; }
  .regulated__card-body { padding-left: 14px; }
}
/* ---- Dark footer ---- */
.footer {
  background: var(--em-dark);
  color: #fff;
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr 1.1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer__brand img { width: 185px; height: auto; }
.footer__brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
  max-width: 280px;
}
.footer__tagline {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 22px 0 4px;
}

.footer__company h3,
.footer__col h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
}
.footer__company p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer__company strong { color: #fff; font-weight: 600; }
.footer__company p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__company p a:hover { color: var(--em-lime); }
.footer__support-title { margin-top: 20px; margin-bottom: 10px !important; }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  transition: color .15s ease;
}
.footer__contact a:hover { color: var(--em-lime); }
.footer__contact svg { color: var(--em-lime); flex-shrink: 0; }

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  transition: color .15s ease, transform .15s ease;
}
.footer__col a:hover { color: var(--em-lime); transform: translateX(3px); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0 24px;
}
.footer__bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.footer__social a:hover {
  background: var(--em-lime);
  border-color: var(--em-lime);
  color: var(--em-dark);
}

/* ---- Emergency notice ---- */
.footer__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 36px;
}
.footer__notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #B6DA71;
}
.footer__notice p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.55;
}
.footer__notice strong { color: #fff; font-weight: 600; }

/* ---- Footer responsive ---- */
@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}
@media (max-width: 640px) {
  .footer { padding-top: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-bottom: 32px; }
  .footer__brand, .footer__company { grid-column: 1 / -1; }
  .footer__brand p { max-width: 100%; }
  .footer__notice { align-items: flex-start; margin-bottom: 28px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
}
@media (max-width: 380px) {
  .footer__grid { grid-template-columns: 1fr; }
}