/* G JOY Materials — styles.css
   Apple-inspired minimalism. Plain CSS, no frameworks. Mobile-first. */

:root {
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --bg-soft: #f5f5f7;
  --hairline: #d2d2d7;
  --white: #ffffff;
  --brand: #1B4F9C;
  --radius: 18px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, .06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: rgba(0, 113, 227, .18); }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; }
.logo-text { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.logo-text strong { font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 12px;
  color: var(--ink);
  opacity: .8;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.main-nav a:hover { opacity: 1; text-decoration: none; }
.main-nav a.active { opacity: 1; font-weight: 600; }
.main-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  opacity: 1;
  padding: 7px 16px;
  border-radius: 980px;
  font-weight: 400;
}
.main-nav a.nav-cta:hover { background: var(--accent-hover); }
.nav-cart {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.nav-cart:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 12px 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow, .section-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 16px; }
.hero-sub {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 15px; color: var(--gray-light); }
.hero-art { margin-top: 72px; width: 100%; max-width: 560px; }
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--bg-soft); color: var(--accent); }
.btn-outline:hover { background: #e8e8ed; }
.btn-disabled { background: var(--bg-soft); color: var(--gray-light); cursor: default; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--bg-soft); }

.section .wrap > .section-eyebrow,
.section .wrap > h2,
.section .wrap > .section-lead { text-align: center; }
.section-lead {
  font-size: 1.3125rem;
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto 60px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.section-foot { text-align: center; margin-top: 48px; color: var(--gray); font-size: 17px; }

/* ---------- Product cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 56px 44px;
  text-align: center;
}
.product-art { width: 120px; margin: 0 auto; }
.product-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 4px;
}
.product-card h3 { font-size: 1.5rem; margin: 28px 0 12px; }
.cards-3 .product-card { padding: 44px 32px; }
.cards-3 .product-card h3 { font-size: 1.3rem; }
.product-card p { color: var(--gray); }
.size-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.size-pills span {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.card-note { font-size: 14px !important; color: var(--gray-light) !important; }

/* ---------- Buy row on case cards ---------- */
.buy-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.buy-row select {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.buy-row .btn { padding: 12px 22px; }

/* ---------- Cart drawer + checkout ---------- */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100; }
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 92vw;
  background: #fff;
  z-index: 101;
  transform: translateX(105%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
  text-align: left;
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 22px; margin: 0; }
.cart-x { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--gray-light); }
.cart-empty { color: var(--gray); margin: 16px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item b { display: block; }
.cart-item span { color: var(--gray); font-size: 13px; display: block; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.ci-total { font-weight: 700; min-width: 70px; text-align: right; }
.ci-x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--gray-light); }
.cart-summary { margin-top: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--gray); }
.sum-row.total {
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
  padding-top: 12px;
  color: var(--ink);
  font-size: 18px;
}
.cart-note { color: var(--gray); font-size: 14px; margin-top: 10px; }
#checkoutForm h4, #checkoutSuccess h4 { margin: 18px 0 10px; font-size: 19px; }
.fl { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.fi {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--ink);
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-box { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; min-height: 60px; }
#payBtn:disabled { opacity: .55; cursor: not-allowed; }

/* Digital wallet buttons (Apple Pay / Google Pay) in the checkout drawer.
   Shown only when the wallet initializes (Apple Pay is Safari-only);
   a failed init leaves the button hidden and the card form untouched. */
#walletButtons { margin-bottom: 18px; }
#apple-pay-button { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; width: 100%; height: 44px; border: 0; border-radius: 8px; cursor: pointer; margin-bottom: 8px; background: #000; }
#google-pay-button { margin-bottom: 4px; }

/* ---------- Studio split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-copy .section-eyebrow,
.split-copy h2 { text-align: left; }
.split-copy > p { color: var(--gray); font-size: 1.125rem; line-height: 1.5; }
.check-list { list-style: none; margin: 30px 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; font-size: 17px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pack-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 14px; }
.pack-pills span {
  background: #fff;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
}
.pack-pills strong { font-weight: 700; }
.pack-sub { color: var(--gray); font-size: 15px; margin-bottom: 30px; }
.split-art svg { max-width: 420px; margin: 0 auto; }
.split-art img {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Coming-soon badge ---------- */
.badge-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #e8e8ed;
  color: var(--gray);
  border-radius: 980px;
  padding: 6px 14px;
  vertical-align: middle;
  margin-left: 12px;
  white-space: nowrap;
}
/* ---------- Projects ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
}
.project-card svg { width: 52px; height: 52px; margin-bottom: 22px; }
.project-card h3 { font-size: 19px; margin-bottom: 10px; }
.project-card p { font-size: 15px; color: var(--gray); line-height: 1.5; }

/* ---------- Where to buy ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.buy-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.buy-card h3 { font-size: 24px; }
.buy-card p { color: var(--gray); font-size: 16px; flex: 1; }

/* ---------- Contact ---------- */
.contact-wrap { text-align: center; }
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0, 0, 0, .09); }
.contact-card h3 { font-size: 22px; color: var(--ink); }
.contact-card span { display: block; color: var(--gray); font-size: 15px; margin: 4px 0 14px; }
.contact-card p { color: var(--accent); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.logo-footer .logo-mark { width: 24px; height: 24px; }
.logo-footer .logo-text { font-size: 15px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 12px; color: #424245; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #424245; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.footer-social svg { flex: none; }
.footer-legal { font-size: 12px; color: var(--gray); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .hero { padding: 88px 0 72px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 52px; }
  .split-art { order: -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 251, 253, .96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding: 8px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 17px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-soft);
    opacity: 1;
  }
  .main-nav a.nav-cta {
    text-align: center;
    margin-top: 12px;
    border-bottom: 0;
    padding: 12px 0;
  }
  .nav-cart {
    font-size: 17px;
    padding: 12px 0;
    margin-top: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .product-card { padding: 44px 28px; }
  .badge-soon { margin-left: 0; margin-top: 10px; }
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 15px;
  padding: 10px 24px;
  line-height: 1.4;
}
.promo-bar a { color: #fff; text-decoration: underline; font-weight: 700; }
.promo-code {
  background: rgba(255, 255, 255, .2);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: .06em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Retail price line ---------- */
.price-line strong { color: var(--ink); }

/* ---------- Quality cards ---------- */
.quality-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.quality-card h3 { margin-bottom: 10px; }
.quality-card p { color: var(--gray); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 19px;
  padding: 18px 0;
  letter-spacing: -0.015em;
}
.faq-list details p { color: var(--gray); padding-bottom: 20px; max-width: 780px; }

/* ---------- Promo code in cart ---------- */
.promo-row { display: flex; gap: 8px; margin-top: 12px; }
.promo-input { flex: 1; min-width: 0; text-transform: uppercase; }
.sum-row.discount b { color: var(--accent); }

@media (max-width: 640px) {
  .promo-bar { font-size: 14px; }
  .faq-list summary { font-size: 17px; }
}

/* ---------- Product pages ---------- */
.crumbs { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.crumbs a { color: var(--gray); }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.product-copy h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 12px; }
.product-lead { color: var(--gray); font-size: 18px; margin-bottom: 20px; }
.product-price { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.product-promo { font-size: 17px; margin-bottom: 12px; }
.product-stock { margin-bottom: 20px; }
.product-copy .buy-row { margin: 0 0 12px; }
.product-copy .check-list { margin-top: 20px; }
.product-more { margin-top: 48px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.product-more h2 { font-size: 1.5rem; }

/* Catalog size pills are links to the product pages */
.size-pills a {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.size-pills a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Gallery: video + project photos (homepage and product pages) ---- */
.gallery-block { margin-top: 56px; }
.gallery-block h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 10px; }
.gallery-block .section-lead { margin-bottom: 28px; }
.gallery-video { max-width: 860px; margin: 0 auto 36px; }
.gallery-video video { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: #000; }
.gallery-video-cap { text-align: center; color: var(--gray); margin-top: 12px; font-size: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.gallery-item figcaption { margin-top: 10px; color: var(--gray); font-size: 15px; line-height: 1.5; }
.gallery-item figcaption strong { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Guide pages ---------- */
.guide-page h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 12px; }
.guide-page h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 40px 0 12px; }
.guide-time { color: var(--gray); font-size: 16px; margin-bottom: 24px; }
.guide-hero { margin-bottom: 8px; }
.guide-hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.steps { list-style: none; counter-reset: step; margin: 24px 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 24px; font-size: 17px; line-height: 1.6; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 36px; }
.steps li strong { display: block; margin-bottom: 2px; }
.guide-products { margin-top: 48px; border-top: 1px solid var(--hairline); padding-top: 8px; }

/* ---------- Comparison page ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; line-height: 1.55; }
.compare-table th, .compare-table td { border: 1px solid var(--hairline); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--accent); color: #fff; font-size: 17px; }
.compare-table tbody th { background: #f7f9fc; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.guide-page h3 { font-size: 1.2rem; margin: 20px 0 4px; }

/* ---------- Reviews ---------- */
.reviews-grid .review-card { padding: 36px 32px; }
.review-card .review-stars { font-size: 1.3rem; letter-spacing: .08em; color: #e9a426; margin-bottom: 16px; }
.review-card .review-stars .star-off { color: var(--hairline); }
.review-card .review-quote { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); margin: 0 0 20px; }
.review-card .review-meta { font-size: 15px; color: var(--gray); margin: 0; }
.review-card .review-meta strong { color: var(--ink); }
