/*
Theme Name: Dotek prádla
Theme URI: https://michalhorsky.cz
Author: HORSKY Studio
Author URI: https://michalhorsky.cz
Description: Elegantní jednostránková šablona pro butik dámského prádla. Fotky, texty, kolekci, značky i kontakt lze plně upravit v administraci (Vzhled → Přizpůsobit a v položkách menu „Fotky kolekce“ / „Značky“).
Version: 1.2.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dotekpradla
*/

:root{
  --bg: #FBF3EF;
  --surface: #FFFFFF;
  --surface-soft: #F6E9E4;
  --text: #3C2B2F;
  --muted: #8C6E73;
  --accent: #C98A99;
  --accent-deep: #9C5468;
  --accent-ink: #6E3346;
  --gold: #B7924F;
  --line: rgba(60,43,47,0.12);
  --shadow: 0 20px 45px -25px rgba(110,51,70,0.45);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Mulish", "Segoe UI", sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block;}
h1,h2,h3{
  font-family:"Cormorant Garamond", "Georgia", serif;
  font-weight:600;
  margin:0;
  letter-spacing:.01em;
}
a{color:inherit;}
.wrap{max-width:1180px; margin-inline:auto; padding-inline:24px;}
.eyebrow{
  font-family:"Mulish", sans-serif;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent-deep);
  font-weight:700;
  display:block;
}

/* ---------- header ---------- */
.dp-header{
  position:sticky; top:0; z-index:50;
  background:rgba(251,243,239,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.dp-nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:16px; gap:16px;
}
.dp-logo{
  font-family:"Cormorant Garamond", serif;
  font-style:italic; font-weight:600; font-size:1.65rem;
  letter-spacing:.02em; display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--text);
}
.dp-logo img{max-height:52px; width:auto; display:block;}
.dp-logo svg{width:26px;height:26px;flex:none;}
.dp-nav-links{display:flex; gap:28px; list-style:none; margin:0; padding:0; font-size:.92rem; font-weight:600;}
.dp-nav-links a{text-decoration:none; opacity:.85; transition:opacity .2s;}
.dp-nav-links a:hover{opacity:1; color:var(--accent-deep);}
.dp-nav-social{display:flex; gap:12px; align-items:center;}
.icon-btn{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); color:var(--text); transition:.2s;
}
.icon-btn:hover{background:var(--accent); border-color:var(--accent); color:#fff;}
.icon-btn svg{width:16px;height:16px;}
@media (max-width:760px){ .dp-nav-links{display:none;} }

/* ---------- hero ---------- */
.hero{padding-block:56px 72px; display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;}
@media (max-width:860px){ .hero{grid-template-columns:1fr; padding-block:36px 48px;} }
.hero h1{font-size:clamp(2.3rem, 5vw, 3.6rem); line-height:1.05;}
.hero h1 em{color:var(--accent-deep); font-style:italic;}
.hero p.lede{margin-top:18px; font-size:1.05rem; color:var(--muted); max-width:46ch; line-height:1.7;}
.hero-ctas{display:flex; gap:14px; margin-top:30px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:999px;
  font-weight:700; font-size:.9rem; text-decoration:none; letter-spacing:.02em; cursor:pointer;
  border:1px solid transparent; transition:transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--accent-deep); color:#fff; box-shadow:var(--shadow);}
.btn-ghost{border-color:var(--line); color:var(--text); background:transparent;}
.btn-ghost:hover{border-color:var(--accent-deep);}
.hero-art{
  position:relative; aspect-ratio:4/5; border-radius:26px; overflow:hidden;
  background:linear-gradient(160deg, var(--surface-soft), var(--surface));
  box-shadow:var(--shadow);
}
.hero-art img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.hero-art .placeholder-fill{
  position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 20% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(120% 90% at 85% 90%, color-mix(in srgb, var(--gold) 40%, transparent), transparent 55%),
    linear-gradient(160deg, var(--surface-soft), var(--surface));
}
.hero-art .tag{
  position:absolute; left:20px; bottom:20px;
  background:rgba(255,255,255,0.88); backdrop-filter:blur(6px);
  border-radius:14px; padding:12px 16px; font-size:.8rem; color:var(--muted); max-width:220px;
  box-shadow:var(--shadow);
}

/* ---------- features ---------- */
section{padding-block:64px;}
.section-head{max-width:640px; margin-bottom:40px;}
.section-head h2{font-size:clamp(1.8rem,3vw,2.5rem); margin-top:8px;}
.section-head p{color:var(--muted); margin-top:12px; line-height:1.7;}
.features{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
@media (max-width:920px){ .features{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .features{grid-template-columns:1fr;} }
.feature{background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px 22px; display:flex; flex-direction:column; gap:12px;}
.feature .ico{width:42px;height:42px;border-radius:50%; background:color-mix(in srgb, var(--accent) 22%, transparent); display:flex; align-items:center; justify-content:center; color:var(--accent-ink);}
.feature .ico svg{width:20px;height:20px;}
.feature h3{font-size:1.15rem; font-weight:600;}
.feature p{margin:0; font-size:.88rem; color:var(--muted); line-height:1.6;}

/* ---------- storefront ---------- */
.storefront{background:var(--surface-soft); border-radius:28px; padding:48px; display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center;}
@media (max-width:860px){ .storefront{grid-template-columns:1fr; padding:28px;} }
.shop-photo{aspect-ratio:5/4; border-radius:20px; position:relative; overflow:hidden; background:linear-gradient(200deg, var(--accent) 0%, var(--accent-ink) 100%); box-shadow:var(--shadow);}
.shop-photo img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.storefront-copy h2{font-size:clamp(1.7rem,3vw,2.3rem);}
.storefront-copy p{color:var(--muted); line-height:1.75; margin-top:16px;}
.hours{margin-top:24px; border-top:1px solid var(--line); padding-top:18px; display:grid; grid-template-columns:auto 1fr; gap:8px 18px; font-size:.9rem;}
.hours span:nth-child(odd){color:var(--muted);}
.hours span:nth-child(even){font-weight:600; font-variant-numeric:tabular-nums;}

/* ---------- gallery (portrétní masonry) ----------
   CSS sloupce (column-count), stejný princip jako v1.1.0.
   Pozor: "column-fill:auto" tu záměrně NENÍ - v reálném testu (ověřeno
   přímo na dotekpradla.cz) způsobil, že prohlížeč nacpal úplně všechny
   fotky do prvního sloupce a ostatní sloupce nechal prázdné (bez fotky
   se "fill:auto" bez pevné výšky kontejneru chová nespolehlivě).
   Výchozí "balance" fotky spolehlivě rozloží vedle sebe do všech
   sloupců; může to jen ojediněle nechat malou mezeru na konci
   nejkratšího sloupce, což je mnohem menší problém. */
.gallery{
  columns:4 220px; column-gap:18px;
}
@media (max-width:920px){ .gallery{columns:3 160px;} }
@media (max-width:600px){ .gallery{columns:2 140px; column-gap:12px;} }
.g-item{
  margin:0 0 18px; break-inside:avoid; -webkit-column-break-inside:avoid;
  border-radius:16px; position:relative; overflow:hidden; box-shadow:var(--shadow);
  background:linear-gradient(150deg,var(--accent),var(--accent-ink));
  transition:transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease;
}
.g-item:hover{transform:translateY(-6px); box-shadow:0 28px 55px -22px rgba(110,51,70,0.5);}
.g-link{display:block; position:relative; line-height:0;}
.g-item img{
  width:100%; height:auto; display:block;
  transition:transform .7s cubic-bezier(.16,1,.3,1);
}
.g-item:hover img{transform:scale(1.06);}
.g-item .g-zoom{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, transparent 45%, rgba(30,15,20,.55) 100%);
  opacity:0; transition:opacity .35s ease;
}
.g-item:hover .g-zoom{opacity:1;}
.g-item .g-zoom svg{width:30px; height:30px; color:#fff; filter:drop-shadow(0 2px 6px rgba(0,0,0,.4));}
.g-item .g-label{
  position:absolute; left:14px; bottom:12px; right:14px; z-index:2; margin:0;
  font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:#fff; font-weight:700; opacity:0; transform:translateY(6px);
  transition:opacity .35s ease, transform .35s ease;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}
.g-item:hover .g-label{opacity:1; transform:translateY(0);}
.gallery-empty{color:var(--muted); font-size:.9rem; padding:20px; border:1px dashed var(--line); border-radius:16px;}

/* ---------- lightbox ---------- */
.dp-lightbox{
  position:fixed; inset:0; z-index:999; display:flex; align-items:center; justify-content:center;
  background:rgba(20,10,13,0.92); opacity:0; visibility:hidden; transition:opacity .35s ease;
  padding:32px;
}
.dp-lightbox.is-open{opacity:1; visibility:visible;}
.dp-lightbox img{
  max-width:min(90vw, 900px); max-height:86vh; width:auto; height:auto;
  border-radius:10px; box-shadow:0 30px 80px -20px rgba(0,0,0,.6);
  transform:scale(.96); transition:transform .35s cubic-bezier(.16,1,.3,1);
}
.dp-lightbox.is-open img{transform:scale(1);}
.dp-lightbox-close{
  position:absolute; top:22px; right:22px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s;
}
.dp-lightbox-close:hover{background:rgba(255,255,255,.25);}
.dp-lightbox-close svg{width:18px; height:18px;}

/* ---------- scroll-reveal animace ---------- */
.dp-reveal{ will-change:transform, opacity; }
@media (prefers-reduced-motion: reduce){
  .dp-reveal{ opacity:1 !important; transform:none !important; }
}

/* ---------- brands ---------- */
.brands-strip{display:flex; flex-wrap:wrap; gap:20px 40px; align-items:center; justify-content:center; padding:36px 20px; background:var(--surface); border:1px solid var(--line); border-radius:20px;}
.brand-name{font-family:"Cormorant Garamond", serif; font-style:italic; font-weight:600; font-size:1.5rem; color:var(--muted); opacity:.75; transition:.25s; letter-spacing:.03em; text-decoration:none;}
.brand-name:hover{opacity:1; color:var(--accent-deep);}
.brand-logo-wrap{display:flex; align-items:center; justify-content:center;}
.brand-logo{max-height:42px; width:auto; opacity:.8; filter:grayscale(1); transition:.25s;}
.brand-logo:hover, .brand-logo-wrap:hover .brand-logo{opacity:1; filter:grayscale(0);}

/* ---------- promo band ---------- */
.promo{border-radius:28px; padding:52px; text-align:center; background:linear-gradient(135deg, var(--accent-deep), var(--accent-ink)); color:#FBF3EF; position:relative; overflow:hidden;}
.promo h2{color:#fff; font-size:clamp(1.7rem,3vw,2.4rem); position:relative;}
.promo p{max-width:56ch; margin:14px auto 0; opacity:.9; line-height:1.7; position:relative;}
.promo .btn-primary{background:#fff; color:var(--accent-ink); margin-top:26px; position:relative; box-shadow:none;}
.promo .eyebrow{color:#F3D9C6;}

/* ---------- contact ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:44px;}
@media (max-width:860px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:32px;}
.contact-row{display:flex; gap:14px; padding-block:14px; border-top:1px solid var(--line);}
.contact-row:first-of-type{border-top:none;}
.contact-row .ico{width:36px;height:36px;border-radius:50%; flex:none; background:color-mix(in srgb, var(--accent) 22%, transparent); display:flex; align-items:center; justify-content:center; color:var(--accent-ink);}
.contact-row .ico svg{width:17px;height:17px;}
.contact-row a{text-decoration:none;}
.contact-row a:hover{color:var(--accent-deep);}
.contact-row strong{display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:3px; font-weight:700;}
.map-card{border-radius:20px; overflow:hidden; position:relative; min-height:340px; background:linear-gradient(180deg, var(--surface-soft), var(--surface)); border:1px solid var(--line);}
.map-card iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.map-card svg{position:absolute; inset:0; width:100%; height:100%;}
.map-pin{position:absolute; left:52%; top:46%; transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; gap:6px;}
.map-pin .dot{width:20px;height:20px;border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--accent-deep); box-shadow:0 6px 16px -4px rgba(0,0,0,.4);}
.map-card a.open-map{position:absolute; right:16px; bottom:16px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:9px 16px; font-size:.8rem; font-weight:700; text-decoration:none; box-shadow:var(--shadow); z-index:3;}
.social-cta{display:flex; align-items:center; gap:14px; margin-top:26px; flex-wrap:wrap;}
.social-cta a{display:flex; align-items:center; gap:8px; text-decoration:none; font-size:.88rem; font-weight:700; padding:10px 16px; border-radius:999px; border:1px solid var(--line); transition:.2s;}
.social-cta a:hover{background:var(--accent); border-color:var(--accent); color:#fff;}
.social-cta svg{width:16px;height:16px;}

/* ---------- newsletter ---------- */
.newsletter{display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; background:var(--surface-soft); border-radius:20px; padding:30px 34px;}
.newsletter h3{font-size:1.3rem;}
.newsletter p{margin:6px 0 0; color:var(--muted); font-size:.9rem;}
.newsletter form{display:flex; gap:10px; flex-wrap:wrap;}
.newsletter input{padding:12px 16px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-family:inherit; min-width:220px;}
.newsletter input:focus-visible, .btn:focus-visible, a:focus-visible, .icon-btn:focus-visible{outline:2px solid var(--accent-deep); outline-offset:2px;}

/* ---------- footer ---------- */
.dp-footer{border-top:1px solid var(--line); margin-top:40px; padding-block:36px;}
.foot-grid{display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:flex-start;}
.foot-links{display:flex; gap:22px; flex-wrap:wrap; list-style:none; padding:0; margin:0; font-size:.88rem;}
.foot-links a{text-decoration:none; color:var(--muted);}
.foot-links a:hover{color:var(--accent-deep);}
.foot-bottom{margin-top:26px; padding-top:18px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:.78rem; color:var(--muted);}

/* ---------- generic page content (non front-page) ---------- */
.dp-page-content{padding-block:64px; max-width:800px; margin-inline:auto;}
.dp-page-content h1{font-size:clamp(2rem,4vw,2.8rem); margin-bottom:20px;}
.dp-page-content p{line-height:1.8; color:var(--text);}

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