/*
Theme Name: Projekty INREKO
Theme URI: https://projektyinreko.cz
Author: 
Author URI: https://tvoje-domena.cz
Description: Lehký custom theme pro projekty dopravních staveb
Text Domain: inreko
*/

/* =========================================================
   1) RESET & BASE
   ========================================================= */

html {
  box-sizing: border-box;
  scroll-behavior: smooth; 
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.home-projects :where(.is-layout-flow) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0;
}
.home-about :where(.is-layout-flow) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0;
}

.services-page  {padding: 0 !important; margin: 0 !important; border-top: 0 !important;}

/* =========================================================
   2) TYPOGRAFIE
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem; /* ~36px */
  margin: 0 0 0.25em;
}

h2 {
  font-size: 1.65rem; /* ~28px */
  margin: 1.2em 0 0.7em;
}

h3 {
  font-size: 1.30rem !important; /* ~20px */
	margin: 1.3em 0 0.6em
}

h4 {
  font-size: 1.15rem;
	margin: 1.3em 0 0.5em
}

p {
  margin: 0 0 1.1em;
}

.fr {
  float: right !important;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 4px;
}

.section-header {
  margin-bottom: 24px;
}

.form-row label {display: inline-block !important}


.breadcrumbs {
  margin: -10px 0 10px;
}
/* =========================================================
   3) LAYOUT – CONTAINER & MAIN
   ========================================================= */

.site-main {
  padding-top: 40px;
  padding-bottom: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* hlavní sekce homepage – základní rozestupy */
.home-projects,
.home-process,
.home-contact {
  margin-top: 80px;
}

.home-about {
  margin-top: 40px !important;
}


/* =========================================================
   4) BUTTONS – jednotný styl (primary + inverse)
   ========================================================= */

/* Základ pro všechna tlačítka (vlastní .btn i Gutenberg buttony) */
.btn,
.wp-block-button__link,
.wp-element-button,
.wpcf7-submit,
.has-ink-background-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #73b964;
  background: #73b964;   /* základ = plné zelené */
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.has-ink-background-color:hover {
  background: #73b964 !important;   /* základ = plné zelené */
  color: #fff !important;
}

.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.wpcf7-submit:hover,
.has-ink-background-color {
  background: #FFF;
  border-color: #73b964;
  color: #000;
  text-decoration: none;
}

/* Inverzní varianta (světlé tlačítko) */
.btn--inverse,
.wp-block-button__link.btn--inverse,
.wp-element-button.btn--inverse {
  background: #fff;
  color: #73b964;
  border-color: #73b964;
}

.btn--inverse:hover,
.wp-block-button__link.btn--inverse:hover,
.wp-element-button.btn--inverse:hover {
  background: #f2f4f3;
  color: #73b964;
}


/* =========================================================
   5) HEADER (HORNÍ LIŠTA)
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #DDD;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* hlavní menu */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 1.1rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: #73b964;
  text-decoration: none;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
  border-bottom-color: #73b964;
}

.header-cta {
  flex-shrink: 0;
}

/* =========================================================
   6) HERO + ÚVODNÍ SEKCE (PATTERNY)
   ========================================================= */

/* full-width hero sekce – group s class .homepage-hero */
.homepage-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid #E5E6E7;
  margin-bottom: 56px; /* mezera od další sekce */
  background: #fff !important;
}

.inreko-hero.has-bg-light-background-color {
    background-color: #FFF !important;
}

/* textová část v hero (pattern) */
.inreko-hero .inreko-eyebrow {
  letter-spacing: 0.08em;
  background: #fff !important;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.inreko-hero-stats {
  border-top: 1px solid #E5E6E7;
  padding-top: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.inreko-hero-stats .inreko-stat p:first-child {
  font-size: 1.1rem;
}

.inreko-hero-side {
  background: #FFFFFF;
}

/* obrázek v hero – group/column s class .hero-main-image */
.hero-main-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Klíčové služby */

.inreko-hero {padding: 20px 0 40px !important}

.inreko-services {
  margin-top: 80px;
  padding: 0 20px;
  border-top: 1px solid #E5E6E7;
}

.inreko-service-card {
  background: #fff;
  border: solid 2px #333 !important;
  border-radius: 16px;
}

.inreko-service-card:hover {
  border: solid 2px #000 !important;
}

.inreko-card-link a {
  font-weight: 600;
}

.inreko-card-link a:hover {
}

/* Benefity – Co s námi získáte */

.inreko-benefits {
  padding: 40px 0 0;
  border-top: 1px solid #E5E6E7;
}

.inreko-benefit-card {
  background: #FFFFFF;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inreko-benefits .wp-block-columns {
  align-items: stretch;
}

.inreko-benefit-card:hover {
  transform: translateY(-2px);
  border-color: #D0D1D2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* =========================================================
   7) PROJEKTY / REALIZACE
   ========================================================= */

.home-projects {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid #E5E6E7;
}

.inreko-project-archive .archive-header {
  margin-bottom: 40px;
}

/* starší markup (archiv) */
.project-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Query Loop markup (pattern Realizace) */
.project-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* základní karta projektu */

.project-card {
  border: 1px solid #E5E6E7;
  border-radius: 16px;
  overflow: hidden; 
  display: block;
  background: #FFFFFF;
}

/* stejné výšky karet */

.project-grid .wp-block-post-template > .project-card,
.project-grid-inner .project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* obrázek v jednotném poměru */

.project-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card-body {
  padding: 16px 20px 20px;
}

.project-card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.project-card-excerpt {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.project-card-more {
  font-weight: 600;
  border-bottom: 2px solid #73b964;
  padding-bottom: 2px;
}
.project-card-more:hover {
  border-bottom: 2px solid #FFF;
}

.project-card:hover {
  border-color: #D0D1D2;
}

/* obecný styl kartiček – můžeš použít is-style-card na Group blocích */
.card,
.process-step,
.wp-block-group.is-style-card {
  border: 1px solid #E5E6E7;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  margin-top: 0 !important;
}

.project-single-thumb {text-align: center}
.project-single-thumb img {margin: 0 auto 20px; max-width: 80%; height: auto}

.project-single-nav {text-align: center; border-top: solid 1px #333; padding: 15px 0}
.project-single-nav .project-prev {float: left}
.project-single-nav .project-next {float: right}

/* =========================================================
   8) PROCES – Jak pracujeme
   ========================================================= */

.home-process {
  padding: 40px 0;
  border-top: 1px solid #E5E6E7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* 5 kroků v jedné řadě na velkém screenu */
@media (min-width: 1200px) {
  .home-process .process-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.process-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #73b964;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.process-step h3 {
  margin: 0 0 8px;
}

.process-step p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.process-step-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   9) O NÁS
   ========================================================= */

.home-about {
  padding: 40px 0 60px;
  border-top: 1px solid #E5E6E7;
}

.home-about-inner {
  display: grid;
  gap: 32px;
}

.home-about-text p {
  margin-bottom: 12px;
}

/* fotka majitele – group/column s class .home-about-photo */
.home-about-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.home-about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-stat {
  text-align: center;
}

.about-stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.about-stat-label {
  font-size: 0.9rem;
}

/* =========================================================
   10) KONTAKT
   ========================================================= */

.home-contact {
  padding: 40px 0 60px;
  border-top: 1px solid #E5E6E7;
}

.home-contact-inner {
  display: grid;
  gap: 32px;
}

.home-contact-details {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.home-contact-details a {
  color: inherit;
}

.home-contact-details a:hover {
}

/* formulář – modernější vzhled */

.home-contact-form-inner {
  border: 1px solid #E5E6E7;
  padding: 24px 24px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #D0D1D2;
  font: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  background-color: #fafafa;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #73b964;
  box-shadow: 0 0 0 2px rgba(26, 76, 46, 0.15);
  background-color: #fff;
}

.form-note {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
}

/* =========================================================
   11) PATIČKA – TMAVÁ
   ========================================================= */

.site-footer {
  background: #111;
  color: #ddd;
  border-top: none;
  margin-top: 40px;
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #fff;
}

.footer-description {
  font-size: 0.95rem;
  color: #bbb;
  max-width: 260px;
}

.footer-nav h4,
.footer-contact h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #ddd;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #A8FF4A;
}

.footer-contact p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-contact a {
  color: #ddd;
}

.footer-contact a:hover {
  color: #A8FF4A;
}

.footer-bottom {
  background: #000;
  padding: 16px 0;
  border-top: 1px solid #222;
}
.footer-bottom p {
  display: block;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom-inner a {
  color: #aaa;
}

.footer-bottom-inner a:hover {
  color: #A8FF4A;
}

/* =========================================================
   12) RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (min-width: 768px) {
  .home-about-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .home-contact-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: flex-start;
  }

}

/* header / footer responzivně + CTA button */

@media (max-width: 900px) {
 	element.style {
    padding-top: 40px !important; 
    padding-bottom: 40px !important; 
	} 
	
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
	padding-left: 10px;
	padding-right: 10px;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    font-size: 1.1rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .header-cta {
    float: right; 
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 8px 10px;
  }

  .logo-text {
    font-size: 0.8rem;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .header-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
  }
}
