/* =========================================================
   NORALA — Design tokens
   Warm light brown and cream palette.
   Headings set in Georgia to match the wordmark's serif;
   body copy in a plain system sans for contrast/legibility.
   ========================================================= */

:root {
  --ink: #6e4c37;          /* warm light brown for header/footer/dark sections */
  --brown: #6e4c37;        /* warm light brown — primary brand color */
  --brown-deep: #6e4c37;   /* keep panels within the brown palette */
  --brown-light: #8a6b50;  /* lighter leather tone for borders/hover */
  --cream: #f3ede1;        /* warm cream — light backgrounds */
  --cream-dim: #e7ddc9;    /* slightly deeper cream for section breaks */
  --paper: #faf7f0;        /* near-white paper tone for cards on cream */
  --brass: #6e4c37;        /* brown accent */
  --brass-light: #8a6b50;  /* lighter brown accent */
  --text-on-dark: #ece4d6;
  --text-on-dark-dim: #b8ab97;
  --text-on-light: #241a15;
  --text-on-light-dim: #5b4d40;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --edge: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(110, 76, 55, 0.25);
  box-shadow: 0 8px 24px rgba(36, 26, 21, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  color: var(--text-on-dark);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
}

.compass-mark {
  /* Exact customer-provided compass artwork. The white image background
     blends into the site surface; contain keeps it within its logo slot. */
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-brand img.compass-mark { width: 26px; height: 26px; max-width: 26px; flex: 0 0 26px; }

.nav-brand-text {
  display: flex;
  line-height: 1;
}

.nav-brand-text .wordmark {
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  color: var(--text-on-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-on-dark);
  border-color: var(--brass);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(110, 76, 55, 0.5);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-on-dark-dim);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.05em;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--brass);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.5rem var(--edge) 2rem;
    border-bottom: 1px solid rgba(110, 76, 55, 0.25);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions { display: flex; align-items: center; gap: 1rem; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-dark);
  background: var(--ink);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 62% at 50% 56%, rgba(58,42,34,0.85) 0%, rgba(58,42,34,0.55) 55%, rgba(58,42,34,0.25) 100%),
    linear-gradient(180deg, rgba(58,42,34,0.6) 0%, rgba(58,42,34,0.32) 30%, rgba(58,42,34,0.7) 100%);
}

.hero-content {
  padding: 6rem var(--edge) 5rem;
  max-width: 780px;
}

.hero-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.75rem;
  opacity: 1;
  display: block;
  filter: invert(1) drop-shadow(0 1px 6px rgba(36, 26, 21, 0.35));
  mix-blend-mode: screen;
}

.hero-content .wordmark {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 18px rgba(36, 26, 21, 0.45);
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--cream-dim);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(36, 26, 21, 0.4);
}

.hero-sub {
  color: var(--text-on-dark-dim);
  margin: 0 auto 2.4rem;
  max-width: 46ch;
  text-shadow: 0 1px 10px rgba(36, 26, 21, 0.4);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--cream);
  color: var(--ink);
}
.btn-primary:hover { background: var(--cream-dim); }

.btn-ghost {
  border-color: rgba(236, 228, 214, 0.45);
  color: var(--text-on-dark);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn-dark {
  border-color: rgba(36, 26, 21, 0.35);
  color: var(--text-on-light);
}
.btn-dark:hover { border-color: var(--brown); background: var(--brown); color: var(--text-on-dark); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */

section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-brown { background: var(--brown); color: var(--text-on-dark); }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: block;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-on-light-dim); }
.section-dark .section-head p, .section-brown .section-head p { color: var(--text-on-dark-dim); }

/* ---------------------------------------------------------
   Product spotlight (split layout)
   --------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media,
  .split.reverse .split-copy { order: initial; }
}

.split-media img {
  width: 100%;
  border-radius: 2px;
}

.frame {
  background: var(--paper);
  border: 1px solid var(--cream-dim);
  padding: clamp(1rem, 3vw, 2.2rem);
}
.section-dark .frame, .section-brown .frame {
  background: rgba(255,255,255,0.03);
  border-color: rgba(236,228,214,0.15);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Craftsmanship strip
   --------------------------------------------------------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(236,228,214,0.12);
}

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.detail-item { background: var(--ink); padding: 0; }
.detail-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-caption {
  padding: 1rem 1.1rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-dim);
}

/* ---------------------------------------------------------
   Stat / guarantee band
   --------------------------------------------------------- */

.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3.25rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .band { grid-template-columns: 1fr; gap: 3rem; }
  .band > div + div { border-top: 1px solid rgba(236,228,214,0.14); padding-top: 3rem; }
}

@media (min-width: 761px) {
  .band > div + div { border-left: 1px solid rgba(236,228,214,0.14); }
}

.band-figure {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--brass-light);
  margin-bottom: 0.9rem;
  font-variant-numeric: lining-nums;
}

.band-label {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Cards (used on About / Contact)
   --------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--cream-dim);
  padding: 2rem 1.8rem;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.card p { color: var(--text-on-light-dim); margin-bottom: 0; font-size: 0.95rem; }

/* ---------------------------------------------------------
   Product page specific
   --------------------------------------------------------- */

.product-hero {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.gallery-main { margin-bottom: 0.9rem; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--brass); }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 1.4rem 0 1.6rem;
}

.price {
  font-family: var(--serif);
  font-size: 2.1rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-on-light-dim);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.94rem;
}

.spec-table tr { border-bottom: 1px solid var(--cream-dim); }
.spec-table td { padding: 0.65rem 0; }
.spec-table td:first-child { color: var(--text-on-light-dim); width: 42%; }

.notice {
  border-left: 3px solid var(--brass);
  background: var(--cream-dim);
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--text-on-light-dim);
  margin-bottom: 1.8rem;
}

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--text-on-light-dim);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--cream-dim);
  background: var(--paper);
  color: var(--text-on-light);
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-info dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-top: 1.4rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.2rem 0 0;
  color: var(--text-on-light-dim);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-dim);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--serif);
  color: var(--text-on-dark);
  letter-spacing: 0.18em;
  font-size: 1.1rem;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brass-light);
  margin-bottom: 0.8rem;
}

.footer-col a, .footer-col p {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--text-on-dark-dim);
}
.footer-col a:hover { color: var(--text-on-dark); }

.footer-bottom {
  border-top: 1px solid rgba(236,228,214,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-i18n] { transition: opacity 0.15s ease; }
