/* =========================================
   PIXISITE - HANDCRAFTED THEME
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

/* === CSS Variables === */
:root {
  --pixi-black: #050505;
  --pixi-charcoal: #121212;
  --pixi-gold: #ffd700;
  /* Brighter gold for sketch effect */
  --pixi-light-gold: #ffe55c;
  --pixi-white: #f0f0f0;
  /* Slightly off-white for paper feel */
  --pixi-gray: #a0a0a0;

  /* Theme Specific */
  --paper-texture: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+");
  --sketch-border: 2px solid var(--pixi-gold);
  --sketch-shadow: 4px 4px 0px rgba(255, 215, 0, 0.2);

  --section-padding: 8rem 0;
}

/* === Base Styles === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--pixi-black);
  background-image: var(--paper-texture);
  color: var(--pixi-white);
  color: var(--pixi-white);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}

a {
  color: var(--pixi-gold);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Sketchy Underline for Links */
a:not(.btn):not(.nav-logo):not(.social-icon):hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pixi-gold);
  clip-path: polygon(0% 40%, 15% 10%, 30% 60%, 45% 20%, 60% 70%, 75% 10%, 90% 50%, 100% 0%, 100% 100%, 0% 100%);
  animation: sketchLine 0.3s forwards;
}

@keyframes sketchLine {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(90%, 1000px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

/* === NAV / HEADER (See common-menu.css) === */
.pixisite-page header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 5%;
  width: 100%;
  z-index: 3;
  height: auto;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.4em;
  top: 3%;
  background: transparent;
}


/* === HERO SECTION === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 5%;
  overflow: hidden;
}

/* Background Doodles */
.hero-bg-doodle {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

.doodle-1 {
  top: 10%;
  left: 5%;
  width: 200px;
  transform: rotate(-10deg);
}

.doodle-2 {
  bottom: 15%;
  right: 5%;
  width: 250px;
  transform: rotate(15deg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.pixi-sketch-wrapper {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.pixi-img {
  width: 100%;
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.5s ease;
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMTBoMTgwdjE4MEgxMHoiLz48L3N2Zz4=");
  /* Placeholder mask */
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.pixi-sketch-wrapper:hover .pixi-img {
  filter: grayscale(0%) contrast(100%);
}

/* SVG Sketch Overlay */
.sketch-overlay {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  pointer-events: none;
}

.sketch-path {
  fill: none;
  stroke: var(--pixi-gold);
  stroke-width: 3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  stroke-linecap: round;
}

.hero-text {
  text-align: left;
}

.hero-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--pixi-gold);
  font-size: 1.5rem;
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-heading {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  position: relative;
}

.highlight-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: -5%;
  width: 110%;
  height: 30%;
  background: var(--pixi-gold);
  z-index: -1;
  opacity: 0.6;
  transform: skewX(-10deg);
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--pixi-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.8rem;
  background: linear-gradient(135deg, var(--pixi-gold) 0%, #b8860b 100%);
  color: #000;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2), 0 0 0 0 rgba(212, 175, 55, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3), 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.cta-btn:hover::before {
  left: 100%;
}

/* === WHY SECTION (Split Layout) === */
.why-section {
  padding: var(--section-padding);
}

.why-container-split {
  width: min(90%, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.why-visual, .why-content {
  flex: 1;
}

.visual-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--pixi-gold);
  box-shadow: 10px 10px 0 rgba(255, 215, 0, 0.1);
}

.visual-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.visual-card:hover .visual-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.visual-highlight {
  position: absolute;
  bottom: 2rem;
  left: -1rem;
  background: var(--pixi-gold);
  color: #000;
  padding: 0.5rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* === BENTO GRID STYLES (Restored & Adapted) === */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 columns for the split layout */
  gap: 1.5rem;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.3s ease;
  border-radius: 8px;
  /* Slight radius */
}

.bento-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 215, 0, 0.05);
}

.bento-icon {
  font-size: 2rem;
  color: var(--pixi-gold);
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.bento-card p {
  color: var(--pixi-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}


/* === SERVICES SECTION (Image Cards) === */
.services-section {
  padding: var(--section-padding);
  background: var(--pixi-charcoal);
  position: relative;
}

/* Paper torn edge effect top */
.services-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--pixi-charcoal);
  clip-path: polygon(0% 50%, 5% 0%, 10% 50%, 15% 0%, 20% 50%, 25% 0%, 30% 50%, 35% 0%, 40% 50%, 45% 0%, 50% 50%, 55% 0%, 60% 50%, 65% 0%, 70% 50%, 75% 0%, 80% 50%, 85% 0%, 90% 50%, 95% 0%, 100% 50%, 100% 100%, 0% 100%);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-item {
  flex: 1 1 320px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.service-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(100%) brightness(0.6);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
  transition: opacity 0.3s ease;
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.service-icon {
  font-size: 2rem;
  color: var(--pixi-gold);
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.service-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Hover Effects */
.service-item:hover .service-bg-img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(0.8);
}

.service-item:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* === PRODUCTS SECTION === */
.products-section {
  padding: var(--section-padding);
}

.product-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.product-card.featured {
  border: 2px solid var(--pixi-gold);
  background: #222;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--pixi-gold);
  color: #000;
  padding: 0.5rem 3rem;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.product-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-features i {
  color: var(--pixi-gold);
}

/* === PROCESS SECTION (Timeline) === */
.process-section {
  padding: var(--section-padding);
}

.process-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  width: 45%;
  background: #151515;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
}

/* Speech bubble tail */
.process-step:nth-child(odd) .step-content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #151515;
  transform: translateY(-50%);
}

.process-step:nth-child(even) .step-content::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #151515;
  transform: translateY(-50%);
}

.step-marker {
  width: 40px;
  height: 40px;
  background: var(--pixi-black);
  border: 2px solid var(--pixi-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: 700;
  color: var(--pixi-gold);
}

/* === FOOTER === */
.minimal-footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
  margin: 0 10px;
  color: var(--pixi-gray);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--pixi-gold);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section {
    padding: 8rem 0 4rem;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    width: 100%;
    padding-left: 1rem;
    /* Small padding left */
    padding-right: 3rem;
    /* Larger padding right to push content left */
    box-sizing: border-box;
  }

  .hero-text {
    text-align: center;
    order: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure flex children are centered */
  }

  .hero-desc {
    margin-inline: auto;
    /* Center the block itself */
  }

  .hero-heading {
    margin-inline: auto;
  }

  .hero-visual {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-large, .card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .process-line {
    left: 50%;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .process-step:nth-child(even) {
    flex-direction: column;
  }

  .step-marker {
    position: static;
  }

  .step-content {
    width: 100%;
  }

  .step-content::after {
    display: none;
  }

  .why-container-split {
    flex-direction: column;
    gap: 3rem;
  }

  .why-visual, .why-content {
    width: 100%;
  }

  /* Override inline style for title alignment on mobile */
  .why-content .section-title {
    text-align: center !important;
  }
}

/* === FOOTER STYLES === */
.minimal-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--pixi-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--pixi-gold);
}