/* ============================================================
   TENTYRIS — shared styles
   Palette: warm paper, forest green, sage. Calm, tactile, gallery-like.
   ============================================================ */

:root {
  --paper:      #FEFBF8;   /* cream — sampled from logo background */
  --paper-2:    #F4EFE7;   /* slightly deeper panel */
  --ink:        #2A342B;   /* deep forest, near-black green */
  --forest:     #57604B;   /* brand green (sampled from logo) */
  --sage:       #8A9A72;   /* brand green (logo light) */
  --sage-soft:  #C4CDB6;   /* muted sage for lines */
  --line:       #E7E0D3;   /* hairline, warmer to suit cream */
  --white:      #FFFFFF;
  --shadow:     rgba(42,52,43,0.10);

  --radius: 14px;
  --maxw: 1200px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,251,248,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand .name {
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--forest);
}
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.nav a { color: var(--ink); opacity: 0.75; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* ---------- Lizard watermark motif ---------- */
.mark-watermark {
  position: absolute;
  background: url('images/mark.png') no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.section-mark {
  display: inline-block;
  width: 30px; height: 26px;
  background: url('images/mark.png') no-repeat center / contain;
  opacity: 0.55;
  vertical-align: middle;
  margin-bottom: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero .mark-watermark {
  width: 620px; height: 560px;
  top: -80px; left: -180px;
  opacity: 0.09;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  color: var(--forest);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero p {
  font-size: 19px; max-width: 46ch; color: var(--ink); opacity: 0.82;
  margin-bottom: 32px;
}
.hero-logo { height: 150px; width: auto; margin-bottom: 4px; margin-left: -6px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px; border: none;
  background: rgba(254,251,248,0.88); color: var(--forest);
  font-family: var(--serif); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  box-shadow: 0 8px 22px -10px rgba(42,52,43,0.6);
  transition: background .2s ease, transform .15s ease;
}
.hero-nav:hover { background: var(--paper); transform: translateY(-50%) scale(1.06); }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  background: rgba(36,49,42,0.82); color: var(--white);
  padding: 6px 13px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--forest);
  background: var(--forest); color: var(--white);
  cursor: pointer; transition: transform .15s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--white); }

/* ---------- Section heading ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 44px; max-width: 60ch; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); color: var(--forest); margin-top: 10px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px var(--shadow); }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); position: relative; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(36,49,42,0.82); color: var(--white);
  padding: 5px 11px; border-radius: 999px;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 22px; color: var(--forest); }
.card-body .desc { font-size: 14.5px; opacity: 0.72; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.card-foot .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- Values strip ---------- */
.strip { background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.strip .mark-watermark {
  width: 420px; height: 380px; right: -100px; top: -60px;
  opacity: 0.15;
  filter: brightness(3);
}
.strip .wrap { display: block; padding: 44px 24px; position: relative; z-index: 1; }
.strip-brand { display: flex; justify-content: center; margin-bottom: 36px; }
.strip-brand .chip { background: var(--paper); border-radius: 16px; padding: 16px 26px; box-shadow: 0 16px 40px -22px rgba(0,0,0,0.55); }
.strip-brand img { height: 66px; width: auto; display: block; }
.strip-items { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.strip .item { display: flex; flex-direction: column; gap: 4px; max-width: 30ch; }
.strip .item .k { font-family: var(--serif); font-size: 20px; }
.strip .item .v { font-size: 14px; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .brand { align-items: center; gap: 10px; }
.site-footer .brand img { height: 60px; width: auto; }
.site-footer .brand .foot-mark { width: 34px; height: 30px; background: url('images/mark.png') no-repeat center / contain; opacity: 0.8; }
.site-footer .brand .name { font-size: 18px; color: var(--forest); }
.site-footer small { opacity: 0.6; font-size: 13px; }

/* ============================================================
   Product page
   ============================================================ */
.pdp { padding: 48px 0 24px; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pdp-media { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.pdp-hero {
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
  box-shadow: 0 30px 60px -34px var(--shadow);
}
.pdp-hero video, .pdp-hero img { width: 100%; display: block; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-thumbs button {
  padding: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden;
  cursor: pointer; background: var(--paper-2); aspect-ratio: 1/1; transition: border-color .2s;
}
.pdp-thumbs button.active { border-color: var(--forest); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info .eyebrow { margin-bottom: 12px; display: block; }
.pdp-info h1 { font-size: clamp(34px, 5vw, 52px); color: var(--forest); margin-bottom: 16px; }
.pdp-price { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.pdp-ship { font-size: 14px; opacity: 0.65; margin-bottom: 24px; }
.pdp-desc { font-size: 17px; line-height: 1.7; opacity: 0.88; margin-bottom: 28px; }
.pdp-desc p { margin-bottom: 14px; }
.pdp-buy { display: flex; gap: 14px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.pdp-note {
  font-size: 13px; opacity: 0.6; background: var(--paper-2);
  padding: 12px 16px; border-radius: 10px; border: 1px dashed var(--sage-soft);
}

.spec { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.spec h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.spec ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spec li { display: flex; gap: 12px; font-size: 15px; align-items: flex-start; }
.spec li::before { content: "—"; color: var(--sage); flex-shrink: 0; }

.back-link { font-size: 14px; opacity: 0.7; margin-bottom: 20px; display: inline-block; }
.back-link:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 24px; }
  .hero-logo { height: 120px; }
  .pdp-media { position: static; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Fade-in on load */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
