/* Bodhi Swan Ceramics - Minimalist Design inspired by Florian Gadsby */

/* ===== CSS RESET & VARIABLES ===== */
:root {
  /* Global Style Tokens */
  --bg: #ffffff;
  --ink: #111;
  --ink-2: #333;
  --muted: #6b7280;
  --brand: #0f172a;
  --accent: #d4af37;
  --tile: #f5f5f5;
  --tile-border: #e5e7eb;
  --tile-hover: #eaeaea;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  
  /* Legacy Color Palette (maintained for compatibility) */
  --color-black: #111;
  --color-dark-gray: #333;
  --color-gray: #6b7280;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-cream: #fefcf8;
  
  /* Typography */
  --font-serif: 'Crimson Text', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  
  /* Spacing (legacy) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --container-width: 1200px;
  --content-width: 800px;
  
  /* Transitions */
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  color: var(--color-black);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: var(--weight-regular);
  color: var(--color-dark-gray);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-gray);
}

.nav-link.active {
  color: var(--color-black);
}

.nav-link.active:hover {
  color: var(--color-black);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--color-black);
  transition: all var(--transition);
}

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

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

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

.nav-mobile {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--color-white);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition);
  z-index: 999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-menu {
  list-style: none;
  padding: var(--space-lg) var(--space-md);
}

.nav-mobile-menu li {
  margin-bottom: var(--space-md);
}

.nav-mobile-menu a {
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
  color: var(--color-dark-gray);
  display: block;
  padding: var(--space-xs) 0;
  text-transform: lowercase;
}

/* ===== HERO SECTION ===== */
.hero-main {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 80px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  bottom: var(--space-3xl);
  left: var(--space-md);
  z-index: 2;
}

.hero-text {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--weight-light);
  color: var(--color-gray);
  font-style: italic;
  margin: 0;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: var(--weight-regular);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-black);
}

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

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section:first-of-type {
  margin-top: 80px; /* Account for fixed navigation */
}

.announcement {
  padding: var(--space-3xl) 0;
  background: var(--color-cream);
  text-align: center;
}

.announcement-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin-bottom: var(--space-lg);
}

.announcement-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: var(--space-xs);
}

.announcement-details {
  font-size: 1rem;
  color: var(--color-dark-gray);
  margin-bottom: var(--space-xl);
}

.announcement-actions {
  margin-top: var(--space-xl);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-3xl) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin-bottom: var(--space-lg);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-dark-gray);
  max-width: 600px;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* ===== GALLERY PREVIEW ===== */
.gallery-preview {
  padding: var(--space-3xl) 0;
  background: var(--color-light-gray);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

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

.gallery-item {
  aspect-ratio: 4/5;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-3xl) 0;
}

.contact-content {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin-bottom: var(--space-2xl);
}

.contact-info {
  display: grid;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-label {
  font-weight: var(--weight-medium);
  color: var(--color-dark-gray);
  text-transform: lowercase;
}

.contact-value,
.contact-link {
  color: var(--color-black);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .hero-content {
    left: var(--space-2xl);
    bottom: var(--space-3xl);
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-item {
    justify-content: center;
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }
  
  .nav-container {
    padding: 0 var(--space-2xl);
  }
  
  .hero-content {
    left: var(--space-3xl);
  }
}

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

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.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); }

/* ===== DISABLE HOVER EFFECTS ===== */
.card[style*="opacity: 0.4"],
.card[style*="dashed"] {
  transition: none !important;
  transform: none !important;
}

.card[style*="opacity: 0.4"]:hover,
.card[style*="dashed"]:hover {
  transform: none !important;
  box-shadow: none !important;
  scale: none !important;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  color: var(--color-black);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-gray);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: var(--weight-light);
  color: var(--color-gray);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-black);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 0 var(--space-lg) 0;
}

.faq-answer-content p {
  margin: 0;
  color: var(--color-dark-gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  transition: max-height 0.3s ease-in;
}

/* Responsive FAQ styles */
@media (max-width: 768px) {
  .faq-question {
    font-size: 1.1rem;
    padding: var(--space-md) 0;
  }
  
  .faq-icon {
    font-size: 1.25rem;
    margin-left: var(--space-sm);
  }
  
  .faq-answer-content {
    padding: 0 0 var(--space-md) 0;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--tile-border);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-item {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: var(--weight-regular);
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.footer-item:hover {
  color: var(--ink);
}

.footer-item:not(:last-child)::after {
  content: "•";
  color: var(--muted);
  margin-left: var(--space-lg);
  font-weight: var(--weight-regular);
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--weight-light);
  color: var(--muted);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--tile-border);
  letter-spacing: 0.02em;
}

/* ===== GLOBAL UTILITY STYLES ===== */
.tile {
  background: var(--tile);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

a.button {
  display: inline-block;
  border-radius: 12px;
  padding: .7rem 1rem;
  border: 1px solid var(--tile-border);
  text-decoration: none;
}

a.button:hover {
  background: var(--tile-hover);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
  }
  
  .footer-info {
    gap: var(--space-lg);
    flex-direction: column;
  }
  
  .footer-item {
    font-size: 0.8rem;
  }
  
  .footer-copyright {
    font-size: 0.7rem;
  }
}
