/*
Theme Name: Haly Rossi
Template: astra
Description: Odvozená šablona od Astry pro Haly Rossi. Antracit a jantarová, obsah v blocích Gutenbergu.
Version: 1.0.0
Text Domain: haly-rossi
*/

:root{
  --hr-anthracite:#30363B; --hr-deep:#23282C; --hr-plate:#3B4248; --hr-line:#4B545B;
  --hr-fog:#EDEFF0; --hr-fog-2:#AEB7BD; --hr-amber:#F2A71B; --hr-amber-hi:#FFBD3D; --hr-amber-ink:#22190A;
  --hr-display:"Big Shoulders Display","Arial Narrow",Impact,sans-serif;
  --hr-body:"Barlow","Segoe UI",Arial,sans-serif;
  --hr-ease:cubic-bezier(.23,1,.32,1);
  color-scheme:dark;
}

/* Základ. Selektory s "body" přebíjejí výchozí styl Astry. */
html body[class]{background:var(--hr-anthracite);color:var(--hr-fog);font:400 18px/1.55 var(--hr-body);margin:0}
/* WordPress dává blokům ve skupině svislé mezery; rozestupy tu řídí třídy hr-*. */
body .wp-block-group>*{margin-block:0}
body *,body *::before,body *::after{box-sizing:border-box}
body ::selection{background:var(--hr-amber);color:var(--hr-amber-ink)}
body a{color:inherit}
body :focus-visible{outline:3px solid var(--hr-amber);outline-offset:3px}
body h1,body h2,body h3,body h4{font-family:var(--hr-display);font-weight:800;text-transform:uppercase;line-height:1.04;letter-spacing:.005em;margin:0;color:var(--hr-fog);text-wrap:balance}
body h1{font-size:clamp(3.2rem,9.5vw,8.5rem);font-weight:900}
body h2{font-size:clamp(2.4rem,6vw,4.8rem)}
body h3{font-size:clamp(1.7rem,3vw,2.4rem)}
body p{margin:0;max-width:62ch}
body img{max-width:100%;height:auto;display:block}
body figure{margin:0}
body ul,body ol{margin:0;padding:0}
.hr-skip{position:absolute;left:-999px;top:8px;background:var(--hr-amber);color:var(--hr-amber-ink);padding:.6em 1em;z-index:50}
.hr-skip:focus{left:8px}

.hr-wrap{max-width:1280px;margin-inline:auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));width:100%}

/* Tlačítka: vlastní i bloková */
body .hr-btn,html body .wp-block-button .wp-block-button__link{display:inline-block;font:600 1.1rem/1 var(--hr-body);padding:1.1em 1.7em;text-decoration:none;background:var(--hr-amber);color:var(--hr-amber-ink);border:0;border-radius:2px;cursor:pointer;min-height:48px;transition:transform 160ms var(--hr-ease),background-color 160ms var(--hr-ease),color 160ms var(--hr-ease)}
html body .wp-block-buttons .wp-block-button.is-style-outline>.wp-block-button__link[class],body .hr-btn.hr-line{background:transparent;color:var(--hr-fog);box-shadow:inset 0 0 0 2px var(--hr-fog);border:0}
body .hr-btn:active,body .wp-block-button__link:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){
  body .hr-btn:hover,html body .wp-block-button .wp-block-button__link:hover{background:var(--hr-amber-hi);color:var(--hr-amber-ink)}
  html body .wp-block-button.is-style-outline>.wp-block-button__link:hover,body .hr-btn.hr-line:hover{background:var(--hr-fog);color:var(--hr-deep)}
}
body .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}

/* Hlavička */
.hr-top{background:var(--hr-deep);position:relative;z-index:20}
.home .hr-top{position:absolute;inset:0 0 auto 0;background:transparent}
.hr-top-in{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:18px}
body .hr-logo{font:900 2rem/1 var(--hr-display);text-transform:uppercase;text-decoration:none;letter-spacing:.02em;color:var(--hr-fog);white-space:nowrap}
.hr-logo span{color:var(--hr-amber)}
.hr-nav ul{list-style:none;display:flex;gap:26px;font-weight:500;font-size:1rem}
.hr-nav li{position:relative}
body .hr-nav a{text-decoration:none;display:block;padding-block:10px}
.hr-nav .current-menu-item>a,.hr-nav .current-menu-ancestor>a{color:var(--hr-amber)}
.hr-nav .menu-item-type-custom.current-menu-item>a{color:inherit}
.hr-nav .sub-menu{display:none;position:absolute;left:-18px;top:100%;flex-direction:column;gap:0;background:var(--hr-deep);padding:8px 18px;min-width:230px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.hr-nav li:hover>.sub-menu,.hr-nav li:focus-within>.sub-menu{display:flex}
@media (hover:hover){body .hr-nav a:hover{color:var(--hr-amber)}}
body .hr-top .hr-btn{padding:.85em 1.2em;font-size:1rem;white-space:nowrap}
body .hr-burger{display:none;background:transparent;color:var(--hr-fog);box-shadow:inset 0 0 0 2px var(--hr-fog);border:0;border-radius:2px;font:600 1rem/1 var(--hr-body);padding:.85em 1.1em;min-height:48px;cursor:pointer}

/* Úvodní hero s fotkou přes celou šířku */
.hr-hero{position:relative;isolation:isolate;min-height:min(88vh,840px);display:flex;flex-direction:column;justify-content:flex-end}
.hr-hero>figure{position:absolute;inset:0;z-index:-2}
.hr-hero>figure img{width:100%;height:100%;object-fit:cover}
.hr-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(35,40,44,.74) 0%,rgba(35,40,44,.12) 34%,rgba(35,40,44,.55) 62%,rgba(35,40,44,.96) 100%)}
.hr-hero-body{padding-block:clamp(32px,6vw,72px);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(20px,4vw,64px);align-items:end}
.hr-hero-body p{font-size:1.25rem}

/* Hero vnitřních stránek */
.hr-phero{position:relative;isolation:isolate;min-height:clamp(340px,46vw,560px);display:flex;flex-direction:column;justify-content:flex-end}
.hr-phero>figure{position:absolute;inset:0;z-index:-2}
.hr-phero>figure img{width:100%;height:100%;object-fit:cover}
.hr-phero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(35,40,44,.35) 0%,rgba(35,40,44,.94) 100%)}
.hr-phero .hr-wrap{padding-block:clamp(28px,5vw,56px)}
body .hr-phero h1{font-size:clamp(3rem,8vw,6.5rem)}
.hr-phero p{font-size:1.2rem;margin-top:14px}
.hr-phero.hr-plain{min-height:0;background:var(--hr-deep)}
.hr-phero.hr-plain::after{display:none}

/* Jantarový pás s důvody */
.hr-band{background:var(--hr-amber);color:var(--hr-amber-ink)}
body .hr-band ul{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.hr-band li{padding:26px 22px;border-left:2px solid rgba(34,25,10,.28);font-size:.98rem;line-height:1.4}
.hr-band li:first-child{border-left:0;padding-left:0}
.hr-band li strong{display:block;font:800 1.9rem/1 var(--hr-display);text-transform:uppercase;margin-bottom:8px}

/* Sekce */
.hr-sec{padding-block:clamp(64px,9vw,128px)}
.hr-sec.hr-deep{background:var(--hr-deep)}
.hr-sec.hr-plate{background:var(--hr-plate)}
body .hr-head{display:flex;justify-content:space-between;align-items:end;gap:32px;flex-wrap:wrap;margin-bottom:clamp(28px,4vw,56px)}
.hr-head p{color:var(--hr-fog-2)}
.hr-grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(24px,5vw,80px);align-items:center}
.hr-grid2.hr-top-align{align-items:start}
.hr-grid2>figure img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hr-text p+p,.hr-text h2+p,.hr-text h3+p{margin-top:18px}
.hr-text p{color:var(--hr-fog-2)}

/* Dlaždice výrobků */
.hr-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hr-tile{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(300px,34vw,460px);padding:clamp(20px,3vw,36px);overflow:hidden}
.hr-tile>figure{position:absolute;inset:0;z-index:-2}
.hr-tile>figure img{width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--hr-ease)}
.hr-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(35,40,44,0) 30%,rgba(35,40,44,.92) 100%)}
body .hr-tile h3 a{text-decoration:none}
.hr-tile h3 a::after{content:"";position:absolute;inset:0}
.hr-tile p{margin-top:10px;font-size:1.05rem;max-width:44ch}
@media (hover:hover) and (pointer:fine){.hr-tile:hover>figure img{transform:scale(1.04)}.hr-tile:hover h3{color:var(--hr-amber)}}
body .hr-other{margin-top:22px;padding:22px clamp(20px,3vw,36px);background:var(--hr-plate);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center}
body .hr-other a,body .hr-link a{color:var(--hr-amber);font-weight:600;text-underline-offset:5px}

/* Postup v krocích: skutečná posloupnost, proto číslování */
body ol.hr-steps{list-style:none;margin-top:32px;counter-reset:s}
.hr-steps li{counter-increment:s;position:relative;padding:20px 0 20px 3.6rem;border-top:1px solid var(--hr-line);color:var(--hr-fog-2)}
.hr-steps li::before{content:counter(s);position:absolute;left:0;top:18px;font:900 2.6rem/.9 var(--hr-display);color:var(--hr-amber)}
.hr-steps li strong{display:block;font:800 1.7rem/1 var(--hr-display);text-transform:uppercase;margin-bottom:6px;color:var(--hr-fog)}

/* Galerie */
.hr-gal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(150px,17vw,250px);gap:10px}
.hr-gal figure{height:100%}
.hr-gal img{width:100%;height:100%;object-fit:cover}
.hr-gal .hr-big{grid-column:span 2;grid-row:span 2}
.hr-gal .hr-wide{grid-column:span 2}

/* Možnosti použití a výhody */
body ul.hr-uses{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(20px,3vw,48px)}
.hr-uses li{padding:18px 0;border-top:1px solid var(--hr-line);font:800 1.5rem/1.1 var(--hr-display);text-transform:uppercase}
body ul.hr-benefits{list-style:none;display:grid;gap:0}
.hr-benefits li{padding:18px 0 18px 2.2rem;border-top:1px solid var(--hr-line);position:relative;color:var(--hr-fog-2)}
.hr-benefits li::before{content:"";position:absolute;left:0;top:1.55em;width:1.1rem;height:4px;background:var(--hr-amber)}
.hr-benefits li strong{color:var(--hr-fog);font-weight:600}

/* Video */
.hr-video{position:relative}
.hr-video img{width:100%;aspect-ratio:16/9;object-fit:cover}
.hr-video::after{content:"";position:absolute;left:50%;top:calc(50% - 1.4rem);width:96px;height:96px;margin:-48px 0 0 -48px;border-radius:50%;background:var(--hr-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.500z' fill='%2322190A'/%3E%3C/svg%3E") center/52% no-repeat;pointer-events:none}
.hr-video figcaption,.hr-note{color:var(--hr-fog-2);font-size:.95rem;margin-top:12px}

/* Příslušenství */
.hr-acc{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.hr-acc-item img{width:100%;aspect-ratio:4/5;object-fit:cover}
body .hr-acc-item h3{font-size:1.6rem;margin-top:14px}
.hr-acc-item p{color:var(--hr-fog-2);font-size:.98rem;margin-top:6px}

/* Poptávka a kontakt */
body .hr-contact{margin-top:28px;line-height:1.8;color:var(--hr-fog-2)}
.hr-contact strong{display:block;font:900 clamp(2.6rem,5vw,4rem)/1 var(--hr-display);color:var(--hr-amber);letter-spacing:.02em}

/* Certifikáty */
.hr-certs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hr-cert{background:var(--hr-plate);padding:clamp(20px,3vw,36px)}
.hr-cert p{color:var(--hr-fog-2);margin-top:12px}
.hr-cert .hr-frame{margin-top:22px;border:2px dashed var(--hr-line);aspect-ratio:1.414/1;display:grid;place-items:center;text-align:center;padding:16px;max-width:none}

/* Patička */
.hr-foot{background:var(--hr-deep);color:var(--hr-fog-2);font-size:.95rem}
.hr-foot-in{padding-block:clamp(36px,5vw,64px);display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:32px}
.hr-foot ul{list-style:none;display:grid;gap:8px}
body .hr-foot a{text-decoration:none}
@media (hover:hover){body .hr-foot a:hover{color:var(--hr-amber)}}
.hr-foot b{color:var(--hr-fog);display:block;margin-bottom:10px;font-weight:600}
.hr-foot-note{border-top:1px solid var(--hr-line);padding-block:18px;font-size:.88rem}
.hr-foot-note .hr-wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media (max-width:1100px){
  .hr-acc{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hr-nav ul{gap:18px}
}
@media (max-width:900px){
  body .hr-burger{display:inline-block}
  .hr-top-in{flex-wrap:wrap}
  .hr-nav{display:none;order:5;flex-basis:100%}
  .hr-nav.hr-open{display:block}
  .home .hr-top:has(.hr-open){background:var(--hr-deep)}
  .hr-nav ul{flex-direction:column;gap:0}
  body .hr-nav a{padding-block:13px;border-top:1px solid var(--hr-line)}
  .hr-nav .sub-menu{display:flex;position:static;box-shadow:none;padding:0 0 0 18px;background:transparent}
  body .hr-top .hr-btn{display:none}
  .hr-hero{min-height:640px}
  .hr-hero-body,.hr-grid2{grid-template-columns:minmax(0,1fr)}
  body .hr-band ul{grid-template-columns:minmax(0,1fr)}
  .hr-band li{border-left:0;border-top:2px solid rgba(34,25,10,.28);padding:18px 0}
  .hr-band li:first-child{border-top:0}
  .hr-tiles,.hr-certs{grid-template-columns:minmax(0,1fr)}
  .hr-gal{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px}
  body ul.hr-uses{grid-template-columns:minmax(0,1fr)}
  .hr-acc{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hr-foot-in{grid-template-columns:minmax(0,1fr)}
  body .wp-block-button,body .wp-block-button__link{width:100%;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  body .hr-btn,body .wp-block-button__link,.hr-tile>figure img{transition:none}
}
