/* ============================================
   EARTH & ETHER - Tactile Futurism Design
   Pottery & Ceramics Studio
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #3D3D3D; /* Terra Ash */
  --color-secondary: #F2F0EF; /* Raw Kaolin */
  --color-accent: #0047AB; /* Glaze Cobalt */
  --color-highlight: #B7410E; /* Burnt Ochre */
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA;
  
  /* Typography */
  --font-primary: 'Syne', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Border & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(61, 61, 61, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 61, 61, 0.12);
  --shadow-lg: 0 8px 32px rgba(61, 61, 61, 0.16);
  --shadow-neu: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.9);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

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

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

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

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(61, 61, 61, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(183, 65, 14, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

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

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

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* ============================================
   HEADER
   ============================================ */

header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 61, 61, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}

.nav-menu li a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

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

/* Burger Menu - Always visible in header */
.burger-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.burger-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

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

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

/* Mobile Navigation - Opens separately from header */
@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(61, 61, 61, 0.1);
    z-index: 998;
    overflow-y: auto;
    border-top: 1px solid rgba(61, 61, 61, 0.08);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-sm) 0;
    font-size: 1rem;
  }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
}

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

main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* ============================================
   HERO BANNER (Full Width)
   ============================================ */

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

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.4) 0%, rgba(0, 71, 171, 0.3) 100%);
  z-index: 2;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-md);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */

.section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Grid Layouts - Centered and balanced */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 100%;
  margin: 0 auto;
  justify-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 100%;
  margin: 0 auto;
  justify-items: center;
}

/* Card Styles */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

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

.card-image {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

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

.card-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Neumorphic Button */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-highlight);
  color: black;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: white;
}

/* ============================================
   BANNER SECTIONS (Full Width with Image Under Text)
   ============================================ */

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

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.5) 0%, rgba(0, 71, 171, 0.4) 100%);
  z-index: 2;
}

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

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.banner-content h2 {
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-md);
}

.banner-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg-alt);
}

.contact-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-form {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(61, 61, 61, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-base);
  background: var(--color-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.875rem;
  cursor: pointer;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.info-card p {
  margin-bottom: var(--space-xs);
}

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

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

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info {
  padding: var(--space-lg);
}

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

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

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

footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

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

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

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-xs);
}

.footer-menu a {
  color: rgba(242, 240, 239, 0.8);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(242, 240, 239, 0.2);
  font-size: 0.875rem;
  color: rgba(242, 240, 239, 0.6);
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(150%);
  transition: transform var(--transition-slow);
}

.privacy-popup.active {
  transform: translateY(0);
}

.privacy-popup p {
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

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

/* ============================================
   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); }

.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); }

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

@media (max-width: 1024px) {
  .grid-2,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .hero-banner,
  .banner-section {
    height: 50vh;
    min-height: 400px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  header {
    padding: var(--space-sm) var(--space-md);
  }

  .hero-banner,
  .banner-section {
    height: 40vh;
    min-height: 300px;
  }

  .card,
  .contact-form,
  .info-card {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1rem;
  }

  .hero-content,
  .banner-content {
    padding: var(--space-md);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   KINETIC ROTATION EFFECT (Pottery Spin)
   ============================================ */

.pottery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.pottery-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pottery-item:hover img {
  transform: rotateY(360deg);
}

.pottery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  font-family: var(--font-secondary);
  font-weight: 600;
}

.pottery-item:hover .pottery-overlay {
  opacity: 1;
}

/* ============================================
   UTILITY CLASSES (Replacing Inline Styles)
   ============================================ */

.bg-alt {
  background: var(--color-bg-alt);
}

.policy-container {
  max-width: 800px;
}

.policy-date {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.policy-list {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.centered-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered-content {
  max-width: 600px;
}

.error-code {
  font-size: 6rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.large-text {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.button-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.small-note {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.test-tile {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.test-tile-iron {
  background: linear-gradient(135deg, #3D3D3D 0%, #6B6B6B 100%);
}

.test-tile-cobalt {
  background: linear-gradient(135deg, #0047AB 0%, #0066CC 100%);
}

.test-tile-copper {
  background: linear-gradient(135deg, #B7410E 0%, #D2691E 100%);
}

.test-tile-titanium {
  background: linear-gradient(135deg, #F2F0EF 0%, #E0E0E0 100%);
}

.test-tile-title {
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.test-tile-text {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.map-iframe {
  border: 0;
}

.privacy-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.max-width-text {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

