/* ============================================
   R&K Luxury Empire — Complete Stylesheet
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --gold: #c9a84c;
  --background: #fcfcf7;
  --foreground: #24201a;
  --muted: #f1efe8;
  --muted-foreground: #756e64;
  --border: #e5e2d8;
  --white: #ffffff;
  --black: #000000;
  --radius: 0.25rem;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
.font-serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;      line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;      line-height: 1.1; }
.text-7xl  { font-size: 4.5rem;    line-height: 1; }
.text-\[10px\]  { font-size: 10px; }
.text-\[11px\]  { font-size: 11px; }
.text-\[13px\]  { font-size: 13px; }
.font-semibold  { font-weight: 600; }
.font-medium    { font-weight: 500; }
.italic         { font-style: italic; }
.leading-none   { line-height: 1; }
.leading-tight  { line-height: 1.25; }

/* Tracking utilities */
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-\[0\.2em\]  { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\]  { letter-spacing: 0.3em; }
.tracking-\[0\.35em\] { letter-spacing: 0.35em; }
.tracking-\[0\.4em\]  { letter-spacing: 0.4em; }
.tracking-\[0\.5em\]  { letter-spacing: 0.5em; }

/* Text colors */
.text-white        { color: var(--white); }
.text-white\/80    { color: rgba(255,255,255,0.8); }
.text-white\/75    { color: rgba(255,255,255,0.75); }
.text-white\/70    { color: rgba(255,255,255,0.7); }
.text-white\/60    { color: rgba(255,255,255,0.6); }
.text-white\/50    { color: rgba(255,255,255,0.5); }
.text-white\/40    { color: rgba(255,255,255,0.4); }
.text-black        { color: var(--black); }
.text-foreground       { color: var(--foreground); }
.text-foreground\/80  { color: rgba(36,32,26,0.8); }
.text-foreground\/70  { color: rgba(36,32,26,0.7); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-gold        { color: var(--gold); }

/* Backgrounds */
.bg-background        { background-color: var(--background); }
.bg-background\/90    { background-color: rgba(252,252,247,0.9); }
.bg-black             { background-color: var(--black); }
.bg-white             { background-color: var(--white); }
.bg-\[#f6f1e6\]       { background-color: #f6f1e6; }

/* Borders */
.border          { border: 1px solid; }
.border-b        { border-bottom: 1px solid; }
.border-t        { border-top: 1px solid; }
.border-y        { border-top: 1px solid; border-bottom: 1px solid; }
.border-black\/10  { border-color: rgba(0,0,0,0.1); }
.border-black\/20  { border-color: rgba(0,0,0,0.2); }
.border-black      { border-color: var(--black); }
.border-white\/10  { border-color: rgba(255,255,255,0.1); }

/* Layout */
.min-h-screen { min-height: 100vh; }
.mx-auto      { margin-left: auto; margin-right: auto; }
.max-w-7xl    { max-width: 80rem; }
.max-w-3xl    { max-width: 48rem; }
.max-w-xl     { max-width: 36rem; }
.max-w-md     { max-width: 28rem; }
.max-w-sm     { max-width: 24rem; }
.px-6         { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2         { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4         { padding-top: 1rem; padding-bottom: 1rem; }
.py-5         { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-14        { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-24        { padding-top: 6rem; padding-bottom: 6rem; }
.py-28        { padding-top: 7rem; padding-bottom: 7rem; }
.py-3\.5      { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.p-6          { padding: 1.5rem; }
.p-10         { padding: 2.5rem; }
.px-7         { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-5         { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-4         { padding-left: 1rem; padding-right: 1rem; }
.pt-4         { padding-top: 1rem; }

/* Margins */
.mt-1   { margin-top: 0.25rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-3   { margin-top: 0.75rem; }
.mt-4   { margin-top: 1rem; }
.mt-5   { margin-top: 1.25rem; }
.mt-6   { margin-top: 1.5rem; }
.mt-10  { margin-top: 2.5rem; }
.mt-14  { margin-top: 3.5rem; }
.mb-3   { margin-bottom: 0.75rem; }
.mb-14  { margin-bottom: 3.5rem; }

/* Flexbox */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.items-end       { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-y-2  { row-gap: 0.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Sizing */
.h-full  { height: 100%; }
.w-full  { width: 100%; }
.h-3\.5  { height: 0.875rem; }
.w-3\.5  { width: 0.875rem; }
.h-4     { height: 1rem; }
.w-4     { width: 1rem; }
.h-9     { height: 2.25rem; }
.w-9     { width: 2.25rem; }

/* Spacing utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0  { bottom: 0; }
.top-0     { top: 0; }
.right-0   { right: 0; }
.z-40      { z-index: 40; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Aspect ratio */
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }

/* Transitions */
.transition        { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-700      { transition-duration: 700ms; }

/* Effects */
.opacity-60 { opacity: 0.6; }
.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Background gradients */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--black), rgba(0,0,0,0.7), transparent);
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
}

/* Black overlay corner for the card */
.bg-black\/90 { background-color: rgba(0,0,0,0.9); }

/* --- Specific Component Styles --- */

/* Top bar */
.top-bar {
  background-color: var(--black);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Nav */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: rgba(252,252,247,0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-link {
  color: rgba(36,32,26,0.8);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--foreground); }

.mobile-nav {
  display: none;
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background-color: var(--background);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.mobile-nav a {
  color: var(--foreground);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
}

/* Visit button */
.btn-visit {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--black);
  background-color: var(--black);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: background-color 0.15s;
}
.btn-visit:hover { background-color: #262626; }

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--black);
  color: var(--white);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--black), rgba(0,0,0,0.7), transparent);
}
.hero-content {
  position: relative;
  margin: 0 auto;
  max-width: 80rem;
  display: grid;
  gap: 1.5rem;
  padding: 7rem 1.5rem;
}
.hero-badge {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--gold);
}
.hero-heading {
  max-width: 48rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.05;
}
.hero-sub {
  display: block;
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

/* Hero buttons */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  transition: background-color 0.15s, color 0.15s;
}
.btn-outline:hover { background-color: var(--white); color: var(--black); }
.btn-solid {
  display: inline-block;
  background-color: var(--white);
  color: var(--black);
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  transition: background-color 0.15s;
}
.btn-solid:hover { background-color: rgba(255,255,255,0.9); }

/* Marquee */
.marquee-bar {
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: #f6f1e6;
}
.marquee-inner {
  margin: 0 auto;
  max-width: 80rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 3rem;
  row-gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(36,32,26,0.7);
}

/* Categories section */
.section-shop {
  margin: 0 auto;
  max-width: 80rem;
  padding: 6rem 1.5rem;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-badge {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.section-title {
  margin-top: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.section-desc {
  display: none;
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Category cards grid */
.categories-grid {
  display: grid;
  gap: 1.5rem;
}
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #f6f1e6;
}
.category-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.category-card:hover .category-img { transform: scale(1.05); }
.category-overlay {
  position: absolute;
  inset: 0;
  top: auto;
  bottom: 0;
  background-image: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
  padding: 1.5rem;
}
.category-tag {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.category-title {
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
}

/* About section */
.about-section {
  background-color: var(--black);
  color: var(--white);
}
.about-grid {
  margin: 0 auto;
  max-width: 80rem;
  display: grid;
  gap: 4rem;
  padding: 6rem 1.5rem;
  align-items: center;
}
.about-text p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
}
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.about-images img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-images img:last-child {
  margin-top: 2.5rem;
}

/* Visit section */
.visit-section {
  margin: 0 auto;
  max-width: 80rem;
  padding: 6rem 1.5rem;
}
.visit-grid {
  display: grid;
  gap: 3rem;
}
.visit-detail-icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--gold);
}
.visit-detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}
.visit-detail-value {
  margin-top: 0.25rem;
  color: var(--foreground);
}

/* Card in visit section */
.visit-card {
  position: relative;
  overflow: hidden;
  background-color: #f6f1e6;
  padding: 2.5rem 1.5rem;
}
.visit-card-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 8rem;
  height: 8rem;
  background-color: rgba(0,0,0,0.9);
  transform: translate(3rem, -3rem) rotate(45deg);
}
.visit-card-badge {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.visit-card-title {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.25;
}
.visit-card-desc {
  margin-top: 1.5rem;
  color: rgba(36,32,26,0.7);
}
.visit-card-btn {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--black);
  color: var(--white);
  padding: 1rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  transition: background-color 0.15s;
}
.visit-card-btn:hover { background-color: #262626; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  background-color: var(--black);
  color: var(--white);
}
.footer-grid {
  margin: 0 auto;
  max-width: 80rem;
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem;
}
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.footer-brand-sub {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.6);
}
.footer-desc {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-section-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}
.footer-links li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.footer-contact .icon { color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom-inner {
  margin: 0 auto;
  max-width: 80rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */

/* sm: >= 640px */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-heading { font-size: 4.5rem; }
  .hero-content { padding: 10rem 1.5rem; }
}

/* md: >= 768px */
@media (min-width: 768px) {
  .md\:flex         { display: flex; }
  .md\:inline-flex  { display: inline-flex; }
  .md\:block        { display: block; }
  .md\:grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, 1fr); }
  .btn-visit        { display: inline-flex; }
  .section-desc     { display: block; }
  .hero-heading     { font-size: 4.5rem; }
  .hero-content     { padding: 10rem 1.5rem; }
  .section-title    { font-size: 3rem; line-height: 1; }
  .about-grid       { grid-template-columns: repeat(2, 1fr); }
  .visit-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: repeat(3, 1fr); }
  .categories-grid  { grid-template-columns: repeat(2, 1fr); }
  .visit-card       { padding: 3.5rem; }
}

/* lg: >= 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Hamburger Button --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--foreground);
  transition: transform 0.2s;
}

/* --- 404 Page --- */
.page-404 {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  padding: 0 1rem;
}
.page-404-inner {
  max-width: 28rem;
  text-align: center;
}
.page-404 h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--foreground);
}
.page-404 h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}
.page-404 p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.page-404 .btn-home {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.page-404 .btn-home:hover { opacity: 0.9; }

/* Admin panel */
.admin-wrap {
  min-height: 100vh;
  background: #f5f5f0;
  font-family: 'Inter', system-ui, sans-serif;
}
.admin-wrap h1 { color: var(--foreground); }
.admin-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
}
.admin-form textarea { min-height: 80px; resize: vertical; }
.admin-form .field { margin-bottom: 1rem; }
.admin-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-btn {
  padding: 0.625rem 1.25rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.admin-btn:hover { opacity: 0.85; }
.admin-btn-danger {
  background: #dc2626;
}
.admin-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.admin-msg-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.admin-msg-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
