/*
Theme Name: CartGlowBBuy
Theme URI: https://www.cartglowbbuy.online
Author: CartGlowBBuy
Author URI: https://www.cartglowbbuy.online
Description: Bright shopping WordPress theme with Home, About, Service, and Contact. English language, Unsplash imagery.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cartglowbbuy
Tags: one-page, custom-menu, featured-images, translation-ready, e-commerce
*/

:root {
  --ink: #17191d;
  --ink-soft: #23262c;
  --ash: #f0f1f3;
  --paper: #fafbfc;
  --white: #ffffff;
  --glow: #ffe14a;
  --glow-deep: #f0c800;
  --text: #1c1f24;
  --text-soft: #4a5160;
  --muted: #7a8290;
  --line: rgba(23, 25, 29, 0.1);
  --shadow: 0 20px 48px rgba(23, 25, 29, 0.14);
  --shadow-soft: 0 8px 24px rgba(23, 25, 29, 0.08);
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 78px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 28px,
      rgba(23, 25, 29, 0.015) 28px,
      rgba(23, 25, 29, 0.015) 29px
    ),
    var(--paper);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--glow);
  padding: 6px 12px;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: none;
  background: var(--glow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--glow-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.btn-ink:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn-full {
  width: 100%;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(23, 25, 29, 0.96);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.logo-mark {
  color: var(--glow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::before {
  top: 13px;
}

.nav-toggle::after {
  bottom: 13px;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  background: var(--glow);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroPan 20s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.06) translateX(-1.5%); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 25, 29, 0.88) 0%, rgba(23, 25, 29, 0.55) 48%, rgba(23, 25, 29, 0.35) 100%),
    linear-gradient(0deg, rgba(23, 25, 29, 0.5) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 0 72px;
  animation: riseIn 0.85s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  margin: 0 0 20px;
  letter-spacing: -0.05em;
}

.hero-brand span {
  color: var(--glow);
}

.hero-content h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  font-family: var(--font-body);
  margin: 0 0 16px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0;
}

.hero-content > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 30px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Products — 3-col grid */
.products {
  padding: 96px 0;
  background: var(--ash);
}

.section-head {
  margin-bottom: 44px;
}

.section-head.centered {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 14px 0 12px;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.section-head.light h2 {
  color: #fff;
}

.section-head.light p {
  color: rgba(255, 255, 255, 0.65);
}

.section-head.light .eyebrow {
  background: var(--glow);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-media .chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: var(--glow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

.product-copy {
  padding: 20px 20px 24px;
}

.product-copy h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
}

.product-copy p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.product-copy .price {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

/* About — split with offset image */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 14px 0 16px;
  color: var(--ink);
}

.about-copy > p {
  color: var(--text-soft);
  margin: 0 0 24px;
  font-size: 15px;
}

.about-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--glow);
  color: var(--text-soft);
  font-size: 14px;
}

.about-list strong {
  color: var(--ink);
}

.about-visual {
  position: relative;
  min-height: 480px;
}

.about-main {
  width: 86%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-left: auto;
}

.about-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-soft);
}

/* Services — alternating rows */
.services {
  padding: 100px 0;
  background: var(--ink);
  color: #fff;
}

.service-rows {
  display: grid;
  gap: 28px;
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-right: 28px;
}

.service-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
  padding-right: 0;
  padding-left: 28px;
}

.service-row.reverse img {
  order: 2;
}

.service-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-row h3 {
  font-size: 28px;
  margin: 8px 0 10px;
  color: #fff;
}

.service-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  max-width: 460px;
}

.service-row .detail {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--glow);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Contact */
.contact {
  padding: 100px 0 0;
  background: var(--ash);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.contact-info h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 14px 0 14px;
  color: var(--ink);
}

.contact-info > p {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 420px;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-details small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-details strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 2px;
}

.contact-details span {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.contact-details a:hover {
  color: var(--glow-deep);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border-bottom: 5px solid var(--glow);
}

.contact-form h3 {
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--ink);
}

.form-lead {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ash);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--glow-deep);
  box-shadow: 0 0 0 3px rgba(255, 225, 74, 0.35);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.contact-map {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-top: 4px solid var(--glow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2);
}

/* Footer */
.site-footer {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--glow);
}

.footer-contact-item {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glow);
  font-weight: 700;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bar a {
  color: var(--glow);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  z-index: 60;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--glow);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.entry-content {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-wrap,
  .contact-layout,
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .service-row.reverse img {
    order: 0;
  }

  .service-row {
    padding: 0 0 22px;
  }

  .about-visual {
    min-height: auto;
  }

  .about-main {
    width: 100%;
    height: 320px;
  }

  .about-accent {
    width: 42%;
    height: 160px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px;
    display: none;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .header-cta {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .about-accent {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 200px;
    margin-top: 14px;
    border: none;
  }
}
