/* HAJY — shared styles */

:root {
  --color-primary: #1b4332;
  --color-primary-light: #2d6a4f;
  --color-primary-dark: #12301f;
  --color-accent: #b8902e;
  --color-accent-light: #d4af5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f1;
  --color-bg-dark: #12301f;
  --color-text: #1f2421;
  --color-text-muted: #5b6660;
  --color-text-inverse: #f4f3ee;
  --color-border: #e3e1d8;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #14201a;
    --color-bg-alt: #182720;
    --color-text: #eceae3;
    --color-text-muted: #a9b2ab;
    --color-border: #263a30;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

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

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(20, 32, 26, 0.92);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--color-primary);
  border-radius: 8px;
  overflow: hidden;
}

.hero-art svg {
  width: 72%;
  height: 72%;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Category / product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(18, 48, 31, 0.35);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.category-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-card ul li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--color-border);
}

.category-card ul li:first-child {
  border-top: none;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Values / features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.feature {
  padding-left: 0;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.feature h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.94rem;
}

/* Two column content block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.split-art {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-art svg {
  width: 55%;
  height: 55%;
  color: var(--color-primary);
}

/* Product detail sections on Products page */
.product-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-border);
}

.product-section:last-of-type {
  border-bottom: none;
}

.product-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.product-header .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-header .icon-badge svg {
  width: 28px;
  height: 28px;
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.variety-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 20px;
  background: var(--color-bg);
}

.variety-swatch {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.variety-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.variety-card p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.variety-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.note-panel {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  font-size: 0.92rem;
}

.note-panel strong {
  color: var(--color-text);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

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

.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-card:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.contact-card a:hover {
  color: var(--color-primary);
}

form.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 36px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.map-placeholder {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-alt);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 64px 0;
}

.cta-band h2 {
  color: var(--color-text-inverse);
}

.cta-band p {
  color: rgba(244, 243, 238, 0.78);
}

.cta-band .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background: var(--color-accent);
}

.cta-band .btn-primary:hover {
  background: var(--color-accent-light);
}

/* Timeline (About page) */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.timeline-item {
  border-top: 3px solid var(--color-accent);
  padding-top: 16px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(244, 243, 238, 0.72);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-inverse);
  margin-bottom: 14px;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.site-footer h5 {
  color: var(--color-text-inverse);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(244, 243, 238, 0.72);
}

.site-footer a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 243, 238, 0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* Page header (About / Products / Contact) */
.page-header {
  padding: 64px 0 48px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}
