/*
Theme Name: ShoplioCart
Theme URI: https://www.shopliocart.online
Author: ShoplioCart
Author URI: https://www.shopliocart.online
Description: Modern shopping WordPress theme with Home, About, Service, and Contact. English language, Unsplash imagery.
Version: 1.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: shopliocart
Tags: one-page, custom-menu, featured-images, translation-ready, e-commerce
*/

:root {
  --ink: #0b1424;
  --ink-soft: #152238;
  --navy: #1a3358;
  --teal: #00a88f;
  --teal-deep: #008f7a;
  --ice: #e8eef6;
  --mist: #f4f7fb;
  --white: #ffffff;
  --text: #152033;
  --text-soft: #3d4f6a;
  --muted: #6b7c94;
  --line: rgba(11, 20, 36, 0.1);
  --shadow: 0 24px 56px rgba(11, 20, 36, 0.16);
  --shadow-soft: 0 10px 28px rgba(11, 20, 36, 0.08);
  --radius: 6px;
  --radius-lg: 22px;
  --header-h: 80px;
  --font-display: "Bricolage Grotesque", Georgia, sans-serif;
  --font-body: "Figtree", 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:
    radial-gradient(1200px 500px at 90% -10%, rgba(0, 168, 143, 0.08), transparent 55%),
    radial-gradient(900px 420px at 0% 20%, rgba(26, 51, 88, 0.06), transparent 50%),
    var(--mist);
  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(1180px, calc(100% - 36px));
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: none;
  background: var(--teal);
  color: #fff;
  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(--teal-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-ink {
  background: var(--ink);
}

.btn-ink:hover {
  background: var(--navy);
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* 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(11, 20, 36, 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: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.logo-mark {
  color: var(--teal);
}

.site-header:not(.is-scrolled) .logo {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.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: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  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: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header-cta {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

/* Hero — full-bleed brand plane */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 20, 36, 0.9) 0%, rgba(11, 20, 36, 0.42) 52%, rgba(11, 20, 36, 0.58) 100%),
    linear-gradient(0deg, rgba(11, 20, 36, 0.78) 0%, transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 88px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 108px);
  font-weight: 800;
  line-height: 0.92;
  margin: 0 0 18px;
  letter-spacing: -0.05em;
}

.hero-brand span {
  color: var(--teal);
}

.hero-content h1 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 500;
  font-family: var(--font-body);
  margin: 0 0 18px;
  max-width: 520px;
  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 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Products runway */
.products {
  padding: 100px 0 80px;
  background: transparent;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 0;
  color: var(--ink);
  max-width: 480px;
}

.section-head p {
  color: var(--muted);
  max-width: 340px;
  margin: 0;
  font-size: 15px;
}

.product-runway {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.product-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  min-height: 240px;
  transition: transform 0.35s ease;
}

.product-tile:hover {
  transform: translateY(-4px);
}

.product-tile.wide {
  grid-row: span 2;
  min-height: 520px;
}

.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.product-tile:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 36, 0.92) 0%, transparent 55%);
}

.product-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
}

.product-copy .chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.product-copy h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

.product-tile.wide .product-copy h3 {
  font-size: 32px;
}

.product-copy p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

.product-meta .price {
  font-size: 15px;
  font-weight: 700;
  color: #7dffe6;
}

/* About */
.about {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stack img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.about-stack img:first-child {
  height: 320px;
  grid-row: span 2;
  align-self: center;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
}

.about-copy .eyebrow {
  margin-bottom: 8px;
}

.about-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 18px;
  color: var(--ink);
}

.about-copy > p {
  color: var(--text-soft);
  margin: 0 0 28px;
  font-size: 15px;
}

.about-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--ice);
  border-left: 3px solid var(--teal);
}

.about-points strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.about-points span {
  font-size: 13px;
  color: var(--muted);
}

.about-points .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
}

/* Services */
.services {
  padding: 100px 0;
  background:
    linear-gradient(135deg, #0b1424 0%, #152238 48%, #0f2a3a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 143, 0.28) 0%, transparent 70%);
  top: -140px;
  right: -80px;
  pointer-events: none;
}

.services .section-head h2 {
  color: #fff;
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.6);
}

.service-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.service-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-panel:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.service-panel img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-panel-body {
  padding: 22px 20px 26px;
}

.service-panel-body h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #7dffe6;
}

.service-panel-body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.service-panel-body .detail {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Contact — open desk layout */
.contact {
  padding: 110px 0 0;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--mist) 42%, var(--ice) 100%);
  overflow: hidden;
}

.contact-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.contact-intro h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 10px 0 14px;
  color: var(--ink);
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-tile {
  display: grid;
  gap: 6px;
  padding: 28px 22px;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
  border-right: 1px solid var(--line);
  position: relative;
}

.contact-tile:last-child {
  border-right: none;
}

.contact-tile::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-tile:hover {
  background: rgba(0, 168, 143, 0.06);
}

.contact-tile:hover::after {
  transform: scaleX(1);
}

.tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-tile strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.contact-tile span:last-child {
  font-size: 13px;
  color: var(--muted);
}

.contact-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  min-height: 480px;
  margin-bottom: 0;
}

.contact-form {
  background: var(--ink);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.form-heading h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 8px;
  color: #fff;
}

.form-lead {
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 28px;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dffe6;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0 14px;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  font-size: 15px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--teal);
  box-shadow: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-actions .btn {
  min-width: 180px;
}

.form-note {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  color: #7dffe6;
  font-weight: 600;
}

.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: var(--navy);
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 20, 36, 0.35) 0%, transparent 35%);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

/* 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.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  font-size: 28px;
  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: #7dffe6;
}

.footer-contact-item {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  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: #7dffe6;
}

.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(--teal);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  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-runway {
    grid-template-columns: 1fr 1fr;
  }

  .product-tile.wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 360px;
  }

  .about-grid,
  .contact-stage {
    grid-template-columns: 1fr;
  }

  .contact-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .contact-tile:nth-child(2) {
    border-right: none;
  }

  .contact-tile:nth-child(1),
  .contact-tile:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-form {
    clip-path: none;
    padding: 40px 32px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 320px;
  }

  .service-flow {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-scroll {
    display: none;
  }
}

@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-runway {
    grid-template-columns: 1fr;
  }

  .product-tile.wide {
    grid-column: span 1;
    min-height: 320px;
  }

  .about-stack {
    grid-template-columns: 1fr;
  }

  .about-stack img,
  .about-stack img:first-child {
    height: 220px;
    grid-row: auto;
    clip-path: none;
  }

  .service-flow {
    grid-template-columns: 1fr;
  }

  .contact-tiles {
    grid-template-columns: 1fr;
  }

  .contact-tile {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .contact-tile:last-child {
    border-bottom: none;
  }

  .contact-tile:nth-child(1),
  .contact-tile:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }
}
