/* ============================================================
   BOTTLENECK MARKETING SITE — STYLES
   Fonts: Oswald (headings), Barlow (body)
   Colours: #F5F2ED bg, #1a1a1a text, #2E6DA4 accent (steel blue)
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #F5F2ED;
  color: #1a1a1a;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, .footer__brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--black {
  background-color: #F5F2ED;
}

.section--dark {
  background-color: #ffffff;
}

/* ---- Shared section headings ---- */
.section__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 12px;
}

.section__heading::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #2E6DA4;
  margin: 0 auto 16px;
}

.section__sub {
  font-size: 1.1rem;
  color: #777777;
  text-align: center;
  margin-bottom: 56px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn--orange {
  background-color: #2E6DA4;
  color: #ffffff;
  border-color: #2E6DA4;
}

.btn--orange:hover {
  background-color: #245a8a;
  border-color: #245a8a;
}

.btn--outline {
  background-color: transparent;
  color: #1a1a1a;
  border-color: #aaaaaa;
}

.btn--outline:hover {
  border-color: #2E6DA4;
  color: #2E6DA4;
}

/* ---- Fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV BAR
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #F5F2ED;
  border-bottom: 1px solid #ddd8d0;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 48px;
}

.site-nav__logo-link {
  display: flex;
  align-items: center;
}

.site-nav__logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: #555555;
  transition: color 0.2s;
  text-decoration: none;
}

.site-nav__link:hover {
  color: #1a1a1a;
}

.site-nav__link--cta {
  color: #2E6DA4;
  font-weight: 600;
}

.site-nav__link--cta:hover {
  color: #245a8a;
}

.site-nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Mobile dropdown */
.site-nav__mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #EAE6DF;
  border-top: 1px solid #ddd8d0;
  padding: 8px 0;
}

.site-nav__mobile-menu.open {
  display: flex;
}

.site-nav__mobile-link {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: #555555;
  padding: 14px 32px;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav__mobile-link:hover {
  color: #1a1a1a;
  background-color: #ddd8d0;
}

.site-nav__mobile-link--cta {
  color: #2E6DA4;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background-color: #F5F2ED;
  background-image:
    radial-gradient(ellipse at center, #EDE9E2 0%, #F5F2ED 70%),
    linear-gradient(rgba(46, 109, 164, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  padding-top: 64px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Slogan */
.hero__slogan {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* One-liner */
.hero__oneliner {
  font-size: 1.2rem;
  color: #777777;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ============================================================
   SECTION 2 — THE PROBLEM
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pain-card {
  background-color: #F5F2ED;
  border: 1px solid #ddd8d0;
  border-radius: 4px;
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.2s;
}

.pain-card:hover {
  border-color: #2E6DA4;
}

.pain-card__icon {
  margin-bottom: 16px;
}

.pain-card__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.pain-card__desc {
  font-size: 0.95rem;
  color: #777777;
  line-height: 1.6;
}

/* ============================================================
   SECTION 3 — HOW IT WORKS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}

.step__number {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #2E6DA4;
  line-height: 1;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.step__desc {
  font-size: 0.95rem;
  color: #777777;
  line-height: 1.6;
}

.steps__connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  border-top: 2px dashed #2E6DA4;
  opacity: 0.4;
  margin-top: 28px;
  align-self: flex-start;
}

/* ============================================================
   SECTION 4 — DEMO
   ============================================================ */
.demo-intro {
  max-width: 600px;
  margin: 0 auto 28px;
  text-align: center;
}

.demo-intro__text {
  font-size: 1rem;
  color: #777777;
  line-height: 1.6;
}

.demo-frame-wrap {
  border: 1px solid #ddd8d0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-frame {
  width: 100%;
  height: 820px;
  border: none;
  display: block;
}

/* ============================================================
   SECTION 5 — PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid #ddd8d0;
  border-radius: 4px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pricing-card--featured {
  border-color: #2E6DA4;
  background-color: #EBF2F9;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2E6DA4;
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 12px;
}

.pricing-card__price {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 1.2rem;
  font-weight: 400;
  color: #777777;
}

.pricing-card__gst {
  font-size: 0.8rem;
  color: #999999;
  margin-bottom: 28px;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__features li {
  font-size: 0.95rem;
  color: #555555;
  padding-left: 18px;
  position: relative;
}

.pricing-card__features li::before {
  content: '·';
  color: #2E6DA4;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #F0ECE5;
  border-top: 1px solid #ddd8d0;
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__brand-slogan {
  font-size: 0.85rem;
  color: #888888;
  font-family: 'Barlow', sans-serif;
}

.footer__link {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2E6DA4;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #245a8a;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: #999999;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 780px) {
  /* Nav */
  .site-nav__inner {
    padding: 0 24px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__hamburger {
    display: block;
  }

  .section {
    padding: 48px 0;
  }

  .section__sub {
    margin-bottom: 36px;
  }

  /* Pain grid — 1 column */
  .pain-grid {
    grid-template-columns: 1fr;
  }

  /* Steps — vertical */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step {
    max-width: 100%;
    padding: 0;
  }

  .steps__connector {
    display: none;
  }

  /* Pricing — 1 column */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero__slogan {
    font-size: 1.8rem;
  }

  .hero__oneliner {
    font-size: 1rem;
  }

  .demo-frame {
    height: 1100px;
  }
}

/* ============================================================
   QUOTE CART PANEL
   ============================================================ */

/* Body scroll lock when panel open */
.wc-body-lock {
  overflow: hidden;
}

/* ── FAB ── */
.wc-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: none; /* shown via JS when cart has items */
  align-items: center;
  gap: 10px;
  background: #D63031;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(214, 48, 49, 0.40);
  transition: background 0.15s, transform 0.1s;
}

.wc-fab:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.wc-fab__icon {
  font-size: 16px;
  line-height: 1;
}

.wc-fab__badge {
  background: #fff;
  color: #D63031;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Overlay ── */
.wc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.wc-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Panel ── */
.wc-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
}

.wc-panel--open {
  transform: translateX(0);
}

.wc-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #D63031;
  color: #fff;
  flex-shrink: 0;
}

.wc-panel__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wc-panel__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.wc-panel__close:hover {
  opacity: 1;
}

.wc-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Cart items ── */
.wc-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.wc-item {
  background: #F5F2ED;
  border-radius: 6px;
  padding: 14px 16px;
}

.wc-item__name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wc-item__lines {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.wc-item__lines li {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: #555;
  padding: 1px 0;
}

.wc-item__lines li::before {
  content: '· ';
  color: #2E6DA4;
}

.wc-item__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.wc-item__remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  float: right;
  transition: color 0.15s;
}
.wc-item__remove:hover {
  color: #D63031;
}

.wc-item__price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2E6DA4;
}

.wc-item__gst {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  color: #888;
  font-weight: 400;
}

.wc-item__reconfig {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: #2E6DA4;
  text-decoration: none;
}

.wc-item__reconfig:hover {
  text-decoration: underline;
}

/* ── Total ── */
.wc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #ddd8d0;
  border-bottom: 1px solid #ddd8d0;
  margin-bottom: 20px;
}

.wc-total__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #555;
}

.wc-total__value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* ── Form ── */
.wc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wc-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wc-form__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.wc-required {
  color: #c0392b;
}

.wc-form__input {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #F5F2ED;
  border: 1px solid #ddd8d0;
  border-radius: 4px;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.wc-form__input:focus {
  outline: none;
  border-color: #2E6DA4;
}

.wc-demo-note {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* ── Submit ── */
.wc-submit {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: #2E6DA4;
  border: none;
  border-radius: 4px;
  padding: 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 10px;
}

.wc-submit:hover:not(:disabled) {
  filter: brightness(0.85);
}

.wc-submit:disabled {
  cursor: not-allowed;
}

.wc-status {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: #c0392b;
  text-align: center;
  min-height: 20px;
}

/* ── Empty / success states ── */
.wc-empty {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  text-align: center;
  margin-top: 32px;
}

.wc-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 16px;
  text-align: center;
}

.wc-success__icon {
  font-size: 2.5rem;
  color: #27ae60;
  margin-bottom: 16px;
}

.wc-success__msg {
  font-family: 'Oswald', sans-serif;
  font-size: 1.125rem;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.wc-success__sub {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8125rem;
  color: #777;
  line-height: 1.6;
  max-width: 280px;
}

/* ── Mobile: slide up from bottom ── */
@media (max-width: 540px) {
  .wc-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .wc-panel--open {
    transform: translateY(0);
  }

  .wc-fab {
    bottom: 20px;
    right: 16px;
  }
}
