﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Instrument+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Global theme variables */
:root {
  --nova-primary: #8f5130;
  --nova-primary-rgb: 143, 81, 48;
  --nova-primary-dark: #6f3f23;
  --nova-font-family: "Plus Jakarta Sans", sans-serif;
  --nova-heading-family: "Cormorant Garamond", serif;
  --nova-body-bg: #120d0b;
  --nova-body-text: #f4ede6;
  --nova-surface-bg: #1b1412;
  --nova-surface-soft: #251b18;
  --nova-surface-text: #fff8f2;
  --nova-muted-text: #bcaea1;
  --nova-border-soft: rgba(243, 238, 232, 0.12);
  --nova-header-bg: rgba(20, 14, 12, 0.84);
  --nova-hero-overlay-start: rgba(18, 13, 11, 0.34);
  --nova-hero-overlay-end: rgba(18, 13, 11, 0.92);
  --nova-panel-bg: rgba(22, 16, 14, 0.94);
  --nova-panel-text: #f7efe8;
  --nova-panel-muted: rgba(247, 239, 232, 0.68);
}

html.nova-theme-light {
  --nova-body-bg: #f7f0e8;
  --nova-body-text: #231814;
  --nova-surface-bg: #fff8f2;
  --nova-surface-soft: #f1e4d8;
  --nova-surface-text: #231814;
  --nova-muted-text: #705f55;
  --nova-border-soft: rgba(44, 31, 22, 0.12);
  --nova-header-bg: rgba(255, 248, 242, 0.9);
  --nova-hero-overlay-start: rgba(247, 240, 232, 0.34);
  --nova-hero-overlay-end: rgba(247, 240, 232, 0.92);
  --nova-panel-bg: rgba(255, 248, 242, 0.96);
  --nova-panel-text: #231814;
  --nova-panel-muted: rgba(35, 24, 20, 0.62);
}

html.nova-theme-dark {
  --nova-body-bg: #0d0b0a;
  --nova-body-text: #f3eee8;
  --nova-surface-bg: #171312;
  --nova-surface-soft: #211b19;
  --nova-surface-text: #fffaf6;
  --nova-muted-text: #b7ab9d;
  --nova-border-soft: rgba(243, 238, 232, 0.12);
  --nova-header-bg: rgba(18, 14, 12, 0.84);
  --nova-hero-overlay-start: rgba(13, 11, 10, 0.38);
  --nova-hero-overlay-end: rgba(13, 11, 10, 0.9);
  --nova-panel-bg: rgba(18, 14, 12, 0.94);
  --nova-panel-text: #f7f1ea;
  --nova-panel-muted: rgba(247, 241, 234, 0.68);
}

body,
button,
input,
select,
textarea {
  font-family: var(--nova-font-family) !important;
}

body {
  background-color: var(--nova-body-bg) !important;
  color: var(--nova-body-text) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nova-heading-font {
  font-family: var(--nova-heading-family) !important;
}

.bg-primary {
  background-color: var(--nova-primary) !important;
}

.text-primary {
  color: var(--nova-primary) !important;
}

.border-primary {
  border-color: var(--nova-primary) !important;
}

.hover\:text-primary:hover {
  color: var(--nova-primary) !important;
}

.hover\:border-primary:hover {
  border-color: var(--nova-primary) !important;
}

.hover\:bg-primary:hover {
  background-color: var(--nova-primary) !important;
}

.focus\:border-primary:focus {
  border-color: var(--nova-primary) !important;
}

.focus\:ring-primary:focus {
  --tw-ring-color: var(--nova-primary) !important;
}

.bg-primary\/10 {
  background-color: rgba(var(--nova-primary-rgb), 0.1) !important;
}

.bg-primary\/20 {
  background-color: rgba(var(--nova-primary-rgb), 0.2) !important;
}

.border-primary\/30 {
  border-color: rgba(var(--nova-primary-rgb), 0.3) !important;
}

.border-primary\/50,
.hover\:border-primary\/50:hover {
  border-color: rgba(var(--nova-primary-rgb), 0.5) !important;
}

.bg-primary-dark,
.hover\:bg-primary-dark:hover {
  background-color: var(--nova-primary-dark) !important;
}

html.nova-theme-light .bg-dark,
html.nova-theme-light .bg-background,
html.nova-theme-light .bg-black,
html.nova-theme-light .bg-surface,
html.nova-theme-light .bg-\[\#0a0a0a\],
html.nova-theme-light .bg-\[\#1a0f0a\],
html.nova-theme-light .bg-\[\#121212\],
html.nova-theme-light .bg-stone-100,
html.nova-theme-light .bg-darkbg,
html.nova-theme-light .wood-texture > .absolute.inset-0.bg-dark\/90 {
  background-color: var(--nova-surface-bg) !important;
}

html.nova-theme-light .bg-dark\/50,
html.nova-theme-light .bg-background\/80,
html.nova-theme-light .bg-white\/80,
html.nova-theme-light .bg-white\/5,
html.nova-theme-light .bg-surface.p-6,
html.nova-theme-light .bg-surface.p-8,
html.nova-theme-light .bg-surface.p-4 {
  background-color: var(--nova-surface-soft) !important;
}

html.nova-theme-light .text-white,
html.nova-theme-light .text-gray-100,
html.nova-theme-light .text-stone-900,
html.nova-theme-light .text-stone-800,
html.nova-theme-light .text-\[\#f4f4f5\],
html.nova-theme-light .text-\[\#fdf8f5\] {
  color: var(--nova-surface-text) !important;
}

html.nova-theme-light .text-zinc-300,
html.nova-theme-light .text-zinc-400,
html.nova-theme-light .text-zinc-500,
html.nova-theme-light .text-gray-400,
html.nova-theme-light .text-gray-500,
html.nova-theme-light .text-gray-600,
html.nova-theme-light .text-\[\#fdf8f5\]\/50,
html.nova-theme-light .text-\[\#fdf8f5\]\/70,
html.nova-theme-light .text-\[\#fdf8f5\]\/40,
html.nova-theme-light .text-stone-200 {
  color: var(--nova-muted-text) !important;
}

html.nova-theme-light .border-white\/10,
html.nova-theme-light .border-white\/5,
html.nova-theme-light .border-\[\#fdf8f5\]\/10,
html.nova-theme-light .border-stone-200 {
  border-color: var(--nova-border-soft) !important;
}

html.nova-theme-light header[data-purpose="navigation-bar"] {
  background: var(--nova-header-bg) !important;
}

html.nova-theme-light header[data-purpose="navigation-bar"] a.text-white,
html.nova-theme-light header[data-purpose="navigation-bar"] span.text-white,
html.nova-theme-light header[data-purpose="navigation-bar"] button.text-white {
  color: var(--nova-body-text) !important;
}

html.nova-theme-light .hero-gradient {
  background: linear-gradient(to bottom, var(--nova-hero-overlay-start) 0%, var(--nova-hero-overlay-end) 100%);
}

html.nova-theme-light .map-container iframe {
  filter: sepia(0.1) brightness(1) contrast(1);
}

html.nova-theme-dark header[data-purpose="navigation-bar"] {
  background: var(--nova-header-bg) !important;
}

html.nova-theme-dark .bg-darkbg,
html.nova-theme-dark .bg-stone-100,
html.nova-theme-dark .bg-surface {
  background-color: var(--nova-surface-bg) !important;
}

html.nova-theme-dark .text-stone-900,
html.nova-theme-dark .text-stone-800 {
  color: var(--nova-surface-text) !important;
}

html.nova-theme-dark .text-stone-200,
html.nova-theme-dark .text-gray-400,
html.nova-theme-dark .text-gray-500,
html.nova-theme-dark .text-gray-600 {
  color: var(--nova-muted-text) !important;
}

html.nova-theme-dark .border-stone-200 {
  border-color: var(--nova-border-soft) !important;
}

html.nova-theme-dark .bg-\[\#1a0f0a\] {
  background-color: var(--nova-body-bg) !important;
}

html.nova-theme-dark .bg-\[\#1a0f0a\]\/80 {
  background-color: rgba(17, 13, 11, 0.82) !important;
}

html.nova-theme-dark .text-\[\#fdf8f5\] {
  color: var(--nova-surface-text) !important;
}

html.nova-theme-dark .text-\[\#fdf8f5\]\/70,
html.nova-theme-dark .text-\[\#fdf8f5\]\/50,
html.nova-theme-dark .text-\[\#fdf8f5\]\/40,
html.nova-theme-dark .text-gray-400 {
  color: var(--nova-muted-text) !important;
}

html.nova-theme-dark .border-\[\#fdf8f5\]\/10,
html.nova-theme-dark .border-\[\#fdf8f5\]\/20 {
  border-color: var(--nova-border-soft) !important;
}

/* Custom Typography & Layout */
.text-balance {
  text-wrap: balance;
}
.text-glow {
  text-shadow: 0 0 10px rgba(var(--nova-primary-rgb), 0.2);
}

/* Background Overlays */
.hero-gradient {
  background: linear-gradient(to bottom, var(--nova-hero-overlay-start) 0%, var(--nova-hero-overlay-end) 100%);
}
.wood-texture {
  background-image: url("https://images.pexels.com/photos/894695/pexels-photo-894695.jpeg?cs=srgb&dl=pexels-chevanon-894695.jpg&fm=jpg");
  background-size: cover;
  background-attachment: fixed;
}

/* Masonry Gallery */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Image Hover Effects */
.gallery-image-container img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-image-container:hover img {
  transform: scale(1.05);
}

/* Forms & UI Elements */
.form-input-focus:focus {
  border-color: var(--nova-primary);
  --tw-ring-color: var(--nova-primary);
}
.map-container iframe {
  filter: sepia(0.4) brightness(0.7) contrast(1.1) invert(0.9);
}

/* Theme customizer */
.nova-customizer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 20rem;
  max-width: calc(100vw - 4rem);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.nova-customizer.is-open {
  transform: translateX(0);
}

.nova-customizer__panel {
  position: relative;
  height: 100%;
  background: var(--nova-panel-bg);
  border-left: 1px solid var(--nova-border-soft);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--nova-panel-text);
  display: flex;
  flex-direction: column;
}

.nova-customizer__content {
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.nova-customizer__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nova-panel-muted);
}

.nova-customizer__title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.35rem 0 0;
}

.nova-customizer__description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--nova-panel-muted);
  margin: 0;
}

.nova-customizer__section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nova-customizer__section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nova-panel-muted);
}

.nova-customizer__swatches,
.nova-customizer__fonts {
  display: grid;
  gap: 0.75rem;
}

.nova-customizer__swatches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nova-customizer__swatch,
.nova-customizer__font {
  border: 1px solid var(--nova-border-soft);
  background: color-mix(in srgb, var(--nova-surface-bg) 82%, transparent);
  color: var(--nova-panel-text);
  border-radius: 14px;
  padding: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}

.nova-customizer__modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nova-customizer__mode {
  border: 1px solid var(--nova-border-soft);
  background: color-mix(in srgb, var(--nova-surface-bg) 82%, transparent);
  color: var(--nova-panel-text);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nova-customizer__mode:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--nova-primary-rgb), 0.35);
}

.nova-customizer__mode.is-active {
  border-color: rgba(var(--nova-primary-rgb), 0.8);
  box-shadow: inset 0 0 0 1px rgba(var(--nova-primary-rgb), 0.25);
}

.nova-customizer__swatch:hover,
.nova-customizer__font:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--nova-primary-rgb), 0.35);
  background: color-mix(in srgb, var(--nova-surface-soft) 86%, transparent);
}

.nova-customizer__swatch.is-active,
.nova-customizer__font.is-active {
  border-color: rgba(var(--nova-primary-rgb), 0.8);
  box-shadow: inset 0 0 0 1px rgba(var(--nova-primary-rgb), 0.25);
}

.nova-customizer__swatch-preview {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nova-customizer__swatch-label {
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nova-panel-text);
}

.nova-customizer__swatch-name,
.nova-customizer__font-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.nova-customizer__swatch-code,
.nova-customizer__font-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--nova-panel-muted);
}

.nova-customizer__swatch {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-customizer__actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.nova-customizer__reset {
  flex: 1;
  border: 1px solid var(--nova-border-soft);
  background: transparent;
  color: var(--nova-panel-text);
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.nova-customizer__handle,
.nova-customizer__buy {
  position: absolute;
  right: 100%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 0;
  border-radius: 18px 0 0 18px;
  padding: 1rem 0.85rem;
  min-height: 9rem;
  width: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: -12px 12px 30px rgba(0, 0, 0, 0.25);
}

.nova-customizer__handle {
  top: 50%;
  background: var(--nova-panel-bg);
  color: var(--nova-panel-text);
  border: 1px solid var(--nova-border-soft);
  border-right: 0;
}

.nova-customizer__buy {
  top: calc(50% + 9.75rem);
  background: var(--nova-primary);
  color: #111;
}

.nova-customizer__buy-label,
.nova-customizer__handle-label {
  pointer-events: none;
}

@media (max-width: 640px) {
  .nova-customizer {
    width: min(18rem, calc(100vw - 3rem));
  }

  .nova-customizer__handle,
  .nova-customizer__buy {
    width: 3rem;
    min-height: 7.5rem;
    padding: 0.8rem 0.65rem;
  }

  .nova-customizer__buy {
    top: calc(50% + 8.25rem);
  }
}

