/*
Theme Name: igHacklTheme
Author: Felix Kirchweger
Description: Style für Website von Irmgard Hackl.
Version: 0.1
*/

:root {
    --primary: #345028;
    --secondary: #efe1c6;
    --background: #faf8f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-header {
    background: var(--secondary);
    color: var(--primary);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    margin: 0;
    color: var(--primary);
}

.site-logo a {
    display: block;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.main-nav a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

.site-main {
    flex: 1;
}

.site-footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.hero {
    padding: 0;
    background: var(--background);
    min-height: 70vh;
}

.hero .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    min-height: 70vh;
    padding: 60px 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: unset;
}

.hero-content {
    text-align: left;
    align-self: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-content a,
.hero-content p {
    font-size: 20px;
    color: var(--primary);
    opacity: 0.8;
}

.hero-content .contact{
    margin-top: 20px
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 680px;
    height: 680px;
    position: relative;
}

.hero-image img {
    width: 680px;
    height: 680px;
    object-fit: cover;
    border-radius: 53% 47% 73% 27% / 30% 30% 70% 70% ;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        width: 300px;
        height: 280px;
    }

    .hero-image img {
        width: 300px;
        height: 280px;
    }
}
.services-preview {
    padding: 60px 0;
    background: var(--background);
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--primary);
}

.service-card {
    border: 2px solid var(--secondary);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s;
    background: white;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(52, 80, 40, 0.15);
    border-color: var(--primary);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.site-footer {
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 0;
    padding: 0;
}

.site-footer ul li a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}

.site-footer ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Generic page content */
.page-content {
    padding: 60px 20px;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary);
}

.page-content p,
.page-content li {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Gutenberg block styles */
.page-content .wp-block-columns {
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.page-content .wp-block-column figure img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* Experience row: add CSS class "experience-row" to the columns block in the editor */
.page-content .experience-row .wp-block-column {
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 30px;
}

.page-content .experience-row .wp-block-column h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Contact page */
.contact-details {
    margin-bottom: 40px;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--primary);
}

/* Nav menu (wp_nav_menu generates a <ul>) */
.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 680px) {
    .hero-image img {
        width: 680px;
        height: 280px;
        object-fit: cover;
        border-radius: 53% 47% 73% 27% / 30% 30% 70% 70% ;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        padding: 16px 0;
        z-index: 100;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li a {
        display: block;
        margin: 0;
        padding: 12px 24px;
    }
}

/* Make header position:relative so the dropdown can anchor to it */
.site-header {
    position: relative;
}