/* ═══════════════════════════════════════════════
   Curated Cornerr — Design System CSS
   Theme: Quiet Luxury · Tactile Elegance
   ═══════════════════════════════════════════════ */

/* --- Google Fonts loaded in HTML --- */

:root {
  /* Colors — Aurelian Texture palette */
  --surface: #fcf9f5;
  --surface-dim: #dcdad6;
  --surface-container-low: #f6f3ef;
  --surface-container: #f0ede9;
  --surface-container-high: #eae8e4;
  --surface-container-highest: #e5e2de;
  --on-surface: #1c1c1a;
  --on-surface-variant: #444748;
  --primary: #1A1A1A;
  --on-primary: #ffffff;
  --secondary: #C5A059;
  --secondary-dark: #775a19;
  --on-secondary: #ffffff;
  --outline: #747878;
  --outline-variant: #c4c7c7;

  /* Typography */
  --font-display: 'Bodoni Moda', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --unit: 8px;
  --gutter: 32px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --section-gap: 100px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Typography ─── */
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.label-caps {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--margin-desktop); }
}

.section-gap {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

@media (max-width: 767px) {
  :root { --section-gap: 60px; }
}

/* ─── Header / Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
  transition: transform 0.3s ease;
}

.site-header.hidden-header {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  height: 72px;
}

@media (min-width: 768px) {
  .header-inner { padding: 0 var(--margin-desktop); }
}

.header-nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--on-surface);
  border-bottom-color: var(--on-surface);
}

.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .header-brand {
    position: static;
    transform: none;
  }
}

.header-brand img {
  height: 40px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions button {
  padding: 8px;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

.header-actions button:hover { color: var(--secondary); }

.mobile-menu-btn {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 99;
  padding: 40px var(--margin-mobile);
}

.mobile-menu.open { display: flex; flex-direction: column; gap: 24px; }

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-variant);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.25);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--margin-mobile);
  color: var(--on-primary);
}

.hero-content h1 {
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-content p {
  max-width: 560px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.1);
  opacity: 0.95;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  color: var(--on-secondary);
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-gold {
  display: inline-block;
  background: var(--secondary);
  color: var(--on-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: var(--secondary-dark);
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--primary);
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--secondary);
  margin: 0 auto 20px;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--on-surface-variant);
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Product Card ─── */
.product-card {
  cursor: pointer;
}

.product-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-container-high);
  margin-bottom: 20px;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.product-card .card-info {
  text-align: center;
}

.product-card .card-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary);
}

.product-card .card-info .card-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.product-card .card-info .card-price {
  font-size: 14px;
  color: var(--secondary-dark);
  font-weight: 500;
}

.product-card .card-info .card-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .card-info .card-cta {
  opacity: 1;
}

/* ─── Feature / Craft Section ─── */
.craft-section {
  background: var(--surface-container-low);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .craft-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.craft-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.craft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.04);
}

.craft-image:hover img {
  transform: scale(1.03);
}

.craft-text h2 {
  margin-bottom: 28px;
  color: var(--primary);
}

.craft-text p {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ─── Enquiry Form ─── */
.enquiry-section {
  background: var(--surface-container-low);
}

.enquiry-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.form-success.show { display: block; }

.form-success h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.form-success p {
  color: var(--on-surface-variant);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(196, 199, 199, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--margin-mobile) 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    padding: var(--section-gap) var(--margin-desktop) 40px;
  }
}

.footer-brand p {
  color: var(--on-surface-variant);
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--on-surface-variant);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--secondary); }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--margin-mobile);
  border-top: 1px solid var(--outline-variant);
  text-align: center;
  font-size: 13px;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-bottom { padding: 24px var(--margin-desktop); text-align: left; }
}

/* ─── Product Detail Page ─── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .product-hero {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    padding: 0;
  }
}

.product-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-container-low);
}

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

.product-gallery:hover img {
  transform: scale(1.02);
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-details h1 {
  margin-bottom: 8px;
  color: var(--primary);
}

.product-details .product-subtitle {
  color: var(--on-surface-variant);
  margin-bottom: 28px;
  font-size: 18px;
}

.product-details .product-desc {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.7;
}

.spec-table {
  width: 100%;
  margin-bottom: 36px;
}

.spec-table .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-container-highest);
  font-size: 15px;
}

.spec-table .spec-row span:first-child {
  color: var(--on-surface-variant);
}

.spec-table .spec-row span:last-child {
  color: var(--primary);
  font-weight: 500;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-actions .btn-primary,
.product-actions .btn-outline {
  width: 100%;
  text-align: center;
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 20px 0;
}

.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--outline); }

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-secondary { color: var(--secondary); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
