/* Kruusik – mänguline teema kollaste ja kohvipruunide toonidega */

:root {
  --bg: #f5e0c4;
  --bg-alt: #f5e0c4;
  --text: #2b1e15;
  --muted: #6b3e26;
  --accent: #ffd166; /* kollane */
  --accent-2: #f7c873;
  --coffee: #6b3e26; /* pruun */
  --coffee-2: #9a6a4a;
  --danger: #e63946; /* punane nupp */
  --link: #7a4b2f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(107, 62, 38, 0.15);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Baloo 2', cursive;
  margin: 0 0 0.5rem 0;
  color: var(--coffee);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0.35rem 0 1rem; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 241, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 62, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--coffee);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark { font-size: 1.25rem; }
.brand-name { font-size: 1.1rem; letter-spacing: 0.3px; }

.main-nav { display: flex; gap: 1rem; align-items: center; }
.main-nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.main-nav .buy-link {
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  border-radius: 999px;
}

/* Hero */
.hero { background: var(--bg); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.hero-title { text-shadow: none; }
.hero-tagline { font-size: 1.1rem; color: var(--muted); }

.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-primary { background: var(--danger); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(0.98); transform: none; }
.btn-ghost { background: var(--white); color: var(--coffee); border-color: rgba(107,62,38,0.15); }
.btn-ghost:hover { background: #fff; }

.hero-illustration { display: grid; place-items: center; }
.mug-svg { width: min(420px, 90%); height: auto; transition: transform 220ms ease; }
.btn-primary:hover ~ .hero-illustration .mug-svg, .hero-illustration:hover .mug-svg { transform: rotate(-2deg) translateY(-2px); }

.hero-shout {
  margin-top: 0.8rem;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--danger);
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.2rem;
  list-style: none;
  padding: 0;
}
.feature-title { margin-bottom: 0.25rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.product-art { display: grid; place-items: center; padding: 0.6rem 0 0.8rem; }
.mug {
  width: 120px; height: 100px; border: 5px solid var(--coffee); border-radius: 12px; background: #fff; position: relative;
}
.mug::after { content: ""; position: absolute; right: -26px; top: 18px; width: 32px; height: 60px; border: 6px solid var(--coffee); border-left: 0; border-radius: 0 22px 22px 0; }
.mug--quiet { background: #ffffff; }
.mug--angry { background: #ffffff; box-shadow: inset 0 -8px 0 rgba(230, 57, 70, 0.18); }
.mug--winky { background: #ffffff; box-shadow: inset 0 -8px 0 rgba(247, 200, 115, 0.2); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent);
  color: var(--coffee); font-weight: 800; display: grid; place-items: center; margin: 0 auto 0.5rem; font-size: 1.4rem;
}
.role { color: var(--muted); margin-top: -0.4rem; font-size: 0.95rem; }
.tragic { font-style: italic; }

/* Order form */
.order-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.2rem; }
.order-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.order-aside { display: grid; align-content: start; }

.field { margin-bottom: 0.9rem; }
.field.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 12px; border: 2px solid rgba(107,62,38,0.15); outline: none; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--coffee-2); box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.4); }
.field .hint { color: var(--muted); font-size: 0.9rem; }
.field.checkbox label { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.field.checkbox input { width: auto; }

.actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }

.bubble {
  position: relative;
  background: var(--accent);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 3.2rem;
  min-height: 80px;
  box-shadow: var(--shadow);
}
.bubble::before {
  content: ""; position: absolute; left: 14px; top: 28px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 14px solid var(--accent);
}
.bubble-face { position: absolute; left: 0.6rem; top: 0.6rem; font-size: 1.4rem; }

/* Terms */
.terms { margin-top: 1rem; }
.terms > summary { cursor: pointer; font-weight: 800; }
.terms-content { padding: 0.6rem 0.2rem 0.2rem; color: var(--muted); }

/* Footer */
.site-footer { padding: 2rem 0 3rem; background: var(--bg); border-top: 1px solid rgba(107,62,38,0.08); }
.footer-inner { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.beans { display: flex; gap: 0.5rem; }
.bean {
  width: 14px; height: 22px; background: var(--coffee); border-radius: 12px; display: inline-block; position: relative; transform: rotate(-15deg);
}
.bean::after { content: ""; position: absolute; left: 6px; top: 2px; width: 2px; height: 18px; background: #4c2a1a; border-radius: 1px; }

.link { color: var(--link); text-underline-offset: 3px; }

/* Utilities */
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { position: static; background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; display: flex; flex-direction: row; gap: 0.6rem; }
  .main-nav a { padding: 0.2rem 0.3rem; }
  .header-inner { flex-wrap: wrap; row-gap: 0.4rem; }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .section { padding: 2.2rem 0; }
  .shop-card img { height: 200px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .field.two-col { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .main-nav { gap: 0.5rem; }
  .section { padding: 1.6rem 0; }
  .shop-card img { height: 160px; }
}

/* Shop section */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}
.shop-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shop-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.shop-card figcaption { padding: 0.8rem; }

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


