@import url("root.css");

body{
    background-image: url('../images/esbirds-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header{
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(34, 66, 81, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(234, 235, 229, 0.15);

    .logo img{
        height: 70px;
        width: auto;
        display: block;
        margin-top: -8px;
    }

    nav{
        display: flex;
        align-items: center;
        gap: 2rem;

        a{
            font-family: var(--font1);
            font-size: 1.3rem;
            color: var(--004);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        a:hover{
            color: var(--003);
        }

        .social-links{
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .social-link{
            display: flex;
            padding: 0;
        }

        .social-link img{
            width: 26px;
            height: 26px;
            display: block;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .social-link:hover img{
            transform: scale(1.12);
            opacity: 0.8;
        }
    }
}

.hero-container{
    display: flex;
    flex: 1;
    width: 100%;
    margin-top: -90px;

    .hero-left{
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;

        margin-left: 50px;

        text-align: right;
        padding: 2rem;

        h1{
            font-size: 7rem;
            margin: 0;
        }
        p{
            font-family: var(--font1);
            font-size:2rem;
            margin: 1rem 0 2rem;
        }
        .btn-primary{
            display: inline-block;
            font-family: var(--font1);
            font-size: 1.2rem;
            text-decoration: none;
            color: var(--005);
            background-color: var(--004);
            padding: 0.75rem 2rem;
            border-radius: 2rem;
            transition: background-color 0.2s ease;
            margin-right: 0.6rem;
        }
        .btn-primary:hover{
            background-color: var(--003);
        }
    }
    .hero-right{
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: hidden;
        img{
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: 100vh;
        }
    }
}


.hero-mobile{
    display: none;
}

.banner{
    background-color: var(--004);
    padding: 1.5rem 0;
    overflow: hidden;

    .banner-track{
        display: flex;
        width: max-content;
        animation: banner-scroll 70s linear infinite;

        p{
            flex-shrink: 0;
            white-space: nowrap;
            margin: 0;
            padding-right: 1rem;
            font-family: var(--font1);
            font-weight: 600;
            font-size: 1.2rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--001);
        }
    }
}

.about{
    display: flex;
    justify-content: space-between;
    padding: 1rem;

    .about-left,
    .about-right{
        flex: 1;
        padding: 0.5rem;
    }
    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
    }

    .about-left p{
        text-align: center;
        font-size: 1.2rem;
    }

    .about-left{
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        margin-top: -20px;
        img{
            width: 40px;
            filter: invert(1);
            rotate: calc(20deg);
            align-self: center;
            margin-top: -30px;
        }
    }

    .about-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    
        .mini-gallery {
            display: flex;
            justify-content: center;
            flex-direction: row;
    
            img {
                width: 320px;
                padding: 0.5rem;
                border-radius: 15px;
                transition: transform 1s ease-in-out;
            }
    
            img:hover {
                transform: scale(1.1);
            }
        }
    }
}

.birds-for-sale{
    background-color: var(--004);
    color: var(--005);
    padding: 2.5rem 3rem 3.5rem;

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
        color: var(--005);
    }

    .bfs-intro{
        max-width: 780px;
        margin: 0.5rem auto 1rem;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.5;
        color: var(--005);
    }

    .bfs-legend{
        max-width: 900px;
        margin: 0 auto 2rem;
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--002);
    }

    .bfs-table-wrap{
        max-width: 1100px;
        margin: 0 auto;
        max-height: 70vh;
        overflow: auto;
        border: 1px solid var(--003);
        border-radius: 12px;
        background: var(--004);
    }

    .bfs-table{
        width: 100%;
        border-collapse: collapse;
        font-family: var(--font1);
        font-size: 1rem;
    }

    .bfs-table thead th{
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--001);
        color: var(--004);
        font-family: var(--font3);
        font-weight: 400;
        text-align: left;
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .bfs-table tbody td{
        padding: 0.6rem 1rem;
        border-top: 1px solid rgba(34, 66, 81, 0.15);
        color: var(--005);
        vertical-align: top;
    }

    .bfs-table tbody tr:nth-child(even of :not(.bfs-group):not(.bfs-sub):not(.bfs-note-row)){
        background: rgba(34, 66, 81, 0.04);
    }

    .bfs-table tr.bfs-group td{
        background: var(--002);
        color: var(--004);
        font-family: var(--font3);
        font-size: 1.15rem;
        letter-spacing: 0.03em;
        padding: 0.7rem 1rem;
    }

    .bfs-table tr.bfs-sub td{
        background: rgba(34, 66, 81, 0.12);
        color: var(--001);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
        padding: 0.5rem 1rem;
    }

    .bfs-table tr.bfs-note-row td{
        background: rgba(157, 171, 188, 0.25);
        color: var(--005);
        font-style: italic;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px){
    .birds-for-sale{
        padding: 2rem 1rem 2.5rem;
    }
    .birds-for-sale h2{
        font-size: 2.2rem;
    }
    .birds-for-sale .bfs-table{
        font-size: 0.9rem;
    }
    .birds-for-sale .bfs-table thead th,
    .birds-for-sale .bfs-table tbody td{
        padding: 0.5rem 0.6rem;
    }
}

.birds-wanted{
    background-color: var(--004);
    color: var(--005);
    padding: 2.5rem 3rem 3.5rem;

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
        color: var(--005);
    }

    .bw-intro{
        max-width: 780px;
        margin: 0.5rem auto 2rem;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.55;
        color: var(--005);
    }

    .bw-form{
        max-width: 900px;
        margin: 0 auto;
    }

    .bw-fieldset{
        border: 1px solid var(--003);
        border-radius: 12px;
        padding: 1.5rem;
        margin: 0 0 1.5rem;
        background: rgba(34, 66, 81, 0.03);
    }

    .bw-fieldset legend{
        font-family: var(--font3);
        font-size: 1.3rem;
        color: var(--001);
        padding: 0 0.6rem;
    }

    .bw-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem 1.25rem;
    }

    .bw-field{
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .bw-field--full{
        margin-top: 1rem;
    }

    .bw-field label{
        font-size: 1rem;
        font-weight: 600;
        color: var(--001);
    }

    .bw-req{
        color: #b23b3b;
    }

    .bw-field input,
    .bw-field select,
    .bw-field textarea{
        font-family: var(--font1);
        font-size: 1rem;
        color: var(--005);
        padding: 0.6rem 0.75rem;
        border: 1px solid var(--003);
        border-radius: 0.5rem;
        background: var(--004);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .bw-field textarea{
        resize: vertical;
    }

    .bw-field input:focus,
    .bw-field select:focus,
    .bw-field textarea:focus{
        outline: none;
        border-color: var(--002);
        box-shadow: 0 0 0 3px rgba(51, 90, 107, 0.2);
    }

    .bw-submit{
        display: inline-block;
        font-family: var(--font1);
        font-size: 1.15rem;
        color: var(--004);
        background-color: var(--001);
        padding: 0.8rem 2.5rem;
        border: none;
        border-radius: 2rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .bw-submit:hover{
        background-color: var(--002);
    }

    .bw-fineprint{
        margin: 1rem 0 0;
        font-size: 0.95rem;
        color: var(--002);
    }

    .bw-fineprint a{
        color: var(--001);
        font-weight: 600;
    }
}

@media (max-width: 768px){
    .birds-wanted{
        padding: 2rem 1rem 2.5rem;
    }
    .birds-wanted h2{
        font-size: 2.2rem;
    }
    .birds-wanted .bw-fieldset{
        padding: 1.1rem;
    }
    .birds-wanted .bw-submit{
        width: 100%;
    }
}

.products{
    padding: 3rem 3rem 3.5rem;

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
    }

    .products-intro{
        max-width: 720px;
        margin: 0.5rem auto 2.5rem;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.55;
        color: var(--004);
    }

    .products-grid{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.75rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .product-card{
        display: flex;
        flex-direction: column;
        background: var(--004);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .product-card:hover{
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    }

    .product-media{
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .product-media img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .product-card:hover .product-media img{
        transform: scale(1.06);
    }

    .product-body{
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem 1.35rem 1.5rem;
    }

    .product-body h3{
        margin: 0;
        font-family: var(--font3);
        font-size: 1.3rem;
        font-weight: 400;
        color: var(--001);
    }

    .product-body p{
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--005);
    }

    .products-cta{
        max-width: 720px;
        margin: 2.5rem auto 0;
        text-align: center;
        font-size: 1rem;
        color: var(--004);
    }

    .products-cta a{
        color: var(--004);
        font-weight: 600;
        text-decoration: underline;
    }
}

@media (max-width: 768px){
    .products{
        padding: 2rem 1rem 2.5rem;
    }
    .products h2{
        font-size: 2.2rem;
    }
    .products .products-grid{
        gap: 1.25rem;
    }
}

.articles{
    background-color: var(--004);
    color: var(--005);
    padding: 3rem 3rem 3.5rem;

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
        color: var(--005);
    }

    .articles-intro{
        max-width: 720px;
        margin: 0.5rem auto 2.5rem;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.55;
        color: var(--005);
    }

    .articles-grid{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.75rem;
        max-width: 1100px;
        margin: 0 auto;
    }

    .article-card{
        display: flex;
        flex-direction: column;
        background: var(--005);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .article-card:hover{
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    }

    .article-thumb{
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .article-thumb img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .article-card:hover .article-thumb img{
        transform: scale(1.05);
    }

    .article-card-body{
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.35rem 1.5rem 1.6rem;
    }

    .article-meta{
        margin: 0;
        font-size: 0.9rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--003);
    }

    .article-card-body h3{
        margin: 0;
        font-family: var(--font3);
        font-size: 1.45rem;
        font-weight: 400;
        line-height: 1.3;
    }

    .article-card-body h3 a{
        color: var(--004);
        text-decoration: none;
    }

    .article-card-body h3 a:hover{
        color: var(--003);
    }

    .article-excerpt{
        margin: 0;
        font-size: 1rem;
        line-height: 1.55;
        color: var(--003);
    }

    .article-readmore{
        margin-top: auto;
        padding-top: 0.4rem;
        font-family: var(--font1);
        font-weight: 600;
        color: var(--004);
        text-decoration: none;
    }

    .article-readmore:hover{
        color: var(--003);
    }
}

@media (max-width: 768px){
    .articles{
        padding: 2rem 1rem 2.5rem;
    }
    .articles h2{
        font-size: 2.2rem;
    }
}

.photo-gallery{
    background-color: var(--004);

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
        color: var(--005);
    }
}

.contact-us{
    background-color: var(--005);

    h2{
        font-family: var(--font3);
        font-size: 3rem;
        text-align: center;
        font-weight: 400;
    }

    .contact-container {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        margin-top: 1rem;
        padding-bottom: 2rem;

        .col1{
            img{
                width: 500px;
                border-radius: 15px;
            }
        }

        .col2{
            flex: 1 1 420px;
            max-width: 500px;

            form{
                display: flex;
                flex-direction: column;
                gap: 0.4rem;
                padding: 2rem;
                border-radius: 15px;
                background: rgba(34, 66, 81, 0.35);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(234, 235, 229, 0.15);
            }

            label{
                font-family: var(--font1);
                font-size: 1.1rem;
                color: var(--004);
                margin-top: 0.6rem;
            }

            input,
            textarea{
                font-family: var(--font1);
                font-size: 1rem;
                color: var(--004);
                padding: 0.7rem 0.9rem;
                border-radius: 0.6rem;
                background: rgba(234, 235, 229, 0.08);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(234, 235, 229, 0.15);
                transition: border-color 0.2s ease, background 0.2s ease;
            }
            input::placeholder,
            textarea::placeholder{
                color: var(--003);
            }
            input:focus,
            textarea:focus{
                outline: none;
                border-color: var(--003);
                background: rgba(234, 235, 229, 0.14);
            }
            textarea{
                resize: vertical;
            }

            button{
                margin-top: 1.2rem;
                align-self: flex-start;
                font-family: var(--font1);
                font-size: 1.1rem;
                color: var(--005);
                background-color: var(--004);
                padding: 0.75rem 2rem;
                border: none;
                border-radius: 2rem;
                cursor: pointer;
                transition: background-color 0.2s ease;
            }
            button:hover{
                background-color: var(--003);
            }
        }
    }
}

.site-footer{
    background: rgba(34, 66, 81, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(234, 235, 229, 0.15);
    color: var(--004);
}

.site-footer .footer-top{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 3rem 2.5rem;
}

.site-footer h3{
    font-family: var(--font3);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--004);
    margin: 0 0 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.site-footer h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background-color: var(--003);
}

.site-footer .footer-brand{
    flex: 1 1 320px;
    max-width: 380px;
}
.site-footer .footer-brand img{
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 1.2rem;
}
.site-footer .footer-brand p{
    font-family: var(--font1);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--003);
    margin: 0;
}

.site-footer .footer-links,
.site-footer .footer-contact{
    flex: 1 1 180px;
}

.site-footer ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.site-footer li{
    font-family: var(--font1);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--003);
}
.site-footer a{
    font-family: var(--font1);
    font-size: 1.05rem;
    color: var(--004);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover{
    color: var(--003);
    padding-left: 4px;
}

.site-footer .footer-bottom{
    border-top: 1px solid rgba(234, 235, 229, 0.15);
    padding: 1.5rem 3rem;
    text-align: center;
}
.site-footer .footer-bottom p{
    font-family: var(--font1);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--003);
    margin: 0 auto;
    max-width: 900px;
}
.site-footer .footer-credit{
    margin-top: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.site-footer .footer-credit a{
    font-size: inherit;
    color: var(--004);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer .footer-credit a:hover{
    color: var(--003);
}

.divider-section{
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display:flex;
    align-items: center;
    justify-content: center;

    video{
        position: absolute;
        margin-top: 0px;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;

        source{
            margin-top: 20px;
        }
    }
}

.container {
  display: flex;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.box {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: .5s;
  margin: 0 2%;
  box-shadow: 0 20px 30px rgba(0,0,0,.1);
  line-height: 0;
}

.box > img {
  width: 140%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: .5s;
}

.box:hover { flex: 1 1 10%; }
.box:hover > img {
  width: 100%;
  height: 100%;
}
 

@media (max-width: 768px){
    .site-footer .footer-top{
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem 1.5rem 2rem;
    }
    .site-footer .footer-brand{
        max-width: none;
    }
}

@keyframes banner-scroll{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-50%);
    }
}

/*Other Screens sizes*/
@media (max-width: 768px) {
    .hero-container{
        display: none !important;
    }
    .hero-mobile{
        display: block;
        width: 100%;
        height: auto;
    }
}