/* Font Faces */
@font-face {
    font-family: 'Biofona Sans Mono';
    src: url('../fonts/BiofonaSansMono_Medium/BiofonaSansMono-Medium-Exfont765e.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Iro Sans';
    src: url('../fonts/IroSans_Regular/IroSans-Regular.woff2') format('woff2'),
         url('../fonts/IroSans_Regular/IroSans-Regular.woff') format('woff'),
         url('../fonts/IroSans_Regular/IroSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Iro Sans Unicase';
    src: url('../fonts/IroSansUnicase_Semibold/IroSansUnicase-Semibold.woff2') format('woff2'),
         url('../fonts/IroSansUnicase_Semibold/IroSansUnicase-Semibold.woff') format('woff'),
         url('../fonts/IroSansUnicase_Semibold/IroSansUnicase-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Iro Sans', sans-serif;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #31264D;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.header__logo img {
    height: 55px;
    width: auto;
}

.header__tagline {
    font-family: 'Iro Sans', sans-serif;
    color: #E6185A;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: pre-line;
}

.header__nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header__nav a {
    font-family: 'Iro Sans', sans-serif;
    color: #E6185A;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.header__nav a:hover {
    opacity: 0.7;
}

/* Hero Image */
.hero {
    width: 100%;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.content {
    background-color: #fff;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.content h1,
.content h2,
.content h3,
.content h4 {
    font-family: 'Biofona Sans Mono', monospace;
    font-weight: 500;
    color: #31264D;
    margin-bottom: 1rem;
}

.content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
}

.content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

.content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content a {
    color: #E6185A;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 4px solid #E6185A;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
}

.content table tr:last-child td {
    border-bottom: none;
}

.btn {
    display: inline-block;
    background-color: #E6185A;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #c8144e;
}

/* Footer */
.footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background-color: #fff;
    color: #333;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.footer__contact {
    font-family: 'Iro Sans', sans-serif;
    font-size: 0.9rem;
}

.footer__contact p {
    margin: 0;
    line-height: 1.6;
}

.footer__contact a {
    color: #E6185A;
    text-decoration: none;
}

.footer__contact a:hover {
    text-decoration: underline;
}

.email-img {
    height: 1.4em;
    width: auto;
    vertical-align: bottom;
    display: inline;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer__legal a {
    font-family: 'Iro Sans', sans-serif;
    color: #E6185A;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.footer__legal a:hover {
    opacity: 0.7;
}

/* Hamburger Button */
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.header__burger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #E6185A;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    .header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0;
    }

    .header__logo {
        flex: 1;
        min-width: 0;
    }

    .header__burger {
        display: flex;
        flex-shrink: 0;
    }

    .header__tagline {
        font-size: 0.7rem;
    }

    .header__logo img {
        height: 32px;
    }

    .header nav {
        display: none;
        width: 100%;
        flex-basis: 100%;
        padding-top: 1rem;
    }

    .header.nav-open nav {
        display: block;
    }

    .header.nav-open .header__burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .header.nav-open .header__burger span:nth-child(2) {
        opacity: 0;
    }

    .header.nav-open .header__burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .header__nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .header__nav a {
        font-size: 1.1rem;
    }

    .footer {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .footer__legal {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}
