/* 3Rings Web Services - Clean NZ Brand Stylesheet */
:root {
  --header-bg: #222624;
  --header-text: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f4f6f5;
  --surface: #ffffff;
  --border: #e2e6e4;
  --text: #1f2421;
  --text-muted: #525b56;
  --charcoal: #222624;
  --charcoal-hover: #111312;
  --gold: #f0c341;
  --gold-soft: rgba(240, 195, 65, 0.16);
  --success: #15803d;
  --radius: 14px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 200;
  background: var(--gold);
  color: #1a1810;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.85rem;
  outline: 2px solid #ffffff;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.65s;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

main {
  animation: pageFadeIn 0.65s ease-out both;
}

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid transparent;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(34, 38, 36, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 0.85rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: #ffffff;
}
.brand img.logo-spin {
  width: 42px; height: 42px; object-fit: contain; border-radius: 6px;
}
.nav-links {
  display: flex; align-items: center; gap: 1.4rem;
  font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.88);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.phone-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #ffffff; color: #1f2421 !important;
  padding: 0.48rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phone-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.mobile-toggle .icon-close { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero Slideshow with Smooth Ambient Movement */
@keyframes softAmbientDrift {
  0% {
    transform: translate3d(0px, 0px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-14px, -8px, 0) scale(1.065);
  }
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #111513;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.9s ease;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #ffffff;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg-img {
  animation: softAmbientDrift 22s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}
.slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 16, 14, 0.22), rgba(12, 16, 14, 0.58));
  z-index: 1;
}
.slide-content { position: relative; z-index: 3; max-width: 840px; padding: 0 2rem; }
.slide-content h1, .slide-content h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  text-shadow: 0 3px 18px rgba(0,0,0,0.65);
}
.slide-content p {
  margin-top: 1rem; font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.85rem;
  background: rgba(20, 24, 22, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.slide-cta:hover { background: #111312; border-color: var(--gold); transform: translateY(-2px); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(0,0,0,0.35); color: #ffffff;
  border: none; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.slider-arrow:hover { background: rgba(0,0,0,0.7); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 0.6rem;
}
.slider-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
}
.slider-dot.active { background: var(--gold); transform: scale(1.25); }

/* Sub-Page Banner with Smooth Ambient Movement */
.page-banner {
  position: relative;
  padding: 6.5rem 0;
  color: #ffffff;
  overflow: hidden;
  background-color: #1a221f;
}
.page-banner-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  animation: softAmbientDrift 24s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
  z-index: 1;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14, 18, 16, 0.8) 0%, rgba(18, 22, 20, 0.45) 100%);
  z-index: 2;
}
.page-banner .container { position: relative; z-index: 3; }
.eyebrow {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(240, 195, 65, 0.28); border: 1px solid rgba(240, 195, 65, 0.55);
  color: #f7df8b; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.page-banner h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700; line-height: 1.15; max-width: 780px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.page-banner p.lead {
  margin-top: 1rem; font-size: 1.15rem; color: rgba(255,255,255,0.96); max-width: 680px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

/* Main Content Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.welcome-center { text-align: center; max-width: 780px; margin: 0 auto 3.25rem; }
.welcome-center h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--text); }
.welcome-center p { margin-top: 0.85rem; color: var(--text-muted); font-size: 1.08rem; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; }
.section-head p { margin-top: 0.6rem; color: var(--text-muted); font-size: 1.04rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.card-clickable { text-decoration: none; color: inherit; cursor: pointer; }
.card-img-wrap { width: 100%; height: 200px; overflow: hidden; background: #e5e9e7; }
.card-img {
  width: 100%; height: 200px; object-fit: cover; background: #e5e9e7;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card-img-wrap .card-img { height: 100%; }
.card:hover .card-img,
.card:focus-within .card-img,
.card-clickable:hover .card-img,
.card-clickable:focus-visible .card-img { transform: scale(1.07); }
.card:hover .card-link,
.card-clickable:hover .card-link,
.card-clickable:focus-visible .card-link { color: #b58d1b; }
.card-body { padding: 1.85rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.prose-content h3 { font-size: 1.35rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.prose-content p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 1.25rem; line-height: 1.7; }
.prose-content ul { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.5rem; }
.prose-content li { font-size: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.78rem 1.45rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s ease; cursor: pointer; border: none;
}
.btn-dark { background: var(--charcoal); color: #ffffff; }
.btn-dark:hover { background: var(--charcoal-hover); transform: translateY(-1px); }
.btn-dark:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: #1a1810; }
.btn-gold:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid #cbd2ce; }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--charcoal); }
.card-link { margin-top: 1.35rem; color: var(--charcoal); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.card-link:hover { color: #b58d1b; }

/* Pricing Cards */
.price-card.featured { border: 2px solid var(--gold); }
.price-tag { font-size: 2.25rem; font-weight: 800; margin: 0.75rem 0 0.2rem; color: var(--text); }
.price-tag span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.gst-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.15rem; }
.feature-list { list-style: none; margin: 1.15rem 0 1.65rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li { font-size: 0.94rem; color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* Domain Search Strip */
.domain-box {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.domain-form { display: flex; flex-wrap: wrap; flex: 1 1 280px; min-width: 0; width: 100%; gap: 0.65rem; }
.domain-form .input { flex: 1 1 210px; min-width: 0; }
.domain-form .btn { flex: 0 0 auto; white-space: nowrap; }
.input, select, textarea {
  width: 100%; padding: 0.78rem 1rem; border-radius: 10px;
  background: #ffffff; border: 1px solid #cbd2ce; color: var(--text);
  font-family: inherit; font-size: 0.96rem;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--charcoal); }

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.status-msg { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.92rem; display: none; }
.status-msg.ok { display: block; background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.status-msg.err { display: block; background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* Footer */
.site-footer {
  margin-top: auto; background: var(--header-bg); color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 2rem; font-size: 0.93rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.footer-brand img.logo-spin { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.footer-brand h4 { color: #ffffff; font-size: 1.05rem; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--header-bg); flex-direction: column; padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1); align-items: flex-start; gap: 0.85rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.25rem 0; }
  .nav-links .phone-pill { width: auto; padding: 0.55rem 1.15rem; margin-top: 0.25rem; }
  .site-header.is-scrolled .nav-links.open {
    background: rgba(34, 38, 36, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mobile-toggle { display: inline-flex; }
  .hero-slider { height: 460px; }
}

@media (max-width: 640px) {
  .hero-slider { height: 440px; }
  .slide-content { padding: 0 3rem 2.25rem; }
  .slide-content h1, .slide-content h2 { font-size: 1.6rem; line-height: 1.18; }
  .slide-content p { margin-top: 0.7rem; font-size: 0.94rem; line-height: 1.45; }
  .slide-cta { margin-top: 1.15rem; padding: 0.68rem 1.35rem; font-size: 0.88rem; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
  .slider-prev { left: 0.65rem; }
  .slider-next { right: 0.65rem; }
  .slider-dots { bottom: 1rem; }

  .domain-box { padding: 1.4rem; }
  .domain-form { flex-direction: column; }
  .domain-form .input { flex: none; width: 100%; }
  .domain-form .btn { width: 100%; }
}

/* FAQ & SEO Content Grid */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.faq-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.faq-item p { font-size: 0.94rem; color: var(--text-muted); line-height: 1.6; }

/* Shopify Partner Showcase Strip */
.partner-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 2rem; margin-bottom: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.partner-strip img { height: 54px; width: auto; object-fit: contain; display: block; }

/* Top-aligned screenshot thumbnails inside standard cards */
.card-img-wrap.is-bordered {
  border-bottom: 1px solid var(--border);
}
.card-img-top {
  object-position: top center;
}

/* Bot Security CAPTCHA Box */
.captcha-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.15rem;
}
.captcha-box label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.captcha-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ref-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #856404;
  margin-bottom: 0.35rem;
}

.audit-strip {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.audit-strip h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.audit-strip p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.25rem; max-width: 640px; }

.domain-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.domain-status.ok { display: flex; background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.domain-status.warn { display: flex; background: #fef9c3; border: 1px solid #fde047; color: #854d0e; }
.domain-status.err { display: flex; background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

.consent-note {
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.consent-note a { font-weight: 600; color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  main,
  .slide-bg-img,
  .page-banner-bg {
    animation: none;
  }
  .card-img {
    transition: none;
  }
}
