/*
Theme Name: Stambuk Arts Child
Theme URI: https://stambuk-arts.com
Description: Child theme for Stambuk Arts based on Blocksy.
Author: Stambuk Arts
Template: blocksy
Version: 1.0.0
Text Domain: stambuk-arts
*/

/* ===== Stambuk base variables ===== */

:root {
  --stambuk-bg: #f7f1e8;
  --stambuk-bg-soft: #eef3ef;
  --stambuk-sea: #a9cfd3;
  --stambuk-sand: #d8c6a3;
  --stambuk-ink: #17202a;
  --stambuk-muted: #6f766f;
}

/* ===== Global base ===== */

body {
  background: var(--stambuk-bg);
  color: var(--stambuk-ink);
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}

.site-main,
.ct-container-full,
.entry-content {
  background: transparent;
}

/* ===== Main page background ===== */

#main-container {
  background:
    radial-gradient(circle at top right, rgba(169,207,211,.28), transparent 34%),
    linear-gradient(180deg, #f7f1e8 0%, #f4eadc 42%, #edf3ef 100%);
}

/* ===== Header refinement ===== */

[data-header*="type-1"] .ct-header [data-row*="middle"] {
  background: rgba(247, 241, 232, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23,32,42,.08);
}

.site-title,
.ct-header .site-title {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ct-header nav > ul > li > a {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== Common sections ===== */

.entry-content > .wp-block-group {
  margin-top: 0;
}

.wp-block-group.stambuk-section {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: clamp(56px, 7vw, 110px);
}

.wp-block-group.stambuk-section-soft {
  background: var(--stambuk-bg-soft);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 80px);
}

.stambuk-section-soft {
  box-shadow: inset 0 0 0 1px rgba(23,32,42,.06);
}

.stambuk-kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stambuk-muted);
  margin-bottom: 18px;
}

/* ===== Hero ===== */

.stambuk-hero {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 7vw, 100px);
}

.stambuk-hero::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto auto;
  width: 36vw;
  height: 36vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 999px;
  background: rgba(169,207,211,.22);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

.stambuk-hero > * {
  position: relative;
  z-index: 1;
}

.stambuk-hero h1 {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  margin-bottom: 24px;
  font-weight: 500;
}

.stambuk-lead {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  max-width: 620px;
}

/* ===== Hero image system: image is in HTML, not hardcoded in CSS ===== */

.stambuk-hero-visual {
  position: relative;
  min-height: clamp(360px, 48vw, 660px);
  border-radius: 36px;
  overflow: hidden;
  background: var(--stambuk-bg-soft);
  box-shadow: 0 28px 80px rgba(23,32,42,.12);
  border: 1px solid rgba(23,32,42,.08);
  display: block;
  color: inherit;
}

.stambuk-hero-visual p {
  display: none;
}

.stambuk-hero-visual figure {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.stambuk-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Ferlauf preko slike, bez hardkodiranja slike u CSS */

.stambuk-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 241, 232, 0.62) 0%,
      rgba(247, 241, 232, 0.30) 34%,
      rgba(247, 241, 232, 0.05) 68%,
      rgba(247, 241, 232, 0.00) 100%
    );
}

/* Opcije fokusa slike */

.stambuk-hero-visual.hero-focus-right img {
  object-position: 70% center;
}

.stambuk-hero-visual.hero-focus-left img {
  object-position: 30% center;
}

/* ===== Story / Characters / Gift text ===== */

.stambuk-story {
  max-width: 980px;
}

.stambuk-story h2,
.stambuk-characters h2,
.stambuk-gift h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.04;
}

.stambuk-story p,
.stambuk-characters p,
.stambuk-gift p {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
  max-width: 820px;
}

/* ===== Collection cards ===== */

.stambuk-card {
  min-height: 230px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(23,32,42,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.stambuk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(23,32,42,.09);
}

.stambuk-card h3 {
  font-size: 28px;
  margin-bottom: 70px;
}

.stambuk-card p {
  color: var(--stambuk-muted);
  line-height: 1.45;
}

/* ===== Buttons ===== */

.wp-block-button__link {
  border-radius: 0;
  padding: 14px 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== WooCommerce featured products ===== */

.stambuk-featured .products {
  margin-top: 34px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: rgba(255,255,255,0.58);
  padding: 18px;
  border-radius: 22px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  color: var(--stambuk-ink);
  font-weight: 600;
}

/* ===== Dark gift block ===== */

.stambuk-gift {
  background: #17202a;
  color: #f7f1e8;
  border-radius: 34px;
  padding: clamp(42px, 6vw, 86px);
}

.stambuk-gift p {
  color: rgba(247,241,232,.78);
}

/* ===== Mobile ===== */

@media (max-width: 781px) {
  #main-container {
    background:
      radial-gradient(circle at top right, rgba(169,207,211,.34), transparent 38%),
      linear-gradient(180deg, #f7f1e8 0%, #f4eadc 46%, #edf3ef 100%);
  }

  .stambuk-hero {
    padding-top: 34px;
  }

  .stambuk-hero::before {
    width: 70vw;
    height: 70vw;
    opacity: .55;
  }

  .stambuk-hero h1 {
    font-size: 54px;
  }

  .stambuk-hero-visual {
    min-height: 320px;
    border-radius: 24px;
  }

  .stambuk-hero-visual img {
    object-position: center center;
  }

  .stambuk-hero-visual::after {
    background:
      linear-gradient(
        180deg,
        rgba(247, 241, 232, 0.10) 0%,
        rgba(247, 241, 232, 0.45) 100%
      );
  }

  .stambuk-card {
    min-height: auto;
  }

  .stambuk-card h3 {
    margin-bottom: 28px;
  }

  .stambuk-gift {
    border-radius: 24px;
  }
}