/* ===========================
   POSTI KINNISTU — KUREMÄE
   =========================== */

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

:root {
  --white:   #ffffff;
  --cream:   #faf8f4;
  --green:   #2c4a35;
  --green-lt:#3d6347;
  --gold:    #b8973a;
  --gold-lt: #d4af5a;
  --text:    #000000;
  --muted:   #222222;
  --border:  #e0dbd0;
  --radius:  4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.serif-italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--cream { background: var(--cream); }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ── DROPDOWN SUB-MENU ── */
.nav-links .has-sub {
  position: relative;
}
.nav-links .has-sub > a::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.6;
}
/* Bridge the gap between nav item and dropdown with padding + pseudo-element */
.nav-links .has-sub > a {
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200;
  list-style: none;
  padding-top: 4px;
}
.nav-sub li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.nav-sub li:last-child a { border-bottom: none; }
.nav-sub li a:hover { background: var(--cream); color: var(--gold); }
.has-sub:hover .nav-sub { display: block; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 2px;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--green); border-color: var(--green); }
.lang-btn.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-lang {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 80px 0;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,151,58,0.18);
  border: 1px solid rgba(184,151,58,0.5);
  color: var(--gold-lt);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 40px;
  margin: 0 auto;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-lt);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── DIVIDER ── */
.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 32px;
}
.gold-rule--left { margin-left: 0; }

/* ── SECTION HEADING ── */
.section-head {
  margin-bottom: 48px;
}
.section-head.center { text-align: center; }
.section-head .eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

/* ── INFO CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  background: var(--white);
  padding: 40px 32px;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--green);
}
.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── HISTORY SECTION ── */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.history-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--border);
}
.history-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.history-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--cream);
}
.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 !important;
}

/* ── SHOP ── */
.shop-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-btn {
  background: none;
  border: 1px solid var(--border);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--green); color: var(--green); }
.cat-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(44,74,53,0.12);
  transform: translateY(-3px);
}
.product-img {
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img-ph {
  width: 100%;
  height: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}
.product-info {
  padding: 16px 18px 20px;
}
.product-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.product-cat-label {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.product-price {
  font-weight: 500;
  color: var(--green);
  font-size: 0.95rem;
}
.product-price span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}

.shop-note {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.news-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.news-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.news-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}
.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.read-more:hover { color: var(--gold); border-color: var(--gold); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-icon { display: none; }
.contact-info-item h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-info-item p {
  font-size: 1rem;
  color: #000;
  line-height: 1.7;
}

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-lt); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── SALE BANNER ── */
.sale-banner {
  background: var(--green);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.sale-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.sale-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.92rem;
}

/* ── MAP ── */
.map-wrap {
  width: 100%;
  height: 320px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FOOTER ── */
footer {
  background: var(--green);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── PRODUCT MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  max-width: 640px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--border);
}
.modal-body { padding: 28px 32px 36px; }
.modal-body h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-wrap { position: relative; }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--green);
  padding: 64px 0 52px;
  color: var(--white);
}
.page-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 12px;
  display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .lang-switcher { display: none; }
  .hamburger { display: flex; }

  .history-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .hero-content { padding: 60px 0; }

  .cards-grid { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
