/**
 * @package     Joomla.Site
 * @subpackage  tpl_qnjasicek
 * @copyright   (C) 2026 Jašíček & Partners
 * @license     GNU General Public License version 2 or later
 *
 * Custom styles for Doma ve Španělsku
 * Based on the original design at doma-ve-spanelsku.mise-en-place.cz
 */

/* ========================================================================
   CSS Custom Properties
   ======================================================================== */

:root {
    --dves-primary: #C10003;
    --dves-dark: #000;
    --dves-white: #fff;
    --dves-accent: #ffc107;
    --dves-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    --dves-radius: 1rem;
    --bs-font-sans-serif: "clother", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-weight: 300;
    --bs-link-color: #C10003;
    --bs-link-hover-color: #9a0002;
    --bs-primary: #C10003;
}

/* ========================================================================
   Container — narrower than Bootstrap default (960px from lg+)
   ======================================================================== */

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 960px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 960px;
    }
}

/* ========================================================================
   Base / Typography
   ======================================================================== */

b, strong {
    font-weight: 700;
}

a {
    color: #C10003;
}

a:hover {
    color: #9a0002;
}

body {
    font-family: var(--bs-font-sans-serif);
    font-weight: 300;
    overflow-x: hidden;
    background-image: url('/templates/tpl_qnjasicek/images/background.png');
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.h1, h1 {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    color: #C10003;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.h1--small {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
}

.h2, h2 {
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.h2--small {
    display: block;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #C10003;
    margin-top: 0.5rem;
}

.h3, h3 {
    font-weight: 400;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding-left: 1rem;
    border-left: 3px solid #ffc107;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .h1, h1 {
        font-size: 4rem;
    }
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn-outline-primary {
    --bs-btn-color: #C10003;
    --bs-btn-border-color: #C10003;
    --bs-btn-hover-bg: #C10003;
    --bs-btn-hover-border-color: #C10003;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #9a0002;
    --bs-btn-active-border-color: #9a0002;
    --bs-btn-active-color: #fff;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 0;
}

/* ========================================================================
   Navbar
   ======================================================================== */

.navbar {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.nav__wrapper {
    margin-left: auto;
}

.nav__logotype {
    height: 50px;
}

.nav__item {
    color: var(--dves-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .nav__wrapper {
        gap: 4rem;
    }
}

/* ========================================================================
   Hero Box
   ======================================================================== */

.hero-box {
    margin: 8rem auto 4rem;
}

.hero-box__image {
    margin-bottom: 2rem;
    text-align: center;
}



@media (min-width: 992px) {
    .hero-box {
        margin: 10rem auto 6rem;
    }
}

@media (min-width: 1200px) {
    .hero-box {
        margin: 12rem auto 8rem;
    }
}

/* ========================================================================
   Headings (Section Titles)
   ======================================================================== */

.headings {
    margin: 4rem auto;
}

.headings__content {
    text-align: center;
}

.headings__content--bg {
    padding: 2rem 0;
    background-color: var(--dves-primary);
    color: var(--dves-white);
}

.headings__content--first {
    margin-top: 4rem;
    display: block;
}

.headings__title {
    text-align: center;
}

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

.headings__icon {
    height: 75px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.headings__img {
    height: 100px;
    margin: 0 auto 2rem;
}

@media (min-width: 992px) {
    .headings__content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .headings__title {
        text-align: left;
    }

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

    .headings__icon {
        height: 75px;
        margin-right: 2rem;
        margin-bottom: 0;
        display: inline-block;
        margin-left: 0;
    }
}

/* ========================================================================
   Main Box (Image + Text Sections)
   ======================================================================== */

.main-box {
    margin-bottom: 4rem;
}

.main-box__image {
    margin-bottom: 2rem;
    text-align: center;
}

.main-box__image img {
    max-height: var(--main-box-img-max-height, 200px);
}

@media (min-width: 992px) {
    .main-box {
        margin-bottom: 6rem;
    }

    .main-box__image {
        margin-bottom: 0;
    }

    .main-box__image img {
        max-height: var(--main-box-img-max-height, 300px);
    }
}

@media (min-width: 1200px) {
    .main-box {
        margin-bottom: 8rem;
    }
}

/* ========================================================================
   Photo Strip
   ======================================================================== */

.strip {
    margin-bottom: 4rem;
    position: relative;
}

.strip__container,
.strip__container .mod-custom {
    display: flex;
}

.strip__container img {
    max-width: 33.3333333333%;
    object-fit: cover;
    flex: 1;
}

@media (min-width: 992px) {
    .strip {
        margin-bottom: 6rem;
    }
}

@media (min-width: 1200px) {
    .strip {
        margin-bottom: 8rem;
    }
}

/* ========================================================================
   Calculator
   ======================================================================== */

.calculator {
    margin-bottom: 4rem;
}

.calculator__wrapper {
    align-items: center;
}

.calculator__range {
    padding: 1rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.calculator__range input {
    width: 100%;
}

.calculator__range input[type="range"] {
    -webkit-appearance: none;
}

.calculator__range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: #C10003;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    margin-bottom: -6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.calculator__range input[type="range"]::-moz-range-thumb {
    background-color: red;
}

.calculator__range input[type="range"]::-webkit-slider-runnable-track {
    background-color: #dee2e6;
    border-radius: 1rem;
}

.calculator__price {
    text-align: right;
    font-weight: 700;
}

.calculator__result {
    font-size: 3rem;
    font-weight: 700;
    border: 2px solid var(--dves-primary);
    border-radius: 2rem;
    padding: 2rem 0;
    text-align: center;
}

@media (min-width: 992px) {
    .calculator {
        margin-bottom: 6rem;
    }

    .calculator__desc {
        width: 80%;
    }

    .calculator__range {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .calculator__range input {
        width: 70%;
    }

    .calculator__price {
        padding-left: 1rem;
    }

    .calculator__result {
        padding: 3rem 0;
    }
}

@media (min-width: 1200px) {
    .calculator {
        margin-bottom: 8rem;
    }
}

/* ========================================================================
   Text Box (Cards, Testimonials, Services)
   ======================================================================== */

.textbox {
    background-color: var(--dves-white);
    box-shadow: var(--dves-shadow);
    padding: 2rem;
}

.textbox__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.textbox__list li::marker {
    font-weight: 700;
}

.textbox__sign {
    padding-left: 1rem;
    border-left: 2px solid var(--dves-accent);
    font-weight: 700;
}

.textbox__img {
    text-align: center;
    margin-bottom: 1.5rem;
}

.textbox__img img {
    max-height: 100px;
}

.textbox__img--icon img {
    max-height: 50px;
}

@media (min-width: 992px) {
    .textbox {
        height: 100%;
    }
}

/* ========================================================================
   Two Column / Three Column Sections
   ======================================================================== */

.two-column {
    margin-bottom: 4rem;
}

.three-column {
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .two-column {
        margin-bottom: 6rem;
    }

    .three-column {
        margin-bottom: 6rem;
    }
}

@media (min-width: 1200px) {
    .two-column {
        margin-bottom: 8rem;
    }

    .three-column {
        margin-bottom: 8rem;
    }
}

/* ========================================================================
   Decorative Elements
   ======================================================================== */

#content {
    position: relative;
}

.deco-wrapper {
    position: relative;
}

.deco {
    position: absolute;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 2;
    opacity: 1;
    height: auto;
}

.deco--birds {
    left: clamp(10px, 3vw, 50px);
    top: clamp(-80px, -10vw, -20px);
    width: clamp(90px, 8vw, 210px);
}

.deco--fish {
    right: clamp(10px, 3vw, 50px);
    bottom: clamp(-50px, -8vw, -120px);
    width: clamp(110px, 10vw, 210px);
}

.deco--anchor {
    left: clamp(10px, -25vw, -350px);
    bottom: clamp(-60px, -5vw, -20px);
    width: clamp(80px, 8vw, 210px);
}

.deco--wave {
    right: clamp(10px, 3vw, 50px);
    bottom: clamp(-30px, -25vw, -20px);
    width: clamp(150px, 12vw, 310px);
}

.deco--crab {
    right: clamp(10px, 3vw, 50px);
    bottom: clamp(5px, 25vw, -20px);
    width: clamp(70px, 8vw, 210px);
}

.deco--hive {
    left: clamp(10px, 3vw, 50px);
    bottom: clamp(-55px, -20vw, -20px);
    width: clamp(70px, 8vw, 210px);
}

.deco--birdsToBody {
    display: none;
}

.deco--anchorToBody {
    display: none;
}

.deco--crabToBody {
    display: none;
}

@media (min-width: 992px) {
    .deco--birdsToBody {
        display: block;
        left: 50px;
        top: 50px;
        width: 100px;
    }

    .deco--anchorToBody {
        display: block;
        right: 50px;
        top: 65vh;
        width: 80px;
    }

    .deco--crabToBody {
        display: block;
        left: 50px;
        bottom: 50vh;
        width: 100px;
    }
}

/* ========================================================================
   Footer
   ======================================================================== */

.footer {
    background-color: #000;
    padding: 1.5rem;
    color: #fff;
}

.footer__logo {
    max-width: 150px;
    margin-bottom: 2rem;
}

.footer__address {
    font-weight: 300;
}

.footer__nav-list {
    list-style: none;
    padding: 0;
    margin-bottom: 4rem;
    display: flex;
    gap: 1rem;
    font-weight: 700;
}

.footer__nav-list a {
    text-decoration: none;
}

.footer__contact-list {
    list-style: none;
    padding: 0;
}

.footer__contact-item {
    margin-bottom: 1rem;
}

.footer__contact-link {
    color: #fff;
    text-decoration: none;
}

.footer__icon {
    width: 32px;
    margin-right: 0.5rem;
}

.footer__contact-text {
    font-size: 0.85rem;
}

.footer__bottom {
    font-size: 0.75rem;
    text-align: center;
}

@media (min-width: 992px) {
    .footer {
        padding: 2rem;
    }

    .footer__icon {
        margin-right: 1rem;
    }

    .footer__contact-text {
        font-size: 1rem;
    }
}

/* ========================================================================
   Utility: Module chrome - no wrapper
   ======================================================================== */

.mod-custom .mod-custom__body {
    /* Reset any default module chrome padding */
}

/* ========================================================================
   Article Box (Průvodce cards)
   ======================================================================== */

.articlebox {
    background-color: #fff;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.articlebox__title {
    margin-bottom: 1.5rem;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.articlebox__desc {
    padding: 0 2rem;
}

.articlebox__img {
    text-align: center;
    margin-bottom: 1.5rem;
}

.articlebox__img img {
    width: 100%;
    object-fit: cover;
}

.articlebox__button {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .articlebox {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .articlebox__body {
        flex: 1;
    }
}

/* ========================================================================
   Article Detail
   ======================================================================== */

.article-detail {
    margin: 8rem auto 4rem;
}

.article-detail__image {
    width: 80%;
    margin: 0 auto 4rem;
}

.article-detail__image img {
    width: 100%;
}

.article-detail__title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.article-detail__perex {
    margin-bottom: 2rem;
    font-weight: 700;
}

.article-detail__section-title {
    font-size: 2rem;
    font-weight: 700;
}

.article-detail__text {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .article-detail {
        margin: 10rem auto 6rem;
    }
}

@media (min-width: 1200px) {
    .article-detail {
        margin: 12rem auto 8rem;
    }
}

/* ========================================================================
   Contact Form
   ======================================================================== */

.contact-form {
    margin: 8rem auto 4rem;
}

.contact-form__title {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form__intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-form__form {
    margin: 0 auto;
}

.contact-form__label {
    color: #C10003;
    font-weight: 300;
}

.contact-form__input {
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0;
    margin-bottom: 2rem;
}

.contact-form__textarea {
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0;
    margin-bottom: 1rem;
}

.contact-form__consent {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-form__checkbox {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid #C10003;
}

@media (min-width: 992px) {
    .contact-form {
        margin: 10rem auto 6rem;
    }

    .contact-form__form {
        width: 60%;
    }
}

@media (min-width: 1200px) {
    .contact-form {
        margin: 12rem auto 8rem;
    }
}
