/*
Theme Name: Dog Kennel theme
Description: WordPress šablona pro osobitou prezentaci chovatelských stanic a kynologických klubů. Dává prostor fotografiím, informacím o psech, odchovech i klubovém dění a navazuje na vlastní doplňky pro tvorbu obsahu, správu médií a kontakt s návštěvníky.
Version: 1.8.0-beta.14
Text Domain: dog-kennel-theme
Requires at least: 6.3
Requires PHP: 8.0
Author: Olga Fucikova / OFphoto
*/

/* =====================================================
   1. THEME – ZÁKLAD
===================================================== */

:root {

    --bg: #fbc5a5;

    --text: #591e20;
    --text-light: #591e20;

    --accent: #8b2d2f;
    --accent-hover: #8b2d2f;

    --border: #d08071;
    --divider: #d08071;

    --dog: #004e87;
    --bitch: #fd239c;
    --heading-1: #a93e42;
	
    --footer: #8b2d2f;
    --footer-link: #591e20;
}


/* =====================================================
  2. BASE
===================================================== */

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
}

#main {
    background-color: var(--bg);
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    font-family: var(--font-body);
    font-size: 18px;
}

header,
.nav {
    position: relative;
    z-index: 1000;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
}

ul {
    list-style: none;
}

p,
ul,
ol {
    margin-bottom: 16px;
    text-align: justify;
    hyphens: auto;
}


/* =====================================================
  3. BASIC IMAGE ALIGNMENT
===================================================== */

.img-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.img-row img {
    max-width: 100%;
    height: auto;
    display: block;
}

.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignnone {
    margin: 20px 0;
}


/* =====================================================
  4. TYPOGRAPHY
===================================================== */

.entry-content,
.widget-content {
    font-family: var(--font-body);
    color: var(--text);
}

.entry-content {
    font-size: 21px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: left;
}

.widget-content {
    font-size: 18px;
    line-height: 1.7;
}

.widget-content li {
    line-height: 1.7;
}

.entry-content p {
    text-align: justify;
}


/* Lists */

.entry-content ul,
.widget-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li,
.widget-content ul li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 5px;
}
.entry-content ul li::before,
.widget-content ul li::before {
    content: "◆";
    position: absolute;
    left: 25px;
	top: 3px;
    color: var(--accent);
    font-size: 12px;
}

/* Links */

.entry-content a,
.widget-content a {
    text-decoration: none;
    color: var(--accent);
}

.entry-content a:visited,
.widget-content a:visited {
    color: var(--accent);
}


/* Strong */

.entry-content strong,
.entry-content b,
.widget-content strong,
.widget-content b {
    color: var(--accent);
}


/* Divider */

hr {
    border: none;
    height: 1px;
    background: var(--divider);
}


/* =====================================================
  5. HEADINGS
===================================================== */

.entry-content h1,
.widget-content h1 {
    font-size: 26px;
    color: var(--heading-1);
    text-transform: uppercase;
    text-align: center;
}

.entry-content h2,
.widget-content h2 {
    font-size: 24px;
    color: var(--heading-1);
    text-transform: uppercase;
    text-align: left;
    margin-top: 40px;
}

.entry-content h3,
.widget-content h3 {
    font-size: 22px;
    color: var(--heading-1);
    text-transform: uppercase;
    text-align: left;
    margin-top: 25px;
    opacity: 0.9;
}

.entry-content h4,
.widget-content h4 {
    font-size: 22px;
    color: var(--accent-hover);
    text-transform: uppercase;
}


/* Pes */

.entry-content h5,
.widget-content h5 {
    font-size: 18px;
    color: var(--dog);
    text-transform: uppercase;
}


/* Fena */

.entry-content h6,
.widget-content h6 {
    font-size: 18px;
    color: var(--bitch);
    text-transform: uppercase;
}


/* Heading base */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.widget-content h1,
.widget-content h2,
.widget-content h3,
.widget-content h4,
.widget-content h5,
.widget-content h6 {
    font-weight: normal;
    word-wrap: break-word;
    font-family: var(--font-headings);
    letter-spacing: 0.15em;
}


/* =====================================================
   WORDPRESS
===================================================== */

.sticky {}

.bypostauthor {}


.wp-caption {
    border: 1px solid #ddd;
    background: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
    text-align: center;
}

.wp-caption img {
    margin: 0;
    border: 0;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    padding: 0 4px 5px;
    margin: 0;
}

img.wp-post-image {
    margin: 0 5px 5px 0 !important;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
}

.screen-reader-text:focus {
    background: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    line-height: normal;
    padding: 15px 23px 14px;
    position: absolute;
    left: 5px;
    top: 5px;
    text-decoration: none;
    width: auto;
    z-index: 100000;
}


/* =====================================================
   CONTENT STACKING
===================================================== */

.content {
    position: relative;
    z-index: 1;
}


/* =====================================================
   2. THEME – NAŠE VĚCI
===================================================== */


/* =====================================================
   SECTIONS
===================================================== */

.section {
    width: 100%;
}

.section-inner {
    width: min(1600px, 100%);
    margin-inline: auto;
}


/* =====================================================
   RECENZE
===================================================== */

.home-testimonials {
    margin: 3rem 0;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(235, 182, 164, 0.18);
    border-bottom: 1px solid rgba(235, 182, 164, 0.18);
}

.testimonials-inner {
    width: min(1600px, 100% - 60px);
    margin-inline: auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


/* =====================================================
   FLEX - SLOUPCE
===================================================== */

.flex-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

.flex-items {
    flex: 1 1 0;
    min-width: 0;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}

.flex-items:not(:last-child) {
    border-right: 1px solid var(--border);
}


/* =====================================================
   PŘÍSPĚVKY
===================================================== */

.entry-content li,
.post li {
    color: var(--text);
    margin: 5px 0;
    padding-left: 12px;
}

.post a {
    word-break: break-word;
    line-height: 1.4;
}

/* Stejný stín fotografií v obsahu, galeriích a výpisech příspěvků. */
.entry-content img,
.fpc-thumb img,
.post img.wp-post-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.entry-content img {
    border-radius: 6px;
}


/* =====================================================
   BOXY
===================================================== */

.info-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(235, 182, 164, 0.25);
    padding: 20px;
    margin: 25px 0;
}

.info-box h3 {
    margin-top: 0;
}

.story-box {
    background: rgba(235, 182, 164, 0.05);
    border-left: 1px solid rgba(235, 182, 164, 0.6);
    padding: 20px;
    margin: 25px 0;
}

.note-box {
    background: transparent;
    border: 1px dashed rgba(235, 182, 164, 0.35);
    padding: 15px 18px;
    margin: 20px 0;
    font-style: italic;
}


/* =====================================================
   UTILITY
===================================================== */

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

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
    hyphens: auto;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.w-100 {
    width: 100%;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}


/* =====================================================
   GALERIE
===================================================== */

.gallery {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

.gallery .gallery-item {
    float:left;
    margin:0;
    padding:0;
    text-align:center;
}

.gallery.gallery-columns-1 .gallery-item { width:100%; }
.gallery.gallery-columns-2 .gallery-item { width:50%; }
.gallery.gallery-columns-3 .gallery-item { width:33.3333%; }
.gallery.gallery-columns-4 .gallery-item { width:25%; }
.gallery.gallery-columns-5 .gallery-item { width:20%; }
.gallery.gallery-columns-6 .gallery-item { width:16.6666%; }
.gallery.gallery-columns-7 .gallery-item { width:14.2857%; }
.gallery.gallery-columns-8 .gallery-item { width:12.5%; }
.gallery.gallery-columns-9 .gallery-item { width:11.1111%; }

.gallery .gallery-icon {
    width:100%;
    aspect-ratio:1 / 1;
    overflow:hidden;
}

.gallery .gallery-icon a {
    display:block;
    width:95%;
    height:95%;
}

.gallery .gallery-icon img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border:none !important;
    padding:0 !important;
    margin:0 !important;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.gallery br {
    display:block;
    clear:both;
}

.gallery::after {
    content:"";
    display:table;
    clear:both;
}

/* =====================================================
   3. PLUGINY A DALŠÍ POLOŽKY
===================================================== */


/* =====================================================
   FLEX POST
===================================================== */

.fpc-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    align-items: stretch;
}

.fpc-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fpc-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpc-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fpc-title {
    line-height: 1.7;
    min-height: 3em;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fpc-excerpt {
    line-height: 1.4;
    font-size: 18px;
    color: var(--text-light);
    font-family: var(--font-body);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 20px;
}

.fpc-button {
    align-self: center;
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 18px;
    padding: 6px 18px;
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    background-color: #e1624b;
    border: 1px solid #e1624b;
    border-radius: 6px;
}

.fpc-button:visited {
    background-color: rgb(235 182 164 / 18%);
    border-color: rgb(235 182 164 / 18%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.fpc-button:hover {
    background-color: rgb(235 182 164 / 18%);
    border-color: rgb(235 182 164 / 18%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.fpc-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}


/* =====================================================
   FAQ
===================================================== */

.faq-section {
    padding: 80px 20px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    line-height: 1.2;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 17px;
    cursor: pointer;
    position: relative;
    color: #fff;
    transition: 0.3s ease;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-question::after {
    font-size: 22px;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 0 24px;
    margin: 0;
    line-height: 1.7;
    opacity: 0.85;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}


/* =====================================================
   SCROLL BUTTON
===================================================== */

/* =====================================================
   ZDRAVÍ
===================================================== */

.dog-health {
    width: 100%;
}

.dog-health-header,
.dog-health-row {
    display: grid;
    grid-template-columns:
        14%
        14%
        14%
        14%
        14%
        14%
        15%;
    align-items: center;
}

.dog-health-header {
    font-weight: bold;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.dog-health-row {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dog-health-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.dog-health-grid > div {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* =====================================================
   VÝSTAVNÍ VÝSLEDKY
===================================================== */

.dog-results {
    width: 100%;
}

.dog-results-header,
.dog-result {
    display: grid;
    grid-template-columns: 12% 30% 12% 21% 25%;
    align-items: center;
}

.dog-results-header {
    font-weight: bold;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.dog-result {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dog-results-title {
    margin: 20px 0 5px;
    padding: 10px 8px;
    font-weight: bold;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}


/* =====================================================
   DOG DIVIDER
===================================================== */

.dog-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 10px 0;
    height: 80px;

    background-image: url("images/paws.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
}

.dog-divider::before,
.dog-divider::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex: 1;
}


/* =====================================================
   SEO CONTEXT
   TODO: MOVE TO DOG EDITOR TOOLS PLUGIN
===================================================== */

.seo-context {
    padding: 20px;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    font-size: 16px;
    line-height: 1.7;
}


/* =====================================================
   4. RESPONSIVE
===================================================== */


/* =====================================================
   RESPONSIVE – ZÁKLAD
===================================================== */

.responsive body {
    min-width: 240px;
}

.responsive img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.responsive .layout img,
.responsive .layout video {
    max-width: 100%;
    height: auto !important;
}


/* Responsive embed */

.responsive .responsive-embed {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.responsive .responsive-embed iframe,
.responsive .responsive-embed object,
.responsive .responsive-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}





/* =====================================================
   TABLET — max 1050px
   VÝSTAVNÍ VÝSLEDKY
===================================================== */

@media (max-width: 1050px) {

    .dog-results-header {
        display: none;
    }

    .dog-result {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .dog-result > div {
        margin: 4px 0;
    }

    .dog-result > div::before {
        content: attr(data-label) ": ";
        font-weight: bold;
    }

    .dog-results-title {
        margin-top: 15px;
    }
}


/* =====================================================
   TABLET — max 1024px
===================================================== */

@media (max-width: 1024px) {

    .fpc-cols-4,
    .fpc-cols-3,
    .fpc-cols-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


}


/* =====================================================
   MOBILE — max 768px
===================================================== */

@media (max-width: 768px) {



    .layout-cell {
        width: 100%;
    }
	
    .flex-container {
        flex-direction: column;
    }

    .flex-items {
        width: 100%;
    }

    .flex-items:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .fpc-cols-4,
    .fpc-cols-3,
    .fpc-cols-2 {
        grid-template-columns: 1fr;
    }






}


/* =====================================================
   MOBILE — max 700px
   ZDRAVÍ
===================================================== */

@media (max-width: 700px) {

    .dog-health-header {
        display: none;
    }

    .dog-health-row {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .dog-health-row > div {
        margin: 4px 0;
    }

    .dog-health-row > div:not(:empty)::before {
        content: attr(data-label) ": ";
        font-weight: bold;
    }
}


