/* 
Theme Name: Roofers
Theme URL: 
Author: TemplatesJungle
Author URL: https://templatesjungle.com/
Description: Roofers  is a Free Bootstrap Website Template for Roofing by TemplatesJungle.
Version: 1.0 
*/


/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/

/*------------------------------------*\
    Table of contents
\*------------------------------------*/

/*

CSS STRUCTURE:

1. VARIABLES
2. GENERAL TYPOGRAPHY


--------------------------------------------------------------*/
html { scroll-padding-top: 30px; } /* nastav podle své hlavičky */

:root {
    /* Theme colours (fixed red theme) */
    --theme-color: #e63946;               /* main red */
    --accent-color: #d43440;              /* slightly darker red accent */
    --linear-gradient: linear-gradient(90deg, #ca323e 0%, #ea5d67 100%);
    --theme-foreground: #ffffff;

    /* bootstrap-related colours updated to red family */
    --bs-primary: #e63946;
    --bs-primary-rgb: 230,57,70;
    --bs-link-color: #e63946;
    --bs-link-color-rgb: 230,57,70;
    --bs-link-hover-color: #d43440;
    --bs-link-hover-color-rgb: 212,52,64;

    /* keep other defaults (fonts/sizes) */
    --heading-font: 'Roboto Condensed', sans-serif;
    --heading-font-weight: 700;
    --heading-color: #313131;
    --heading-line-height: 1.24;

    --bs-body-font-family: 'Roboto', sans-serif;
    --bs-body-font-size: 18px;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.6875rem;
    --bs-body-color: #777777;
    --bs-body-color-rgb: 143, 143, 143;
    --bs-secondary: #8C907E;
    --bs-black: #313131;
    --bs-light: #FFFFFF;
    --bs-dark: #212529;
    --bs-gray: #D9D9D9;
    --bs-gray-dark: #51565b;
    --bs-secondary-rgb: 140, 144, 126;
    --bs-black-rgb: 17, 17, 17;
    --bs-light-rgb: 241, 241, 240;
    --bs-dark-rgb: 33, 37, 41;
    --bs-link-decoration: underline;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  color: var(--heading-color);
  line-height: var(--heading-line-height);
  letter-spacing: 0.065rem;
  text-transform: uppercase;
}

h6 {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.19rem;
}

.heading-color {
  color: var(--accent-color);
}

a {
  text-decoration: none;
  color: var(--bs-link-color);
}


/* bootstrap button style  */

.btn {
  --bs-btn-padding-x: 1.88em;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-font-family: var(--heading-font);
  --bs-btn-font-size: 1.1875rem;
  --bs-btn-font-weight: 700;
  border-radius: 0;
  text-transform: uppercase;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #fff;
}

/* red gradient for primary buttons */
.btn-primary {
    background-image: linear-gradient(90deg, #ca323e 0%, #ea5d67 51%, #ca323e 100%);
    background-size: 200% auto;
    border: none;
    transition: 0.7s all;
    -webkit-transition: 0.7s all;
    color: var(--theme-foreground);
}


.btn-primary:hover {
  background-position: right center;
}


/*---- navigation section style start ----*/

.navbar {
  font-family: var(--heading-font);
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0.5rem;
  --bs-navbar-color: var(--bs-black);
  --bs-navbar-hover-color: var(--accent-color);
  --bs-navbar-disabled-color: rgba(var(--bs-emphasis-color-rgb), 0.3);
  --bs-navbar-active-color: var(--accent-color);
  --bs-navbar-brand-padding-y: 0.3125rem;

  --bs-navbar-brand-font-size: 1.25rem;
  --bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1);
  --bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1);
}

.nav-link {
  font-size: 1rem;
  font-weight: 700;
}

nav.navbar {
  z-index: 999999;
}


/* dropdown style  */

.dropdown-menu {
  --bs-dropdown-border-radius: 0px;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--bs-gray);
  color: var(--bs-black);
}

.dropdown-item {
  font-weight: 600;
  color: var(--bs-black);
}

@media only screen and (max-width: 1200px) {
  a.phone-no {
    display: none;
  }
}

@media only screen and (max-width: 1800px) {
  .pattern-overlay {
    display: none;
  }
}

.bg-secondary {
  --bs-bg-opacity: 1;
  background-color: var(--accent-color) !important;
}



/*---- hero section style start ----*/

.pattern-overlay.pattern-right {
  top: 30%;
  right: 0px;
}

form.hero-form {
  background: rgba(255, 255, 255, 0.90);
}

.form-label {
  font-size: 0.875rem;
  color: var(--bs-black);
  text-transform: uppercase;
}

.form-control {
  /* border: none; */
  border-radius: 0;
}

/*---- partner section style start ----*/

img.logo-image {
  filter: saturate(0);
  opacity: 50%;
  transition: ease-in 0.2s;
}

img.logo-image:hover {
  filter: saturate(100%);
  opacity: 1;
}



/*---- testimonial section style start ----*/

section#testimonial {
    background: var(--linear-gradient);
}

.testimonial-pattern-overlay.pattern-right {
    top: 35%;
    right: 0px;
}

.testimonial-pattern-overlay.pattern-left {
    top: 20%;
    left: 0px;
}

.testimonial-content {
    background: #F2F7F0; /* svìtle zelenobéžová místo rùžové */
}


iconify-icon.rate {
  color: #F2B821;
}

/* swiper overide 
--------------------------------------------------------------*/

.swiper-pagination-bullet {
  background: var(--swiper-pagination-bullet-inactive-color, var(--bs-light));
}


/*---- services section style start ----*/

.services-components {
  border: 1px solid var(--accent-color);
  transition: all 0.5s ease-in;
}

iconify-icon.services-icon {
  font-size: 80px;
  color: var(--accent-color);
  transition: all 0.5s ease-in;
}

.services-heading {
  transition: all 0.5s ease-in;
}

.service-btn {
  transition: all 0.5s ease-in;

}

/*---- projects section style start ----*/

section#projekty {
  background: var(--accent-color);
}

button.filter-button {
  font-family: var(--heading-font);
  border: 1px solid #FFF;
  background: transparent;
  color: var(--bs-light);
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease-in;
}

button.filter-button.active {
  color: var(--bs-dark);
  background: var(--bs-light);
}

button.filter-button:hover {
  color: var(--bs-dark);
  background: var(--bs-light);
}


.item .description {
  width: 90%;
  height: 90%;
  position: absolute;
  bottom: 20px;
  left: 15px;
  z-index: 5;
  opacity: 0;
  background: rgba(255, 255, 255, 0.90);
  transition: all 0.5s ease-in;
}

.item:hover .description {
  opacity: 1;
}

@media only screen and (min-width:770px) and (max-width: 1400px) {
  .item .description {
    text-align: start;
  }

  .project-date,
  .project-heading {
    display: none;
  }
}

@media only screen and (min-width:770px) and (max-width: 1200px) {
  .item .description {
    left: -5px;
    background: none;
  }
}



/*---- process section style start ----*/

.process-components {
  border-bottom: 2px dotted var(--accent-color);
  /* border-top: 2px solid var(--accent-color); */
  transition: ease-in 0.3s;
}

img.arrow {
  opacity: 0;
}

iconify-icon.process-icon {
  color: var(--accent-color);
  font-size: 110px;
}



/*---- faq section style start ----*/

/* accordian style override  */

.accordion {
  --bs-accordion-border-color: var(--accent-color);
  --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
  --bs-accordion-btn-icon: url('https://api.iconify.design/ion/caret-down.svg?color=%23d06051&width=30');
  --bs-accordion-btn-active-icon: url('https://api.iconify.design/ion/caret-down.svg?color=%23d06051&width=30');
  --bs-accordion-border-radius: 0px;
}

.accordion-header {
  margin-bottom: 0;
  border-top: 1px solid var(--accent-color);
}

.accordion-button {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  color: var(--heading-color);
  line-height: var(--heading-line-height);
  letter-spacing: 0.065rem;
  text-transform: uppercase;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--heading-color);
  background-color: var(--bs-light);
  box-shadow: none;
}


/*---- cta section style start ----*/

section#cta {
  background: var(--linear-gradient);
}

.cta-button {
  background: var(--bs-light);
  color: var(--bs-black);
}

.cta-button:hover,
.cta-button:active,
.cta-button:focus {
  background: var(--bs-light);
  color: var(--bs-black);
}

@media only screen and (max-width: 770px) {
  .cta-pattern-overlay {
    display: none;
  }
}


/*---- footer section style start ----*/

iconify-icon.contact-icon {
  color: var(--bs-black);
  font-size: 24px;
}

iconify-icon.social-link-icon {
  color: rgba(208, 96, 81, 0.60);
  font-size: 24px;
}

iconify-icon.social-link-icon.active,
iconify-icon.social-link-icon:hover {
  color: #D06051;
}


/*--------------------------------------------------------------
About page style
--------------------------------------------------------------*/

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--bs-light);
}


/*--------------------------------------------------------------
  Blog page style
  --------------------------------------------------------------*/

.active>.page-link,
.page-link.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}


.form-control:focus {
  border-color: var(--bs-black);
  box-shadow: none;
}


/*--------------------------------------------------------------
  Price page style
  --------------------------------------------------------------*/


.plan-post {
  border: 1px solid var(--accent-color);
}

span.price-tick {
  color: var(--accent-color);
}

.price-option {
  height: 320px;
}

.recommend-price {
  background: #D06051;
}

/*--------------------------------------------------------------
  Project page style
  --------------------------------------------------------------*/

button.filter-button.gallery-btn {
  letter-spacing: 0.075rem;
  border: 1px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-black);
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease-in;
}

button.filter-button.gallery-btn.active {
  color: var(--bs-light);
  background: var(--accent-color);
}

button.filter-button.gallery-btn:hover {
  color: var(--bs-light);
  background: var(--accent-color);
}



/*--------------------------------------------------------------
reviews section style start
--------------------------------------------------------------*/

.reviews-components {
  border: 2px solid #FAFAFA;
  box-shadow: 0px 12px 90px rgba(12, 12, 12, 0.06);
  border-radius: 9px;
}

iconify-icon.quote {
  font-size: 60px;
  color: var(--accent-color);
}

.rate {
  color: var(--accent-color);
}

/* drobné pøizpùsobení */
#kontakt {
    font-size: 15px;
}



        #kontakt a:hover {
            text-decoration: underline;
        }
/* tlaèítkùm mùžeš pøiøadit olivovou barvu pomocí CSS promìnných pokud je máš definované */

/* --- gallery cropping & grid fixes --- */


/* --- gallery cropping & grid fixes --- */
/* Použít na existující strukturu: .isotope-container .item > a > img
   - zachová tvé stávající třídy (.col-md-2, .item, .description atd.)
   - nastaví jednotný náhled (ořez) bez zásahu do lightboxu */
/* --- overlay alignment fix (works with moving .description into the <a>) --- */

/* uděláme <a> "referenčním" boxem pro overlay */
/* --- gallery cropping & grid fixes --- */
/* Použít přesně zde (vložit do styles.css pod komentář) */
/* 1) Skrýt overlayy úplně */
   /* Grid container */
    .isotope-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    /* item */
    .isotope-container .item {
      position: relative;
      padding: 0;
      /* control width — using bootstrap cols for responsiveness,
         keep them inline-block-like so flex gap works well */
      flex: 0 0 auto;
    }

    /* anchor acts as a ratio box */
    .isotope-container .item > a {
      display: block;
      position: relative;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      min-height: 0;
      border-radius: 4px;
      text-decoration: none;
    }

    /* image fills anchor and is cropped */
    .isotope-container .item > a img,
    .isotope-container .item > a img.img-fluid {
      display: block;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center center !important;
      transition: transform .35s ease;
      vertical-align: middle;
    }

    /* simple zoom only */
    .isotope-container .item:hover > a img,
    .isotope-container .item > a:focus img {
      transform: scale(1.06);
    }

    /* hide any old overlays if still present */
    .isotope-container .item .description {
      display: none !important;
    }

    /* responsive tweak so bootstrap columns play nice inside flex */
    .isotope-container .col-md-2 {
      width: calc((100% / 12) * 2 - 0.75rem); /* approx two-columns fraction */
    }

    @media (max-width: 768px) {
      .isotope-container .col-md-2 {
        width: calc(50% - 0.75rem);
      }
    }

    @supports not (aspect-ratio: 1/1) {
      .isotope-container .item > a {
        height: 0;
      }

      .isotope-container .item > a::before {
        content: "";
        display: block;
        padding-top: 75%;
      }

      .isotope-container .item > a img {
        position: absolute;
        top: 0;
        left: 0;
      }
    }

      .social-icons { display:flex; justify-content:center; gap:14px; margin-top:12px; }
  .social-icons a {
    width:56px;
    height:56px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    transition:transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-decoration:none;
  }
  .social-icons a:focus { outline:3px solid rgba(230,57,70,0.16); outline-offset:3px; border-radius:10px; }
  .social-icons a:hover { transform:translateY(-3px) scale(1.03); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
  .social-icons svg { width:32px; height:32px; display:block; }

/* 1) ujistíme se, že navbar je center vertically */
.navbar .container {
  display: flex;
  align-items: center;   /* vertikální centrování */
  gap: 0.75rem;
  flex-wrap: nowrap;
}

/* 2) navbar-brand aby nebyl pushovaný paddingy */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex: 0 1 auto; /* nedovol růst do šířky, ale dovol se zmenšit */
  min-width: 0;
}

/* 3) pevná výška loga (nastavíš si), zachování poměru stran */
.site-logo {
  display: block;
  height: 35px;     /* <<< změň pokud chceš jinak pro desktop */
  width: auto;
  max-width: none;  /* zajistí, že se nesnaží vyplnit kontejner */
  object-fit: contain;
}

/* 4) breakpointy - menší výška na tabletech/mobilu */
@media (max-width: 992px) {
  .site-logo { height: 32px; }
}
@media (max-width: 576px) {
  .site-logo { height: 32px; }
}

/* 5) pokud Bootstrap používá .img-fluid nebo inline width, přepiš to */
.site-logo[width], .site-logo[height], .site-logo.img-fluid {
  width: auto !important;
  height: auto !important; /* pouze pokud potřebuješ odstranit inline attrs; obvykle nepotřebné */
}
