/* =============================================================
   ArmorCMS — Public Frontend Stylesheet
   Single breakpoint: 768px
   ============================================================= */

/* --- Custom properties ---------------------------------------- */
:root {
    --color-bg:         #ffffff;
    --color-text:       #282728;
    --color-text-2:     #737373;
    --color-muted:      #666666;
    --color-border:     #dddddd;
    --color-primary:    #dc5c84;
    --color-header-bg:  #000000;
    --color-header-txt: #ffffff;
    --color-footer-bg:  #000000;
    --color-footer-txt: #cccccc;
    --font-main:        'Lato', Arial, Tahoma, sans-serif;
    --max-width:        1200px;
    --header-height:    200px;
    --nav-height:       120px;
}

/* --- Reset ---------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base ----------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* --- Header --------------------------------------------------- */
.frontend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 1.5rem;
    background-color: var(--color-header-bg);
    background-image: url("/assets/images/liliowo-header.webp");
    background-repeat: no-repeat;
    gap: 1rem;
}

.frontend-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.frontend-nav-bar.scrolled {
    background-color: rgba(0, 0, 0, 0.92);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.frontend-hero {
    position: relative;
    height: 800px;
    background-color: var(--color-header-bg);
    background-image: url("/assets/images/liliowo-header-home.webp");
    background-repeat: no-repeat;
    /* background-position: center; */
    /* background-size: cover; */
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 600px;
    padding-top: 80px;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dc5c84;
    margin-bottom: 1rem;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-btn {
    display: inline-block;
    background-color: #dc5c84;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 1.75rem;
}

.hero-btn:hover {
    background-color: #c44a70;
    text-decoration: none;
}

.hero-fb-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-fb-link:hover {
    color: #ffffff;
}

.frontend-subhero {
    height: calc(var(--header-height) + var(--nav-height));
    padding-top: var(--nav-height);
    background-color: var(--color-header-bg);
    background-image: url("/assets/images/liliowo-header.webp");
    background-repeat: no-repeat;
    /* background-position: center; */
    /* background-size: cover; */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.frontend-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.frontend-logo img {
    max-height: 100px;
    width: auto;
}

/* --- Navigation ---------------------------------------------- */
#main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

#main-nav a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    color: var(--color-header-txt);
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.3rem;
    transition: background-color 0.15s ease;
}

#main-nav a:hover,
#main-nav a.active {
    background-color: transparent;
    text-decoration: underline;
    text-decoration-color: #dc5c84;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

#main-nav .nav-close {
    display: none;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    color: var(--color-header-txt);
    font-size: 1.5rem;
    text-decoration: none;
    line-height: 1;
    padding: 0.25rem;
}

/* --- Content -------------------------------------------------- */
.frontend-content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Basic content typography */
.frontend-content h1 {
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    text-decoration: underline;
    text-decoration-color: #dc5c84;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
}
.frontend-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.frontend-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem;  margin-top: 1.25rem; }
.frontend-content p  { margin-bottom: 1rem; }
.frontend-content ul,
.frontend-content ol { margin: 0 0 1rem 1.5rem; }
.frontend-content li { margin-bottom: 0.25rem; }

/* Homepage featured pages section */
.homepage-pages-section {
    padding: 4rem 0 5rem;
}

.homepage-pages-section .opinions-header,
.homepage-pages-section .page-cards {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Category listing — page cards */
.page-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.page-card-inner {
    border: 1px solid #dde4f2;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.page-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f3fb;
}

.page-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-card:hover .page-card-image img {
    transform: scale(1.04);
}

.page-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5cde0;
    font-size: 2.5rem;
}

.page-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
}

.page-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .page-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* --- Footer --------------------------------------------------- */
.frontend-footer {
    background-color: var(--color-footer-bg);
    background-image: url("/assets/images/liliowo-footer.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--color-footer-txt);
    padding: 2rem 1.5rem;
}

.footer-heading {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-contact:first-of-type {
    text-align: left;
}

.footer-contact:last-of-type {
    text-align: right;
}

.footer-contact strong {
    display: block;
    color: #dc5c84;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.footer-contact span {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav a {
    color: var(--color-footer-txt);
    font-size: 1.05rem;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copy {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 1rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

.footer-copy a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Opinions slider ----------------------------------------- */
.opinions-section {
    padding: 4rem 1rem 5rem;
    background: #f0f3fb;
    overflow: hidden;
}

.opinions-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.opinions-title {
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: #dc5c84;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    margin: 0 0 0.75rem;
}

.opinions-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-2);
    margin: 0;
}

.opinion-slider {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.opinion-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.opinion-card {
    flex: 0 0 100%;
    padding: 1.5rem;
    background-color: #ffffff;
    margin: 1.25rem 1.5rem 1.75rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.opinion-card-inner {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dde4f2;
    padding: 3rem 2rem 2rem;
    text-align: center;
    overflow: visible;
    flex: 1;
}

.opinion-quote {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0 0.75rem;
    line-height: 0;
}

.opinion-quote img {
    height: 30px;
    width: auto;
}

.opinion-content {
    font-size: 0.95rem;
    color: var(--color-text-2);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.opinion-stars {
    color: #FDA4C0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.opinion-author {
    font-size: 0.95rem;
    color: #FDA4C0;
    font-weight: 700;
}

.opinion-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.opinion-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c5cde0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.opinion-dot.active {
    background: #FDA4C0;
}

@media (min-width: 768px) {
    .opinion-card {
        flex: 0 0 33.333%;
    }
}

/* --- Mobile (≤768px) ----------------------------------------- */
@media (max-width: 768px) {
    /* Show hamburger */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 40px;
        font-size: 2rem;
    }

    /* Hide nav by default on mobile */
    #main-nav {
        display: none;
    }

    /* Show nav when targeted via :target */
    #main-nav:target {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-header-bg);
        padding: 1rem 1.5rem;
        z-index: 200;
        overflow-y: auto;
    }

    #main-nav:target a {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        font-size: 1.1rem;
    }

    #main-nav:target a:last-child {
        border-bottom: none;
    }

    /* Show close button inside open nav */
    #main-nav:target .nav-close {
        display: block;
        align-self: flex-end;
        width: auto;
        color: var(--color-header-txt);
        font-size: 2rem;
        padding: 0;
        margin-bottom: 0.25rem;
        border-bottom: none !important;
    }

    /* Footer stacks vertically */
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-contact,
    .footer-contact:first-of-type,
    .footer-contact:last-of-type {
        text-align: center;
    }

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

    .frontend-footer {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .footer-heading {
        margin-bottom: 1.5rem;
    }

    .hero-heading {
        font-size: 2.2rem;
    }

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

    .opinion-card {
        flex: 0 0 calc(100% - 3rem);
    }

    .frontend-hero {
        height: 630px;
        padding-top: 50px;
        background-size: cover;
        background-position: center;
    }

    .frontend-subhero {
        height: 120px;
    }

    .frontend-nav-bar {
        padding: 0.75rem 0;
    }
}

/* --- Contact page -------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Info column */
.contact-info-block {
    margin-bottom: 2rem;
}

.contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
}

.contact-icon {
    width: 1.1rem;
    text-align: center;
    color: #dc5c84;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-detail-list a {
    color: var(--color-text);
}

.contact-detail-list a:hover {
    color: #dc5c84;
    text-decoration: none;
}

/* Hours list */
.contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-hours-list li:last-child {
    border-bottom: none;
}

.contact-hours-day {
    color: var(--color-text);
    font-weight: 500;
}

.contact-hours-time {
    color: var(--color-text-2);
}

/* Map */
.contact-map {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.5rem;
    border: 1px solid var(--color-border);
}

.contact-map iframe {
    display: block;
}

/* Form column */
.contact-form-intro {
    color: var(--color-text-2);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-required {
    color: #dc5c84;
}

.contact-form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.contact-form-input:focus {
    outline: none;
    border-color: #dc5c84;
    box-shadow: 0 0 0 3px rgba(220, 92, 132, 0.12);
}

textarea.contact-form-input {
    resize: vertical;
    min-height: 130px;
}

.contact-submit {
    align-self: flex-start;
    background-color: #dc5c84;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-submit:hover {
    background-color: #c44a70;
}

.contact-privacy-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-privacy-note a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* Flash messages */
.contact-flash {
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-flash--success {
    background: #e8f8ee;
    color: #1a6b39;
    border: 1px solid #b2dfcc;
}

.contact-flash--error {
    background: #fdf0f3;
    color: #8b1a35;
    border: 1px solid #f5c0cf;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}
