/*
Theme Name: Sociopup
Theme URI: https://sociopup.com
Author: Sociopup
Author URI: https://sociopup.com
Description: A premium pet portrait atelier theme. Warm, gallery-grade design built to sell custom AI-crafted pet portraits at a premium. Includes an interactive before/after hero, a full landing page, and a complete brand system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sociopup
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, e-commerce
*/

/* ============================================================
   SOCIOPUP — UFINY ATELIER DESIGN SYSTEM
   ------------------------------------------------------------
   Concept: a fine-art portrait atelier, not a novelty pet shop.
   Warm gallery walls, ink type, clay accent, gold-leaf detail.
============================================================ */

:root {
  /* ---- Color ---- */
  --canvas: #FBF7F0;        /* warm gallery-wall cream */
  --canvas-deep: #F3EBDD;   /* slightly deeper cream for sections */
  --ink: #1A1614;           /* near-black charcoal, warm */
  --ink-soft: #4A4039;      /* muted body ink */
  --clay: #C65D3B;          /* terracotta hero accent */
  --clay-deep: #A8482B;     /* darker clay for hovers */
  --sage: #7C8471;          /* muted sage secondary */
  --gold: #C9A24B;          /* gold-leaf fine-art detail */
  --paper: #FFFFFF;         /* card paper */
  --line: #E5DACA;          /* hairline dividers */

  /* ---- Type ---- */
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* ---- Scale ---- */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.5rem + 1vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.9rem + 2vw, 3.6rem);
  --step-4: clamp(3rem, 2.3rem + 3.6vw, 5.6rem);
  --step-5: clamp(3.8rem, 2.6rem + 6vw, 8rem);

  /* ---- Space ---- */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  --section-y: clamp(4rem, 3rem + 6vw, 9rem);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1240px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 2px 8px rgba(26,22,20,0.04), 0 14px 40px rgba(26,22,20,0.08);
  --shadow-lg: 0 8px 18px rgba(26,22,20,0.08), 0 30px 70px rgba(26,22,20,0.14);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

::selection { background: var(--clay); color: var(--canvas); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.95em 1.8em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--clay);
  color: var(--canvas);
  box-shadow: 0 10px 24px rgba(198,93,59,0.28);
}
.btn-primary:hover {
  background: var(--clay-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(198,93,59,0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-3px);
}
.btn-lg { padding: 1.15em 2.4em; font-size: var(--step-1); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,240,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--canvas);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.brand .mark svg { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--clay);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -8%;
  width: 50vw; height: 50vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(198,93,59,0.10), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: var(--step-5);
  margin: 1.4rem 0 0;
}
.hero-copy h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.hero-copy p.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin: 1.6rem 0 2.4rem;
  max-width: 30ch;
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.hero-trust small {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.3;
}
.hero-trust strong { color: var(--ink); }

/* ---- Before/After reveal ---- */
.reveal {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  cursor: ew-resize;
  background: var(--canvas-deep);
}
.reveal .layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reveal .after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--canvas);
}
.reveal .after-wrap img { width: 100vw; max-width: none; height: 100%; }
.reveal .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  z-index: 3;
}
.reveal .handle .knob {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.reveal .tag {
  position: absolute;
  bottom: 16px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(26,22,20,0.72);
  color: var(--canvas);
  padding: 0.4em 0.9em;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.reveal .tag.before { left: 16px; }
.reveal .tag.after { right: 16px; background: var(--clay); }
.reveal-hint {
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   MARQUEE (logo / value strip)
============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--canvas-deep);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  width: max-content;
  animation: scroll-x 28s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after { content: "✦"; color: var(--clay); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
============================================================ */
.section { padding-block: var(--section-y); }
.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: var(--step-4);
  margin-top: 1rem;
}
.section-head p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 1.2rem;
  line-height: 1.5;
}

/* ============================================================
   STEPS (how it works)
============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.step {
  position: relative;
  padding-top: 2.4rem;
}
.step .num {
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--clay);
  line-height: 1;
  font-weight: 600;
}
.step h3 { font-size: var(--step-1); margin: 1rem 0 0.6rem; }
.step p { color: var(--ink-soft); }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--line);
}

/* ============================================================
   STYLES GALLERY
============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.style-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--canvas-deep);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.style-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.style-card:hover img { transform: scale(1.06); }
.style-card .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(26,22,20,0.85), transparent);
  color: var(--canvas);
  font-family: var(--display);
  font-size: var(--step-1);
}

/* ============================================================
   FEATURE SPLIT (why us)
============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: var(--canvas-deep);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.6rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--canvas-deep);
  color: var(--clay);
  display: grid;
  place-items: center;
}
.feature-list .ico svg { width: 22px; height: 22px; }
.feature-list h4 { font-family: var(--body); font-weight: 700; font-size: var(--step-0); margin-bottom: 0.2rem; }
.feature-list p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }

/* ============================================================
   PRICING
============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  position: relative;
}
.price-card.featured h3,
.price-card.featured .price { color: var(--canvas); }
.price-card .pill {
  align-self: flex-start;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  background: rgba(198,93,59,0.12);
  padding: 0.35em 0.85em;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.price-card.featured .pill { background: var(--clay); color: var(--canvas); }
.price-card h3 { font-size: var(--step-1); }
.price-card .price {
  font-family: var(--display);
  font-size: var(--step-3);
  margin: 0.8rem 0 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price-card .price small { font-size: var(--step-0); color: var(--sage); font-family: var(--body); }
.price-card.featured .price small { color: #C7BFb4; }
.price-card .desc { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 1.6rem; }
.price-card.featured .desc { color: #C7BFb4; }
.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}
.price-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); }
.price-card li svg { width: 18px; height: 18px; flex: none; color: var(--clay); margin-top: 2px; }
.price-card.featured li svg { color: var(--gold); }
.price-card .btn { width: 100%; justify-content: center; }
.price-card.featured .btn-primary { background: var(--clay); }

/* ============================================================
   TESTIMONIALS
============================================================ */
.quotes {
  columns: 3;
  column-gap: var(--gap);
}
.quote {
  break-inside: avoid;
  margin-bottom: var(--gap);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.quote .stars { font-size: 1rem; margin-bottom: 0.8rem; }
.quote p { font-size: var(--step-0); line-height: 1.55; }
.quote .by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.quote .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--canvas-deep);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  color: var(--clay);
}
.quote .by strong { display: block; font-size: var(--step--1); }
.quote .by span { font-size: 0.8rem; color: var(--sage); }

/* ============================================================
   FAQ
============================================================ */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.5rem 0;
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .plus {
  flex: none;
  width: 28px; height: 28px;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--clay);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-q .plus::before { width: 16px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 16px; transition: transform 0.4s var(--ease); }
.faq-item.open .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
  color: var(--ink-soft);
}
.faq-a p { padding-bottom: 1.5rem; line-height: 1.6; }

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(198,93,59,0.4), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--canvas); font-size: var(--step-4); }
.cta-banner p { color: #C7BFB4; font-size: var(--step-1); margin: 1.2rem auto 2.4rem; max-width: 44ch; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--canvas-deep);
  border-top: 1px solid var(--line);
  padding-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-bottom: 3.5rem;
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { color: var(--ink-soft); font-size: var(--step--1); max-width: 32ch; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.footer-col ul { list-style: none; display: grid; gap: 0.8rem; }
.footer-col a { color: var(--ink-soft); font-size: var(--step--1); transition: color 0.3s; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--sage);
}
.footer-bottom .socials { display: flex; gap: 1.2rem; }
.footer-bottom .socials a:hover { color: var(--clay); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .quotes { columns: 1; }

  /* Mobile nav drawer */
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: var(--canvas);
    padding: 2rem 2rem 2.5rem;
    gap: 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open + .header-cta .btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up { opacity: 1; transform: none; }
}
