/* ============================================
   THE PAPER PRISM - Neumorphic & Tactile Design
   Artisanal Stationery & Paper Goods
   ============================================ */

:root {
  /* Color Palette - Pressed Cream & Oxford Blue */
  --color-bg-primary: #FFFBF5;
  --color-bg-secondary: #F8F5ED;
  --color-text-primary: #2E3B4E;
  --color-text-secondary: #5A6B7D;
  --color-accent-primary: #2E3B4E;
  --color-accent-secondary: #D8C3A5;
  --color-accent-highlight: #E63946;
  --color-border: #E8E0D0;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Courier Prime', 'Courier New', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows - Neumorphic */
  --shadow-soft: 4px 4px 8px rgba(0, 0, 0, 0.06), -4px -4px 8px rgba(255, 255, 255, 0.9);
  --shadow-inset: inset 2px 2px 4px rgba(0, 0, 0, 0.06), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
  --shadow-elevated: 8px 8px 16px rgba(0, 0, 0, 0.08), -8px -8px 16px rgba(255, 255, 255, 0.9);
  --shadow-pressed: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-highlight);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: var(--color-bg-primary);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-md);
  position: relative;
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--shadow-inset);
  color: var(--color-text-primary);
}

/* Burger Menu Button - Always in Header */
.burger-toggle {
  display: flex;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 10001;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.burger-toggle:hover {
  background: var(--shadow-inset);
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.burger-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu - Opens Separately from Header */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 59, 78, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-3xl) var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: transparent;
  border: none;
  color: var(--color-bg-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
  margin: var(--space-4xl) auto 0;
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-base);
  color: var(--color-bg-primary);
  font-size: 1.125rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

/* Responsive Navigation */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
  }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   HERO BANNER - Full Width
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  margin: var(--space-xl) auto;
}

.hero-title {
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.content-section {
  padding: var(--space-4xl) var(--space-md);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent-secondary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* ============================================
   GRID LAYOUTS - Centered & Beautiful
   ============================================ */

.grid-container {
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-2xl) auto 0;
  width: 100%;
  justify-items: center;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 100%;
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 100%;
}

.grid-four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 100%;
}

.grid-item {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.grid-item:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.grid-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-inset);
}

.grid-item-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.grid-item-text {
  color: var(--color-text-secondary);
  flex-grow: 1;
}

/* ============================================
   BANNER SECTIONS - Image Under Text
   ============================================ */

.banner-section {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: var(--space-4xl) 0;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

/* ============================================
   BUTTONS - Neumorphic Pressed Effect
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-primary);
  margin-top: 10px;
}

.btn:hover {
  box-shadow: var(--shadow-pressed);
  transform: translateY(2px);
}

.btn:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-text-primary);
  color: white;
  box-shadow: var(--shadow-pressed);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-container {
  max-width: var(--max-width-narrow);
  margin: var(--space-2xl) auto;
  padding: var(--space-2xl);
  background: var(--color-bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-inset);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(46, 59, 78, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-accent-primary);
}

.checkbox-label {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.product-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-inset);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-primary);
  font-family: var(--font-secondary);
  margin-top: var(--space-md);
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: var(--space-2xl) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-bg-secondary);
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-4xl);
  border-top: 1px solid var(--color-border);
}

.footer-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }
  
  .content-section {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero-content,
  .banner-content {
    padding: var(--space-xl) var(--space-md);
    margin: var(--space-md);
  }
  
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .brand-name {
    font-size: 1.125rem;
  }
  
  .hero-banner,
  .banner-section {
    min-height: 40vh;
  }
}

/* ============================================
   PRIVACY POPUP (if needed)
   ============================================ */

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  max-width: 400px;
  background: var(--color-bg-primary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  z-index: 1000;
  border: 1px solid var(--color-border);
}

.privacy-popup.active {
  display: block;
}

.privacy-popup-content {
  margin-bottom: var(--space-md);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ============================================
   ERROR PAGE (404)
   ============================================ */

.error-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-md);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-xl);
  color: var(--color-text-secondary);
}

