
/* =========================================================
   BRAUSI & FLECKI – COMPLETE WEBSITE STYLESHEET
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --background: #fff9f2;
    --white: #ffffff;

    --orange: #d9824c;
    --orange-dark: #b96535;
    --orange-light: #fff0e3;

    --brown: #49352c;
    --brown-light: #70594b;

    --muted: #806e63;
    --border: #f0dfd1;

    --shadow: 0 10px 35px rgba(80, 50, 30, .07);
    --shadow-hover: 0 18px 45px rgba(80, 50, 30, .13);

    --radius: 22px;
}


/* =========================================================
   2. RESET & BASIC
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--brown);
    line-height: 1.7;
}

img {
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

section {
    scroll-margin-top: 80px;
}


/* =========================================================
   3. HEADER & NAVIGATION
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 17px 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.logo-icon {
    margin-right: 8px;
    color: var(--orange);
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}

nav a {
    font-size: .95rem;
    font-weight: 700;
    color: var(--muted);
    transition: color .2s ease;
}

nav a:hover {
    color: var(--orange);
}


/* =========================================================
   4. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 520px;
    padding: 110px 0;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(255, 249, 242, .92) 0%,
            rgba(255, 249, 242, .75) 35%,
            rgba(255, 249, 242, .35) 70%,
            rgba(255, 249, 242, .08) 100%
        ),
        url("images/hero.jpg") center center / cover no-repeat;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-text {
    max-width: 680px;
}

.eyebrow,
.section-heading > span {
    display: inline-block;
    color: var(--orange-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
    margin: 18px 0;
    letter-spacing: -2px;
    color: var(--brown);
}

.hero h1 span {
    color: var(--orange);
}

.hero-text > p:not(.hero-disclaimer) {
    max-width: 570px;
    color: var(--brown-light);
    font-size: 1.1rem;
}

.hero-disclaimer {
    margin-top: 25px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

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

    padding: 14px 27px;

    background: var(--orange);
    color: white;

    border-radius: 40px;

    font-weight: 800;
    font-size: .95rem;

    margin-top: 18px;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.button:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(185, 101, 53, .2);
}

.button-light {
    background: white;
    color: var(--brown);
}

.button-light:hover {
    background: var(--orange-light);
    color: var(--brown);
}


/* =========================================================
   6. GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 85px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 12px 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1rem;
    margin: 10px 0 0;
}


/* =========================================================
   7. MEET THE CATS
   ========================================================= */

#cats {
    background: #fffdf9;
}

.cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.cat-card {
    min-width: 0;
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 25px;
    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}


/* =========================================================
   8. CAT IMAGES – ALWAYS SHOW FULL IMAGE
   ========================================================= */

.cat-photo {
    width: 100%;

    /* Flexible height instead of forced cropping */
    height: auto;
    min-height: 0;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 22px;

    background: #fff8f0;
    border-radius: 18px;
}

.cat-photo img {
    display: block;

    width: 100%;
    height: auto;

    /* Never crop the original cat photo */
    object-fit: contain;

    /* Keep the original image proportions */
    object-position: center;

    max-height: 650px;
}


/* =========================================================
   9. CAT TEXT
   ========================================================= */

.cat-emoji {
    display: inline-block;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.cat-card h3 {
    font-size: 1.9rem;
    margin: 5px 0;
    color: var(--brown);
}

.cat-role {
    color: var(--orange-dark);
    font-weight: 800;
    margin-top: 5px;
}

.cat-card p:last-child {
    color: var(--muted);
    line-height: 1.8;
}

.cat-intro-footer {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}


/* =========================================================
   10. SOCIAL MEDIA
   ========================================================= */

.social {
    background: #fff1e5;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 850px;
    margin: auto;
}

.social-card {
    min-width: 0;

    background: white;
    padding: 23px;

    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 17px;

    border: 1px solid var(--border);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.social-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 16px;
    background: var(--orange-light);
    color: var(--orange-dark);

    font-size: 1.8rem;
    font-weight: 800;

    flex-shrink: 0;
}

.social-card strong,
.social-card small {
    display: block;
}

.social-card strong {
    font-size: 1rem;
}

.social-card small {
    color: var(--muted);
    font-size: .85rem;
}

.arrow {
    margin-left: auto;
    color: var(--orange);
    font-size: 1.4rem;
}


/* =========================================================
   11. YOUTUBE VIDEOS
   ========================================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.video-card {
    min-width: 0;
    overflow: hidden;

    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-link {
    display: block;
    position: relative;
    color: inherit;
}

.video-link > img {
    display: block;
    width: 100%;

    aspect-ratio: 16 / 9;
    object-fit: contain;

    background: #f8eee5;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, .95);

    color: #e62117;
    font-size: 22px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);

    transition: transform .2s ease;
}

.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.12);
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.video-content p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    color: #999;
    font-size: .8rem;
}

.video-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 15px;
    color: var(--muted);
}


/* =========================================================
   12. CENTER ELEMENTS
   ========================================================= */

.center {
    text-align: center;
    margin-top: 35px;
}


/* =========================================================
   13. FINAL CTA
   ========================================================= */

.final-cta {
    background: var(--brown);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 15px;
}

.final-cta p {
    color: #e8d5ca;
    font-size: 1.05rem;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

footer {
    padding: 40px 0;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-content p {
    color: var(--muted);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--brown-light);
    font-weight: 600;
}

.footer-legal a:hover {
    color: var(--orange);
}

.copyright {
    font-size: .85rem;
}


/* =========================================================
   15. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: min(100% - 36px, 720px);
    }

    .hero {
        min-height: 460px;
        padding: 80px 0;
    }

    .cats {
        gap: 20px;
    }

    .cat-card {
        padding: 22px;
    }

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

}


/* =========================================================
   16. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 30px);
    }

    /* Header */

    .header {
        padding: 13px 0;
    }

    .navigation {
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 12px 20px;
    }

    nav a {
        font-size: .85rem;
    }


    /* Hero */

    .hero {
        min-height: 400px;
        padding: 65px 0;

        background-position: center center;

        background-image:
            linear-gradient(
                rgba(255, 249, 242, .84),
                rgba(255, 249, 242, .84)
            ),
            url("images/hero.jpg");
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        letter-spacing: -1.5px;
    }

    .hero-text > p:not(.hero-disclaimer) {
        font-size: 1rem;
    }


    /* Sections */

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }


    /* Cats */

    .cats {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cat-card {
        padding: 20px;
    }

    .cat-photo {
        height: auto;
        min-height: 0;
    }

    .cat-photo img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }


    /* Social */

    .social-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .social-card {
        padding: 17px;
    }


    /* Videos */

    .video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .video-link > img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }


    /* CTA */

    .final-cta {
        padding: 60px 20px;
    }

    .final-cta h2 {
        font-size: 2rem;
    }

}


/* =========================================================
   17. SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 24px);
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: .8rem;
    }

    .hero {
        min-height: 360px;
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .cat-card {
        padding: 16px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

}


/* =========================================================
   18. ACCESSIBILITY & MOTION
   ========================================================= */

a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
