/* SnorePatch static replica: plain CSS, no frameworks */
:root {
  --blue: #233D88;
  --orange: #F26321;
  --text: #7A7A7A;
  --grey-bg: #F4F5F9;
  --peach-bg: #FEF7F4;
  --line: #DDDDDD;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h5 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.25;
  margin: 0;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Divider bar under headings */
.bar { width: 50px; height: 5px; background: var(--blue); border: 0; margin: 28px 0 32px; }
.bar.center { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header { padding-top: 20px; position: relative; z-index: 10; }
.header-box {
  max-width: var(--max);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 20px;
}
.logo img { width: 240px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block;
  padding: 12px 13px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--orange); }
.nav a.active { background: var(--blue); color: #fff; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 50px 0 80px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(32px, 3.6vw, 42px); margin-top: 30px; }
.hero p { margin: 0 0 20px; }
.hero ul { margin: 0 0 20px; padding-left: 35px; }
.hero li { font-weight: 700; }
.hero .footnote { font-style: italic; }
.hero-icons { display: flex; gap: 26px; margin-top: 40px; padding-left: 20px; }
.hero-icons img { width: 100px; height: 100px; }
.hero-media { margin-top: -20px; }
.hero-media .amazon { display: block; width: 165px; margin: 60px auto 0; }
.hero-media .amazon img { border-radius: 8px; }

/* ---------- Breathing types ---------- */
.breathing { background: var(--grey-bg); display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 80px; }
.breathing .photo { background: url("../images/breathing-woman.jpg") center / cover no-repeat; min-height: 420px; }
.breathing .content { padding: 80px 80px 80px 60px; max-width: 640px; }
.breathing h2 { font-size: 35px; }
.type { display: flex; gap: 25px; align-items: flex-start; }
.type img { width: 38%; flex-shrink: 0; }
.type h3 { color: var(--orange); font-size: 22px; text-transform: uppercase; margin: 0 0 10px; }
.type p { margin: 0; }
.type + .type { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }

/* ---------- Benefits ---------- */
.benefits { text-align: center; padding-bottom: 40px; }
.benefits h2 { font-size: 35px; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 10px; }
.benefit {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  padding: 35px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit p { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 40px auto 0; }

/* ---------- Directions ---------- */
.directions { background: var(--peach-bg); display: grid; grid-template-columns: 49% 51%; }
.directions .content { padding: 80px; }
.directions h2 { font-size: 35px; }
.steps { list-style: none; margin: 0; padding: 0; color: #54595F; line-height: 25px; }
.steps li { display: flex; gap: 10px; }
.steps li + li { margin-top: 25px; }
.steps svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 5px; fill: var(--orange); }
.directions .photo { background: url("../images/directions-man.jpg") center / cover no-repeat; min-height: 420px; }

/* ---------- Caution ---------- */
.caution { background: #000; color: #fff; text-align: center; padding: 30px 0; font-size: 15px; }
.caution h5 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.caution p { margin: 0; }

/* ---------- Contact page ---------- */
.contact { padding: 90px 20px 110px; display: flex; justify-content: center; }
.contact-card {
  width: 100%;
  max-width: 330px;
  min-height: 377px;
  border: 1px solid #C7CDDE;
  padding: 45px 30px 45px 33px;
  font-family: "Red Hat Display", Arial, sans-serif;
}
.contact-card h1 { font-family: inherit; font-weight: 500; font-size: 20px; color: #243D88; margin-bottom: 14px; }
.contact-card p { font-size: 14px; line-height: 1.6; color: #5C6680; margin: 0 0 30px; }
.contact-email { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-email svg { width: 17px; height: 17px; flex-shrink: 0; }
.contact-email a { color: #1a6bb8; }

/* ---------- Footer ---------- */
.site-footer { padding: 25px 0; }
.site-footer .container { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; gap: 20px; }
.site-footer img { width: 220px; margin: 0 auto; }
.site-footer a, .site-footer address { color: #333; font-style: normal; font-size: 15px; line-height: 1.2; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.to-top.show { opacity: 0.85; pointer-events: auto; }
.to-top:hover { opacity: 1; }

/* ---------- Tablet and mobile ---------- */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 20px; right: 20px; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 24px; border-top: 1px solid #eee; }
  .site-header { padding: 20px 20px 0; }
  .header-box { position: relative; padding: 16px 20px; }
  .logo img { width: 190px; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-top: 0; }
  .hero-media .amazon { margin-top: 30px; }
  .hero-icons { justify-content: center; padding-left: 0; }

  .breathing, .directions { grid-template-columns: 1fr; }
  .breathing .content, .directions .content { padding: 50px 30px; max-width: none; }
  .breathing .photo, .directions .photo { min-height: 320px; }
}

@media (max-width: 640px) {
  .hero h1, .breathing h2, .benefits h2, .directions h2 { font-size: 30px; }
  .hero-icons { gap: 14px; }
  .hero-icons img { width: 80px; height: 80px; }
  .type { flex-direction: column; }
  .type img { width: 55%; margin: 0 auto; }
  .type h3, .type p { text-align: center; }
  .benefit-grid { grid-template-columns: 1fr; margin: 0; }
  .site-footer .container { grid-template-columns: 1fr; }
}

/* Amazon button sits under the picture on desktop, after the text on mobile */
.hero-text .amazon { display: block; width: 165px; margin: 40px auto 0; }
.hero-text .amazon img { border-radius: 8px; }
.mobile-only { display: none !important; }
@media (max-width: 1024px) {
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}
