/* ==========================================================================
   BLACK OAK STUDIO - MASTER STYLESHEET
   Aesthetic: Classy, Woodsy, Artisanal, Human-Crafted
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* --- Root Color Variables --- */
:root {
  --bg-dark: #120A07;
  --bg-surface: #190E0B;
  --bg-card: #201410;
  --bg-card-hover: #2B1812;
  --wood-warm: #8C5A2B;
  --wood-dark: #4A2B12;
  --wood-light: #C29668;
  --accent-gold: #C8A261;
  --accent-gold-bright: #E5C37E;
  --accent-gold-dark: #916F35;
  --accent-green: #38572D;
  --accent-green-bright: #527A43;
  --text-main: #F7F4EE;
  --text-muted: #B0A597;
  --text-dark: #120A07;
  --border-gold: rgba(200, 162, 97, 0.28);
  --border-wood: rgba(140, 90, 43, 0.35);
  --shadow-warm: 0 12px 35px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px rgba(200, 162, 97, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(35, 20, 15, 0.8) 0%, transparent 75%),
    radial-gradient(circle at 100% 100%, rgba(20, 12, 8, 0.9) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, .font-serif {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

p {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
}

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

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

.text-gold {
  color: var(--accent-gold) !important;
}

.text-cream {
  color: var(--text-main) !important;
}

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

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* --- Navigation Header --- */
.site-header {
  background: rgba(18, 10, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-main);
  line-height: 1;
}

.nav-brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-top: 2px;
}

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

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold-bright);
}

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

/* Cart Icon Button */
.cart-trigger-btn {
  background: rgba(200, 162, 97, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.cart-trigger-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.cart-badge {
  background: var(--accent-green);
  color: #FFF;
  border-radius: 50%;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Buttons & UI Controls --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  background: rgba(200, 162, 97, 0.12);
  color: var(--accent-gold-bright);
  transform: translateY(-2px);
}

.btn-wood {
  background: linear-gradient(135deg, var(--wood-warm) 0%, var(--wood-dark) 100%);
  color: var(--text-main);
  border-color: rgba(255,255,255,0.1);
}

.btn-wood:hover {
  background: linear-gradient(135deg, var(--wood-light) 0%, var(--wood-warm) 100%);
  color: #FFF;
  transform: translateY(-2px);
}

/* --- Handcrafted Decorative Flourish --- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.flourish-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.flourish-leaf {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

/* --- Page Hero Banner (General) --- */
.page-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(32, 20, 16, 0.8) 0%, transparent 80%);
  border-bottom: 1px solid var(--border-wood);
  margin-bottom: 3rem;
}

.page-title {
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* --- HOMEPAGE SPECIFIC (Simple, Classy, Woodsy) --- */
.home-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - 180px);
  position: relative;
}

.home-card {
  background: rgba(25, 14, 11, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 750px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-warm), inset 0 0 40px rgba(0,0,0,0.5);
  position: relative;
  backdrop-filter: blur(10px);
}

.home-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px stroke var(--border-gold);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  opacity: 0.4;
}

.home-logo-container {
  margin-bottom: 2rem;
}

.home-logo-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.8));
  transition: var(--transition);
}

.home-logo-img:hover {
  transform: scale(1.02);
}

.contact-info-badge {
  background: rgba(18, 10, 7, 0.7);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.contact-item svg {
  color: var(--accent-gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-main);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent-gold-bright);
}

/* Social Media Logos / Links */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 1.8rem 0 2.2rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 162, 97, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-glow);
}

/* Home Quick Links */
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-nav-card {
  background: rgba(32, 20, 16, 0.9);
  border: 1px solid var(--border-wood);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.home-nav-card:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.home-nav-card h4 {
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.home-nav-card p {
  font-size: 0.78rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* --- GALLERY PAGE --- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(32, 20, 16, 0.6);
  border: 1px solid var(--border-wood);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-warm), var(--shadow-glow);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #140C0A;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(18, 10, 7, 0.9) 0%, rgba(18, 10, 7, 0.2) 60%, transparent 100%);
  opacity: 0.85;
  transition: var(--transition);
}

.gallery-info {
  padding: 1.25rem 1.5rem;
}

.gallery-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.gallery-meta {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 5, 4, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-warm);
}

.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
}

.modal-img-container {
  height: 380px;
  background: #000;
}

.modal-img-container img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Notice Helper Box for Owner */
.gallery-owner-note {
  background: rgba(42, 28, 20, 0.6);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.8rem;
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-owner-note svg {
  color: var(--accent-gold);
  width: 28px; height: 28px;
  flex-shrink: 0;
}

/* --- STORE PAGE --- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-warm), var(--shadow-glow);
}

.product-img-box {
  width: 100%;
  height: 230px;
  background: #140C0A;
  position: relative;
  overflow: hidden;
}

.product-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(18, 10, 7, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.product-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.product-price {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  margin-bottom: 1.2rem;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
}

.product-actions .btn {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.8rem;
}

/* Shopping Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 100%; max-width: 420px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  z-index: 2500;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-wood);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img {
  width: 65px; height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.cart-item-price {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-wood);
  background: rgba(18, 10, 7, 0.95);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* Square Checkout Container */
.square-info-banner {
  background: rgba(30, 45, 25, 0.6);
  border: 1px solid var(--accent-green-bright);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.square-info-banner svg {
  color: var(--accent-gold);
  width: 28px; height: 28px; flex-shrink: 0;
}

/* --- CONTACT LEAD FORM PAGE --- */
.contact-section {
  padding: 2rem 0 5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-warm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(18, 10, 7, 0.7);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(200, 162, 97, 0.2);
  background: rgba(25, 14, 11, 0.9);
}

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

/* --- SITE FOOTER --- */
.site-footer {
  background: #0A0504;
  border-top: 1px solid var(--border-wood);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Overlay Backdrop */
.overlay-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2400;
}

.overlay-backdrop.active {
  display: block;
}
