/* ==========================================================================
   Dyt. Selin Alkan — Culinary Editorial Design System Stylesheet
   Palette: Warm Clay (#f5ede4), Deep Espresso (#3d2817), Mustard Gold (#d4a017)
   ========================================================================== */

:root {
  --color-canvas: #f5ede4;
  --color-espresso: #3d2817;
  --color-coffee: #28180d;
  --color-text-muted: #5c4300;
  --color-on-surface-variant: #5a4b41;
  --color-gold: #d4a017;
  --color-gold-light: #ffdfa0;
  --color-gold-dim: #f6be39;
  --color-surface-white: #ffffff;
  --color-surface-container: #ffeadf;
  --color-surface-dim: #f4d4c2;
  --border-light: rgba(43, 26, 15, 0.12);
  --border-dark: rgba(245, 237, 228, 0.18);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-subtle: 0 16px 36px -12px rgba(40, 24, 13, 0.08), 0 4px 12px -2px rgba(40, 24, 13, 0.04);
  --shadow-elevated: 0 24px 48px -12px rgba(40, 24, 13, 0.18), 0 8px 16px -4px rgba(40, 24, 13, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background-color: var(--color-canvas);
  color: var(--color-coffee);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-canvas);
  color: var(--color-coffee);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Strict Editorial Geometry (0px radius) */
.sharp-edges, 
button, 
input, 
textarea, 
select, 
.card-editorial {
  border-radius: 0px !important;
}

/* Typography Utility Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-canvas);
}

::-webkit-scrollbar-thumb {
  background: rgba(61, 40, 23, 0.3);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-espresso);
}

/* Editorial Hairline Dividers */
.hairline-light {
  border-color: var(--border-light);
}

.hairline-dark {
  border-color: var(--border-dark);
}

/* Nav Link Underline Hover Effect */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-coffee) !important;
  font-weight: 600;
}

/* Mobile Drawer Transitions */
#mobile-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#mobile-drawer.open {
  transform: translateX(0);
}

#drawer-backdrop {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Interactive Calculator Styles */
.calculator-card {
  background: var(--color-surface-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.3s ease;
}

.calculator-card:hover {
  box-shadow: var(--shadow-elevated);
}

.calc-meter-track {
  height: 8px;
  background: rgba(43, 26, 15, 0.08);
  position: relative;
  overflow: hidden;
}

.calc-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a017, #745945);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* SSS / FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.faq-button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), 0 8px 10px -6px rgba(37, 211, 102, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.whatsapp-floating:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -5px rgba(37, 211, 102, 0.5), 0 10px 12px -6px rgba(37, 211, 102, 0.3);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-espresso);
  color: var(--color-canvas);
  border: 1px solid var(--color-gold);
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-elevated);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

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

/* Interactive Card Hover Depth */
.card-hover-editorial {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-editorial:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(40, 24, 13, 0.09);
  border-color: rgba(212, 160, 23, 0.4);
}
