/* ==========================================================
   Kalai MD — site styles
   Brand colors come from the Kalai MD playing-card artwork.
   ========================================================== */

:root {
  --card:      #f5f5f5;  /* card-face off-white: page background */
  --paper:     #ffffff;
  --teal:      #85cfcb;  /* brand teal from the logo */
  --teal-mist: #e3f3f2;  /* light tint for alternating sections */
  --teal-deep: #2c6662;  /* darker teal: text-safe accent, buttons */
  --ink:       #22302f;  /* body text */
  --ink-soft:  #4d5f5d;

  --serif: "Alegreya", Georgia, serif;
  --sans:  "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 9vw, 6.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--teal-deep); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p  { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow > * { max-width: 42rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--teal-deep); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(245, 245, 245, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4e8e8;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img:first-child { width: 28px; }
.brand img:last-child  { width: 118px; }
nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
nav a:hover { border-bottom-color: var(--teal); }

@media (max-width: 30rem) {
  .brand img:last-child { display: none; }
  nav a { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--teal-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: background .2s;
}
.button:hover { background: #1f4f4c; }
.button-light { background: var(--card); color: var(--teal-deep); }
.button-light:hover { background: #fff; }

/* ---------- Hero: framed like the ace from the card ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.75rem; }

.ace {
  position: relative;
  background: var(--paper);
  aspect-ratio: 5 / 7;
  width: 100%;
  max-width: 24rem;
  justify-self: center;
  border-radius: 1.4rem;
  box-shadow: 0 1px 2px rgba(44, 102, 98, .08), 0 18px 40px -18px rgba(44, 102, 98, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14% 16%;
  transform: rotate(2.5deg);
}
.ace::before {               /* thin inner border, like a printed card */
  content: ""; position: absolute; inset: .7rem;
  border: 1.5px solid var(--teal);
  border-radius: 1rem;
  opacity: .55;
}
.ace-spade { width: 100%; }
.ace-word  { width: 62%; margin-top: 9%; }
.index {
  position: absolute;
  font-family: var(--serif); font-weight: 700;
  color: var(--teal);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: .9;
  display: flex; flex-direction: column; align-items: center;
}
.index .pip { font-size: .8em; margin-top: .1em; }
.index-top    { top: 1.4rem; left: 1.4rem; }
.index-bottom { bottom: 1.4rem; right: 1.4rem; transform: rotate(180deg); }

@media (max-width: 48rem) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .lead { margin-left: auto; margin-right: auto; }
  .ace { max-width: 16rem; order: 1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section-tint { background: var(--teal-mist); }
.section-intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 2.5rem; }

/* Products: one card-suit per category */
.suits {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
}
@media (max-width: 60rem) { .suits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .suits { grid-template-columns: 1fr; } }
.suits li { border-top: 2px solid var(--teal); padding-top: 1.25rem; }
.suit {
  display: block;
  font-size: 1.9rem; line-height: 1;
  color: var(--teal-deep);
  margin-bottom: .6rem;
}
.suits p { color: var(--ink-soft); margin: 0; }

/* Photos */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 40rem) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: .9rem; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  background:
    url("/images/brand/logo-spade.png") center / 22% no-repeat,
    var(--teal-mist);
  display: flex; align-items: flex-end; padding: .8rem 1rem;
}
.placeholder span { color: var(--teal-deep); font-size: .95rem; opacity: .7; }

/* Contact */
.section-deep { background: var(--teal-deep); color: #eef6f5; }
.section-deep h2 { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.details { margin: 0; display: grid; gap: 1.4rem; }
.details dt { color: var(--teal); font-weight: 700; font-size: .95rem; }
.details dd { margin: .15rem 0 0; font-size: 1.15rem; }
.details a { color: #fff; }

@media (max-width: 48rem) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; color: var(--ink-soft); font-size: .95rem; }
.site-footer .wrap { display: flex; align-items: center; gap: .7rem; }
.site-footer p { margin: 0; }
