/*
Theme Name: HLM Group
Theme URI: https://hlmgroup.sk
Author: HLM group s.r.o.
Description: Vlastná WordPress téma pre HLM group - stavebná a inžinierska spoločnosť.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: hlm-group
*/

/* ==========================================================================
   Variables & reset
   ========================================================================== */
:root{
  --navy: #16305c;
  --navy-dark: #0f2547;
  --blue: #1e4fa8;
  --dark: #12141c;
  --gray-bg: #f7f8fa;
  --border: #e6e8ee;
  --text: #14171f;
  --text-gray: #5b6472;
  --white: #ffffff;
  --radius: 10px;
  --container: 1200px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
h1,h2,h3,h4{
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0 0 .5em;
  line-height: 1.2;
  color: var(--text);
}
p{ margin: 0 0 1em; color: var(--text-gray); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 96px 0; }
.section--alt{ background: var(--gray-bg); }

.eyebrow{
  display:inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}
.divider{
  width: 56px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 14px 0 22px;
}
.divider--center{ margin-left:auto; margin-right:auto; }

.section-head{ text-align:center; max-width: 620px; margin: 0 auto 56px; }
.section-head .divider{ margin-top: 14px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary{ background: var(--navy); color: var(--white); }
.btn--primary:hover{ background: var(--navy-dark); }
.btn--outline{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover{ background: var(--navy); color: var(--white); }
.btn--outline-white{ background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline-white:hover{ background: var(--white); color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
/* Keep the sticky header below the WP admin toolbar instead of hidden behind it (toolbar is 32px on desktop, 46px on phones <=782px) */
body.admin-bar .site-header{ top: 32px; }
@media screen and (max-width: 782px){
  body.admin-bar .site-header{ top: 46px; }
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  max-width: 1400px;
  margin:0 auto;
  gap: 20px;
}
.site-logo{ display:flex; align-items:center; gap:10px; font-weight:700; flex-shrink:0; }
.site-logo img{ max-height: 42px; width:auto; }
.site-logo__text{ font-family:'Poppins',sans-serif; font-weight:700; font-size:1.3rem; color: var(--navy); line-height:1; }
.site-logo__text span{ display:block; font-size:.65rem; font-weight:500; letter-spacing:.2em; color: var(--text-gray); text-transform:uppercase; }

.main-nav{
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.main-nav::-webkit-scrollbar{ display:none; }
.main-nav ul{ display:flex; gap: 20px; flex-wrap:nowrap; }
.main-nav a{
  display:block;
  font-weight:500;
  font-size:.88rem;
  color: var(--text);
  white-space:nowrap;
  text-transform: capitalize;
  transition: color .2s;
}
.main-nav a:hover{ color: var(--blue); }

.header-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--navy); border-radius:2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background: linear-gradient(180deg, #eef2f8 0%, #ffffff 70%);
  padding: 72px 0 0;
  overflow:hidden;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items:center;
}
.hero__content h1{
  font-size: 3.2rem;
  font-weight:700;
  letter-spacing:-.01em;
}
.hero__content h1 .accent{ color: var(--blue); display:block; }
.hero__content p{ max-width: 420px; margin-top: 18px; }
.hero__actions{ display:flex; gap:16px; margin-top: 8px; flex-wrap:wrap; }
.hero__media{ position:relative; align-self:stretch; }
.hero__media img{
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:cover;
  border-top-left-radius: 18px;
}
/* ==========================================================================
   Partners strip ("Pracujeme s overenými materiálmi a systémami")
   ========================================================================== */
.partners{ padding: 40px 0; border-bottom: 1px solid var(--border); }
.partners__heading{
  text-align:center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-gray);
  margin: 0 0 24px;
}
.partners__row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: 32px 48px;
}
.partners__item{
  font-family:'Poppins',sans-serif;
  font-weight:600;
  font-size:1.1rem;
  color: #a7adb8;
  letter-spacing:.02em;
}

/* ==========================================================================
   About / gallery section
   ========================================================================== */
.about{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.about__gallery{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 460px;
}
.about__gallery .img-box:first-child{ grid-row: 1 / 3; }
.img-box{
  border-radius: var(--radius);
  overflow:hidden;
  background: linear-gradient(135deg,#dbe3ef,#c3cede);
  display:flex; align-items:center; justify-content:center;
  color:#7a8496;
  font-size:.78rem;
  text-align:center;
  padding:12px;
}
.img-box img{ width:100%; height:100%; object-fit:cover; }

.about__text .btn{ margin-top:12px; }

/* ==========================================================================
   Feature strip
   ========================================================================== */
.features{ background: var(--gray-bg); border-radius: var(--radius); padding: 56px 40px; }
.features__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:32px; }
.feature{ text-align:center; padding: 0 8px; }
.feature__icon{
  width:56px; height:56px;
  margin: 0 auto 18px;
  border-radius:50%;
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(22,48,92,.1);
}
.feature__icon svg{ width:26px; height:26px; }
.feature h3{ font-size:1.02rem; margin-bottom:8px; }
.feature p{ font-size:.88rem; margin:0; }

/* ==========================================================================
   Services section
   ========================================================================== */
.services{ display:grid; grid-template-columns: .85fr 1.15fr; gap:56px; align-items:center; }
.services__intro h2{ font-size:2rem; }
.services__grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 24px 20px;
}
.service-item{
  flex: 0 1 calc((100% - 40px) / 3);
  text-align:center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  padding-bottom: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-item:hover{ transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,23,31,.08); }
.service-item__photo{
  width:100%;
  height:160px;
  margin-bottom:16px;
  overflow:hidden;
  background: linear-gradient(135deg,#dbe3ef,#c3cede);
}
.service-item__photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .3s ease;
}
.service-item:hover .service-item__photo img{ transform: scale(1.05); }
.service-item span{ font-weight:600; font-size:.92rem; display:block; line-height:1.35; padding:0 16px; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects__grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; margin-bottom: 48px; }
.project-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  display:block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,23,31,.08); }
.project-card__media{ height: 220px; background: linear-gradient(135deg,#dbe3ef,#c3cede); display:flex;align-items:center;justify-content:center;color:#7a8496;font-size:.78rem; }
.project-card__media img{ width:100%; height:100%; object-fit:cover; }
.project-card__body{ padding: 20px 22px 24px; }
.project-card__body h3{ font-size:1.08rem; margin-bottom:8px; }
.project-card__link{ color: var(--blue); font-weight:600; font-size:.9rem; }
.projects__more{ text-align:center; }

/* ==========================================================================
   Activity cards (category archives - "Naša činnosť", "Naša technika")
   ========================================================================== */
.page-hero__desc{ color: var(--text-gray); max-width:640px; margin:12px auto 0; }
.activity-grid{ display:flex; flex-direction:column; gap:24px; margin-bottom:48px; }
.activity-card{
  display:grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.activity-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 32px rgba(20,23,31,.08); }
.activity-card__media{
  display:block;
  height:220px;
  background: linear-gradient(135deg,#dbe3ef,#c3cede);
}
.activity-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.activity-card__media span{
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
  color:#7a8496; font-size:.78rem; text-align:center; padding:16px;
}
.activity-card__body{ padding: 28px 32px; display:flex; flex-direction:column; justify-content:center; }
.activity-card__body h2{ font-size:1.3rem; margin-bottom:10px; }
.activity-card__body h2 a{ color: var(--text); }
.activity-card__body h2 a:hover{ color: var(--blue); }
.activity-card__body p{ margin-bottom:14px; }
.activity-card__link{ color: var(--blue); font-weight:600; font-size:.9rem; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta{
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 18px;
  padding: 48px 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 32px;
  flex-wrap:wrap;
}
.cta__text h2{ color:#fff; font-size:1.7rem; margin-bottom:8px; }
.cta__text p{ color: rgba(255,255,255,.75); margin:0; max-width:460px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--dark); color: rgba(255,255,255,.65); padding-top: 72px; }
.footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .site-logo__text{ color:#fff; }
.footer__brand .site-logo__text span{ color: rgba(255,255,255,.5); }
.footer__brand p{ color: rgba(255,255,255,.5); margin-top:14px; font-size:.92rem; }
.site-footer h3{ color:#fff; font-size:1rem; margin-bottom:18px; }
.footer__links li{ margin-bottom:10px; }
.footer__links a:hover{ color:#fff; }
.footer__contact li{ display:flex; gap:10px; margin-bottom:14px; font-size:.92rem; align-items:flex-start; }
.footer__contact svg{ width:18px; height:18px; flex-shrink:0; margin-top:2px; color: var(--blue); }
.footer__social{ display:flex; gap:12px; }
.footer__social a{
  width:38px;height:38px;border-radius:8px;
  background: rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  transition: background .2s;
}
.footer__social a:hover{ background: var(--blue); }
.footer__social svg{ width:18px; height:18px; }

.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:.85rem;
}
.footer__bottom a{ margin-left: 20px; color: rgba(255,255,255,.5); }
.footer__bottom a:hover{ color:#fff; }

/* ==========================================================================
   Generic page template
   ========================================================================== */
.page-hero{ background: var(--gray-bg); padding: 64px 0; text-align:center; }
.page-hero h1{ font-size:2.4rem; }
.page-content{ padding: 72px 0; }
.page-content .entry-content{ max-width: 760px; margin:0 auto; }
.page-content .entry-content > *:first-child{ margin-top:0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__media{ order:-1; }
  .about{ grid-template-columns:1fr; }
  .services{ grid-template-columns:1fr; }
  .features__grid{ grid-template-columns: repeat(2,1fr); gap:28px; }
  .projects__grid{ grid-template-columns: repeat(2,1fr); }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .main-nav{
    display:none;
    position: absolute;
    top: 100%; left:0; right:0;
    background:#fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(20,23,31,.12);
    max-height: calc(100vh - 100%);
    overflow-x:visible;
    overflow-y:auto;
    padding: 8px 24px;
    z-index:99;
  }
  .main-nav.is-open{ display:block; }
  .main-nav ul{ flex-direction:column; flex-wrap:wrap; gap:0; }
  .main-nav a{ display:block; padding: 14px 0; border-bottom:1px solid var(--border); white-space:normal; font-size:1rem; }
  .nav-toggle{ display:flex; }
  .header-actions .btn--header{ display:none; }
  /* Mobile hero: full-screen darkened photo with the text overlaid on top of it */
  .hero{
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display:flex;
    align-items:flex-end;
    padding:0;
    background:none;
    overflow:hidden;
  }
  .hero__inner{
    display:block;
    width:100%;
    padding: 0 24px 56px;
  }
  .hero__media{
    position:absolute;
    inset:0;
    z-index:0;
  }
  .hero__media img{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    border-top-left-radius:0;
  }
  .hero__media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(10,20,40,.25) 0%, rgba(8,16,34,.8) 100%);
  }
  .hero__content{
    position:relative;
    z-index:1;
  }
  .hero__content h1,
  .hero__content h1 .accent{ color:#fff; font-size:2.3rem; }
  .hero__content p{ color: rgba(255,255,255,.85); }
  .hero__actions .btn--outline{ border-color:#fff; color:#fff; }
  .hero__actions .btn--outline:hover{ background:#fff; color:var(--navy); }
  .service-item{ flex-basis: calc(50% - 10px); }
  .projects__grid{ grid-template-columns: 1fr; }
  .features__grid{ grid-template-columns: 1fr 1fr; }
  .activity-card{ grid-template-columns: 1fr; }
  .activity-card__media{ height:180px; }
  .cta{ flex-direction:column; text-align:center; align-items:stretch; }
  .cta .btn{ align-self:center; }
  .footer__grid{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .about__gallery{ height:auto; grid-template-columns:1fr 1fr; grid-template-rows: 160px 160px; }
  .about__gallery .img-box:first-child{ grid-column:1/3; grid-row:1; }
}

/* Extra-small phones (e.g. iPhone SE, small Android, ~360px and down) */
@media (max-width: 420px){
  .container{ padding: 0 16px; }
  .site-header__inner{ padding: 12px 16px; gap:12px; }
  .site-logo img{ max-height: 34px; }
  .hero__content h1{ font-size: 1.9rem; }
  .hero__actions .btn{ flex:1 1 auto; text-align:center; }
  .features__grid{ grid-template-columns: 1fr; }
  .service-item{ flex-basis: 100%; }
  .page-hero h1{ font-size: 1.8rem; }
  .cta{ padding: 32px 20px; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; gap:8px; }
  .footer__bottom span:last-child a{ margin-left:0; margin-right:16px; }
}
