/* 
  HEDONIST CLOTHES — LUXURY TAILORED DESIGN SYSTEM ("STITCCH")
  Bespoke tailoring double-borders, fine sewing seams, and tailor-chalk markings.
*/

:root {
  /* Color Palette */
  --color-almost-black: #1A1A1A;
  --color-raw-linen: #F5F0E8;     /* Warm linen ecru */
  --color-dry-earth: #8B7355;     /* Muted sand accent */
  --color-accent-green: #2D4A2D;  /* Deep grove green */
  --color-bleached-hemp: #C8B89A; /* Bleached hemp light accent */
  
  --color-bg: var(--color-raw-linen);
  --color-text-dark: var(--color-almost-black);
  --color-text-muted: #555555;
  --color-border: rgba(26, 26, 26, 0.15);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --font-accent: 'Courier Prime', monospace;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Scroll Lock when overlay menu is open */
.menu-open-body {
  overflow: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
  opacity: 0.9;
}

/* Containers */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  width: 100%;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* 
  THE STITCCH LUXURY DESIGN SYSTEM ELEMENTS
*/

.stitch-container {
  border: 1px solid var(--color-text-dark);
  position: relative;
  background-color: var(--color-raw-linen);
  padding: 4rem 3rem;
  transition: var(--transition-smooth);
}

.stitch-container::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(26, 26, 26, 0.15); /* delicate tailor sewing line */
  pointer-events: none;
}

/* Elegant sewing seam divider */
.stitch-line {
  height: 0;
  border-top: 1px dashed rgba(26, 26, 26, 0.2);
  margin: 3.5rem 0;
  width: 100%;
  position: relative;
}

.stitch-line::before, .stitch-line::after {
  content: '+';
  position: absolute;
  top: -8px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-dry-earth);
  opacity: 0.5;
}
.stitch-line::before { left: 0; }
.stitch-line::after { right: 0; }

/* Tailor chalk markings (+) for containers */
.stitch-corners {
  position: relative;
}
.stitch-corners::before, .stitch-corners::after {
  content: '+';
  position: absolute;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-dry-earth);
  z-index: 10;
  opacity: 0.6;
}
.stitch-corners::before { top: -6px; left: -5px; }
.stitch-corners::after { top: -6px; right: -5px; }

/* Monospace label tag */
.stamp {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-dark);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-text-dark);
  background-color: var(--color-raw-linen);
  position: relative;
}

.stamp::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px dashed rgba(26, 26, 26, 0.2);
  pointer-events: none;
}

.stamp-green {
  border-color: var(--color-accent-green);
  color: var(--color-accent-green);
}
.stamp-green::before {
  border-color: rgba(45, 74, 45, 0.25);
}

/* Refined Tailored Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.8rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: white;
  color: var(--color-text-dark);
  position: relative;
}

.btn::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(26, 26, 26, 0.2);
  transition: var(--transition-smooth);
}

.btn:hover {
  background-color: var(--color-text-dark);
  color: var(--color-raw-linen);
}
.btn:hover::after {
  border-color: rgba(245, 240, 238, 0.35);
}

.btn-primary {
  background-color: var(--color-text-dark);
  color: var(--color-raw-linen);
}
.btn-primary::after {
  border-color: rgba(245, 240, 238, 0.35);
}
.btn-primary:hover {
  background-color: white;
  color: var(--color-text-dark);
}
.btn-primary:hover::after {
  border-color: rgba(26, 26, 26, 0.2);
}

.btn-secondary {
  border-color: var(--color-text-dark);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 
  HEADER 
*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
  border-bottom: 1px solid var(--color-text-dark);
  transition: var(--transition-smooth);
}

.logo-link {
  text-decoration: none;
  display: block;
  transition: var(--transition-fast);
}

.logo-link:hover {
  opacity: 0.85;
}

/* 
  FULLSCREEN NAVIGATION OVERLAY 
*/
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text-dark);
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  overflow: hidden;
}

.menu-overlay.open {
  transform: translateY(0);
}

.menu-left {
  flex: 1;
  display: none;
  background-color: var(--color-accent-green);
  color: var(--color-raw-linen);
  padding: 6rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(245, 240, 232, 0.1);
}

@media (min-width: 900px) {
  .menu-left {
    display: flex;
  }
}

.menu-right {
  flex: 1.2;
  padding: 6rem 8% 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: relative;
  background: var(--color-text-dark);
}

.menu-links {
  list-style: none;
  margin-top: 2rem;
}

.menu-links li {
  margin-bottom: 1.5rem;
}

.menu-links a {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-raw-linen);
  line-height: 1.1;
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  transition: var(--transition-smooth);
}

.menu-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-bottom: 2px solid var(--color-accent-green);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-links a:hover::after {
  width: 100%;
}

.menu-links a:hover {
  transform: translateX(12px);
}

/* 
  HERO SECTION 
*/
.hero {
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 4%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  color: white;
  opacity: 0.95;
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  border-color: white;
  color: white;
}

.hero-buttons .btn::after {
  display: none;
}

.hero-buttons .btn-primary {
  background: white;
  color: var(--color-text-dark);
}

.hero-buttons .btn:hover {
  background: white;
  color: var(--color-text-dark);
  border-color: white;
}

/* 
  VALUES / GRID 
*/
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background-color: transparent;
  padding: 2.5rem;
  border: 1px dashed rgba(26, 26, 26, 0.15);
  transition: var(--transition-smooth);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 
  PRODUCT DRAWER (CONSUMER DETAIL SIDE OVERLAY)
*/
.spec-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 580px;
  height: 100%;
  background: var(--color-raw-linen);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.08);
  z-index: 200;
  transition: right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-left: 1px solid var(--color-text-dark);
}

.spec-drawer.open {
  right: 0;
}

.spec-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.spec-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.spec-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--color-text-dark);
}

.spec-drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: var(--color-text-dark);
  padding: 0.5rem;
  transition: transform 0.3s;
}

.spec-drawer-close:hover {
  transform: rotate(90deg);
}

.spec-drawer-content {
  padding: 3rem;
}

/* Spec sheet tables (internal supplier details) */
.technical-specs {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--color-border);
}

.spec-label {
  color: var(--color-text-muted);
}

.spec-value {
  font-weight: 700;
  color: var(--color-text-dark);
}

.spec-quote-box {
  margin: 2rem 0;
  padding: 2.2rem;
  border: 1px solid var(--color-text-dark);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  text-align: center;
  background-color: white;
  position: relative;
}

.spec-quote-box::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed var(--color-border);
  pointer-events: none;
}

.spec-label-mockup {
  margin-top: 3.5rem;
  border: 1px solid var(--color-text-dark);
  padding: 2.5rem;
  background-color: white;
  text-align: center;
  position: relative;
}

.spec-label-mockup::after {
  content: 'WOVEN neck tag';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-bg);
  padding: 0 0.6rem;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-transform: uppercase;
}

/* Split Image Columns */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-section {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.split-image-wrapper {
  border: 1px solid var(--color-border);
  position: relative;
  padding: 6px;
  background-color: white;
}

.split-image-wrapper::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 11px;
  right: 11px;
  bottom: 11px;
  border: 1px dashed var(--color-border);
  pointer-events: none;
}

.split-image {
  width: 100%;
  height: 650px;
  object-fit: cover;
  background-color: var(--color-border);
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.split-image-wrapper:hover .split-image {
  transform: scale(1.03);
}

/* Contact Inputs */
.form-group {
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--color-text-dark);
  background: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--color-accent-green);
}

/* Share specifications buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-text-dark);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.share-btn:hover {
  background: var(--color-text-dark);
  color: var(--color-raw-linen);
}

.share-copy.copied {
  border-color: var(--color-accent-green);
  color: var(--color-accent-green);
}

/* B2B Color Grid */
.b2b-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.b2b-color-card {
  border: 1px solid var(--color-border);
  padding: 1rem;
  background: white;
  position: relative;
}

.b2b-color-card::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px dashed rgba(26,26,26,0.1);
  pointer-events: none;
}

.b2b-color-swatch {
  height: 80px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.b2b-color-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.b2b-color-hex {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* 
  FOOTER 
*/
.site-footer {
  background-color: var(--color-text-dark);
  color: var(--color-raw-linen);
  padding: 6rem 5% 4rem;
  font-family: var(--font-sans);
  border-top: 1px solid var(--color-text-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand p {
  color: var(--color-raw-linen);
  opacity: 0.75;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: var(--color-raw-linen);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-raw-linen);
  opacity: 0.65;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-stamp-box {
  border: 1px dashed rgba(245, 240, 232, 0.3);
  padding: 1.5rem;
  text-align: center;
  background-color: rgba(245, 240, 232, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-stamp-text {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-transform: uppercase;
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 
  INTERACTIVE TABS & ROTATION 
*/
.view-toggle-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-text-dark);
  background: white;
  color: var(--color-text-dark);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.view-toggle-btn::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px dashed rgba(26, 26, 26, 0.15);
}

.view-toggle-btn.active {
  background: var(--color-text-dark);
  color: var(--color-raw-linen);
}
.view-toggle-btn.active::before {
  border-color: rgba(245, 240, 232, 0.35);
}

.product-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-text-dark);
  padding: 8px;
  background: white;
}

.product-image-container::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 11px;
  right: 11px;
  bottom: 11px;
  border: 1px dashed rgba(26, 26, 26, 0.15);
  pointer-events: none;
  z-index: 2;
}

.back-print-overlay {
  position: absolute;
  top: 11px;
  left: 11px;
  right: 11px;
  bottom: 11px;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.product-image-container.show-back .back-print-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-image-container.show-back .product-image {
  transform: scaleX(-1);
}

/* 3D Spin Animation */
@keyframes spin3D {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.rotate-3d-active {
  animation: spin3D 8s linear infinite;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.rotate-3d-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: white;
  border: 1px solid var(--color-text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.rotate-3d-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px dashed rgba(26,26,26,0.15);
  border-radius: 50%;
}

.rotate-3d-btn:hover {
  background: var(--color-text-dark);
  color: white;
  transform: scale(1.1);
}
.rotate-3d-btn:hover::before {
  border-color: rgba(245,240,232,0.35);
}
