/* Presentation Clickers stylesheet */

:root {
  --navy: #16233F;
  --navy-2: #1F3159;
  --navy-soft: #2A3F70;
  --green: #1FAE64;
  --green-dark: #158C50;
  --teal: #2FC1B1;
  --teal-dark: #1F9A8D;
  --cream: #FBF7F0;
  --panel: #FFFFFF;
  --ink: #1E2436;
  --muted: #626A7E;
  --border: #E7E1D6;
  --gold: #F5B942;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 30px -14px rgba(22, 35, 63, 0.28);
  --shadow-sm: 0 6px 16px -8px rgba(22, 35, 63, 0.22);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 60px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(47, 193, 177, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: inherit; color: var(--navy); line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--cream); border-color: rgba(251, 247, 240, 0.55); }
.btn-outline:hover { background: rgba(251, 247, 240, 0.12); color: #fff; border-color: #fff; }

.btn-card { background: var(--green); color: #fff; width: 100%; }
.btn-card:hover { background: var(--green-dark); color: #fff; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 35, 63, 0.97);
  backdrop-filter: blur(6px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand-mark { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark img { width: 36px; height: 36px; }
.brand-mark .brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(251, 247, 240, 0.86);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* hero */
.hero {
  background: radial-gradient(circle at 82% -10%, rgba(47,193,177,0.28), transparent 55%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 62%, var(--navy-soft) 100%);
  color: var(--cream);
  padding: 76px 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-tagline {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero h1 { color: #fff; }
.hero-intro { color: rgba(251, 247, 240, 0.82); font-size: 1.08rem; max-width: 54ch; margin: 18px 0 32px; }

.hero-art {
  background: rgba(251, 247, 240, 0.06);
  border: 1px solid rgba(251, 247, 240, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-art-inner {
  background: linear-gradient(150deg, rgba(31,174,100,0.18), rgba(47,193,177,0.14));
  border-radius: var(--radius-md);
  padding: 34px 24px;
  text-align: center;
}
.hero-art-inner img { width: 96px; height: 96px; margin: 0 auto 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.hero-stats div { background: rgba(251,247,240,0.06); border-radius: var(--radius-sm); padding: 14px 6px; min-width: 0; }
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--green); }
.hero-stats span { font-size: 0.74rem; color: rgba(251,247,240,0.75); white-space: nowrap; }

/* advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.advantage-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--teal-dark));
  color: #fff; font-size: 1.4rem; margin-bottom: 18px;
}
.advantage-card p { color: var(--muted); }

/* products */
.products-section { background: var(--panel); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-media {
  background: #fff;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-bottom: 1px solid var(--border);
}
.product-media img { max-height: 176px; object-fit: contain; }
.product-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 1.06rem; }
.product-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.product-card .btn-card { margin-top: 6px; }
.product-card .btn-wrap { display: flex; justify-content: center; }

/* comparison table */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
table.compare th, table.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
table.compare thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
table.compare tbody tr:nth-child(even) { background: rgba(47,193,177,0.05); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.model-cell { font-weight: 700; color: var(--navy); }
table.compare a.table-link {
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

/* brand story */
.story-section { background: var(--navy); color: var(--cream); }
.story-section h2 { color: #fff; }
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.story-grid p { color: rgba(251,247,240,0.82); }
.story-visual {
  background: rgba(251,247,240,0.06);
  border: 1px solid rgba(251,247,240,0.16);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.story-visual img { width: 100%; max-width: 220px; margin: 0 auto; }
.story-block { margin-bottom: 26px; }
.story-block:last-child { margin-bottom: 0; }
.story-block h3 { color: #fff; }

/* reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.review-card .stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
.review-card p.quote { color: var(--ink); font-size: 0.96rem; }
.review-card .meta { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.review-card .meta span { display: block; font-weight: 500; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.review-reply {
  background: rgba(47,193,177,0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--navy-2);
}
.review-reply strong { color: var(--teal-dark); }

/* footer */
.site-footer {
  background: var(--navy);
  color: rgba(251,247,240,0.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(251,247,240,0.14);
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: rgba(251,247,240,0.72); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--green); }
.footer-brand .brand-mark { margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(251,247,240,0.55);
}

/* back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); }

/* tablet */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* mobile */
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-2);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; border-top: 1px solid rgba(251,247,240,0.1); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: block; }

  .hero-art { order: 0; margin-top: 32px; }

  .advantages-grid { grid-template-columns: 1fr; }
  .advantage-card { text-align: center; }
  .advantage-icon { margin-left: auto; margin-right: auto; }
  .products-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }

  .btn {
    width: min(80vw, 320px);
    text-align: center;
    flex-shrink: 0;
  }
  .btn-row {
    justify-content: center;
  }
  .product-card .btn-wrap,
  .hero-cta-wrap {
    display: flex;
    justify-content: center;
  }
  .product-card .btn-wrap {
    margin-left: -22px;
    margin-right: -22px;
  }
}
