/* 
=========================
Theme Variables
========================= 
*/

:root {
/* light theme */
    --bg-main: #F1EAC5;       /* main background */
    --bg-input: #ffffff;      /* input area */

    --text-primary: #172F13;  /* main text */
    --text-secondary: #4A6741; /* secondary text */

    --border-color: #172F13;  /* borders */
    --accent: #800020;        /* buttons, highlights */

    --radius-sm: 8px;
    --radius-md: 14px;

    --shadow-sm: 0 1px 3px #5C2B2B;

    --font-family: Andale Mono, monospace;
}

* {
    box-sizing: border-box;
}

/* 
=========================
Base Layout
========================= 
*/

html {
    scroll-behavior: smooth;
    font-size: clamp(9px, 1vw, 18px);
}

html, body {
    height: 100%;
    min-height: 100%;
    align-items: center;
}

h1 {
    font-family: var(--font-family);
    font-size: 2.75em;
    color: var(--accent);
}

h2 {
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.heading {
    display: flex;
    align-items: baseline; 
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.heading h1,
.heading h2 {
    margin: 0;
    white-space: nowrap;
}

.section-right h3, .section-left h3 {
    font-family: var(--font-family);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

.section-right p, .section-left p {
    font-family: var(--font-family);
    font-size: 1.10rem;
    text-align: justify;
    color: var(--text-primary);
}

.section-right .p-small, .section-left p .p-small {
    font-size: 1rem;
    margin-top: 0.25rem;
    color: var(--text-primary);
}

mark {
  color: var(--accent);
  background-color: #ffffff00;
}


body {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Produkt";

    background: var(--bg-main);
    color: var(--text-primary);

    background-image:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--border-color) 6%, transparent) 25%,
            transparent 25%
        ),
        linear-gradient(
            225deg,
            color-mix(in srgb, var(--border-color) 6%, transparent) 25%,
            transparent 25%
        ),
        linear-gradient(
            55deg,
            color-mix(in srgb, var(--border-color) 6%, transparent) 25%,
            transparent 25%
        ),
        linear-gradient(
            315deg,
            color-mix(in srgb, var(--border-color) 6%, transparent) 25%,
            transparent 25%
        );
    background-position: 10px 0, 10px 0, 0 0, 0 0;
}

main {
    flex: 1 0 auto;
    padding-top: 80px;
    width: 100%;
    min-width: 0;
}

.section-left, .section-right {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;

    height: 70vh;
    
    box-sizing: border-box;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px;    
}

.section-left:not(.logo-section),
.section-right:not(.logo-section) {
    display: flex;
    flex-wrap: nowrap;
    height: 70vh;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px;
}


.section-left:hover ,
.section-right:hover {
    transform: translateY(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.col-left, .col-right {
    position: relative;
    display: flex;
    flex-direction: column;
}

.section-left .col-left { 
    flex-basis: clamp(65%, 55vw, 80%);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 5rem;
    padding-right: 5rem;
}
.section-left .col-right { 
    flex-basis: clamp(20%, 45vw, 35%);
    justify-content: center;
}
.section-right .col-left { 
    flex-basis: clamp(20%, 45vw, 35%);
    justify-content: center; 
}
.section-right .col-right { 
    flex-basis: clamp(65%, 55vw, 80%);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 5rem;
    padding-right: 5rem;
}

.section-left img, 
.section-right img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;
    align-items: center;

    border-radius: var(--radius-sm);
    opacity: 1;
}

.section-left .col-left .arrow-button {
    position: absolute;
    right: 1.5rem;
    bottom: 2.5rem;

    margin: 0;
    align-self: auto;
    z-index: 10;
}

.section-right .col-right .arrow-button {
    position: absolute;
    right: 1.5rem;
    bottom: 2.5rem;

    margin: 0;
    align-self: auto;
    z-index: 10;
}

/* 
=========================
Horizontal Navigation Bar
=========================
*/

#navbar-placeholder {
    width: 100%;
}


nav {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    
    padding: 1rem 0;
    gap: 8rem;
    background: rgb(var(--bg-main), 0.30);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: var(--font-family);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
    background: var(--accent);
    color: #fff;
}

/* 
=========================
Footer
=========================
*/

#footer-placeholder {
    width: 100%;
}

footer {
    padding: 2rem;

    font-size: 0.975rem;
    text-align: right;

    background: var(--bg-main);
    color: var(--text-secondary);

    width: 100%;
    min-height: 80px;
}

/* 
=========================
Home
=========================
*/

.video-wrapper {
  width: 100%;
  height: 100%;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-moz-media-controls {
  display: none !important;
}


/* 
=========================
Contact
=========================
*/

#contact form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#contact label {
    font-size: 1.5em;
    font-family: var(--font-family);
}

#contact input, 
#contact textarea {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1em;
    font-family: var(--font-family);
}

#contact textarea {
    height: 125px;
}

#contact button, 
.booking-button {
    padding: 0.75rem;
    margin-top: 1.5rem; 

    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;

    align-self: flex-end;

    background: var(--border-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

#contact button:hover,
.booking-button:hover {
    background: var(--accent);
}

/* 
=========================
Google Maps
=========================
*/

#div-map {
    position: relative;
    max-width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.map {
    position: absolute;
    bottom: 1rem;

    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    height: 45%;
    
}

/* 
=========================
Link Button
========================= 
*/

.arrow-button, .read-more, .close {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;

    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;

    color: #fff;
    background: var(--border-color);

    text-decoration: none;
    border-radius: var(--radius-md);

    transition: 
        background 0.2s ease,
        transform 0.2s ease;
}

/* arrow animation */
.arrow-button .arrow {
    transition: transform 0.2s ease;
}

/* hover effect */
.arrow-button:hover, .read-more:hover, .close:hover {
    background: var(--accent);
    transform: translateX(2px);
}

.arrow-button:hover .arrow {
    transform: translateX(4px);
}

/* 
=========================
About us
========================= 
*/

.contact-links {
    display: flex;
    gap: 1rem;
    align-items: center; 

}

.contact-links a {
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;

    transition: color 0.2s ease, transform 0.2s ease;

    width: 36px;
    height: 36px;

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

.contact-links a:hover {
    transform: translateY(-2px);
}

.contact-links a:hover .fa-linkedin {
    color: #0A66C2;
}

.contact-links a:hover .fa-envelope {
    color: var(--accent);
}

/* 
=========================
Looping logos
=========================
*/

.section-sliding-logos {
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 5rem 0;

    height: 10vh;
    min-height: 10vh;
    max-height: 10vh;
    z-index: 1;
}

.logo-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 5rem;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
}

.logo-track img {
    height: 60px;
    width: auto;
    opacity: 0.75;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

/* 
=========================
Product
=========================
*/

.section-yt-video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.yt-video-wrapper {
    width: 100%;
    max-width: 900px;      
    aspect-ratio: 16 / 9; 
}

.yt-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);  
}

/* 
=========================
News Layout
========================= 
*/

.section--news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 1rem
}

.news-item {
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    min-height: 250px;
    box-sizing: border-box;
}

.section--news h3 {
    font-family: var(--font-family);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

.section--news p {
    font-family: var(--font-family);
    font-size: 1.10rem;
    text-align: justify;
    color: var(--text-primary);
}

summary {
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--accent);
    font-size: 1.10rem;
}

.news-item .content {
  display: none; /* hide in the grid */
}

.details-pane {
    grid-column: 1 / -1;
    display: none;
    background:var(--bg-main);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
}

.details-pane.show {
    display: block;
}


/* 
=========================
Mobile responsiveness
=========================
*/

/* tablet and below (768px) */
@media (max-width: 768px) {
    
    /* Navigation - stack or reduce spacing */
    nav {
        gap: 2rem;
        padding: 0.75rem 0.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    nav a {
        font-size: 1.2rem;
        padding: 4px 8px;
    }
    
    /* Heading adjustments */
    .heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .heading h1,
    .heading h2 {
       white-space: normal; 
       word-wrap: break-word;
    }
    
    .heading h1 {
        font-size: 2rem;
    }
    
    .heading h2 {
        font-size: 1rem;
    }
    
    /* Main sections - stack vertically with images always on top */
    .section-left, .section-right {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .section-left:not(.logo-section),
    .section-right:not(.logo-section) {
        height: auto;
    }
    
    /* Force image columns to appear first, regardless of HTML order */
    .section-left .col-right,
    .section-right .col-left {
        order: -1; /* Move image column to the top */
    }
    
    .section-left .col-left,
    .section-right .col-right {
        order: 0; /* Keep text column below */
    }
    
    /* Disable hover effects on mobile */
    .section-left:hover,
    .section-right:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Column adjustments */
    .section-left .col-left,
    .section-left .col-right,
    .section-right .col-left,
    .section-right .col-right {
        flex-basis: 100%;
        padding: 1.5rem;
    }
    
    /* Images in sections - show full image */
    .section-left img,
    .section-right img {
        height: auto;
        min-height: 200px;
        max-height: 400px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Arrow buttons - reposition */
    .section-left .col-left .arrow-button,
    .section-right .col-right .arrow-button {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    /* News grid - 2 columns on tablet */
    .section--news {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 8px;
    }
    
    /* Contact form */
    #contact button,
    .booking-button {
        align-self: stretch;
        width: 100%;
    }
    
    /* Logo section */
    .logo-track img {
        height: 40px;
    }
    
    .logo-track {
        gap: 3rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    /* YouTube video padding */
    .section-yt-video {
        padding: 2rem 0.5rem;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    
    html {
        font-size: clamp(12px, 2vw, 16px);
    }
    
    /* Navigation - hamburger menu would be ideal here */
    nav {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    nav a {
        font-size: 1rem;
        padding: 4px 6px;
    }
    
    /* Reduce main padding */
    main {
        padding-top: 60px;
    }
    
    .section-left, .section-right {
        scroll-margin-top: 60px;
    }
    
    /* Headings */
    h1 {
        font-size: 1.75em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .section-right h3, .section-left h3 {
        font-size: 1.2rem;
    }
    
    .section-right p, .section-left p {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Columns - more padding reduction */
    .section-left .col-left,
    .section-left .col-right,
    .section-right .col-left,
    .section-right .col-right {
        padding: 1rem;
    }
    
    /* Buttons - full width and smaller */
    .arrow-button, .read-more, .close {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    /* News grid - single column on mobile */
    .section--news {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0.5rem;
    }
    
    .news-item {
        min-height: auto;
        padding: 0.75rem;
    }
    
    /* Contact form labels */
    #contact label {
        font-size: 1.2em;
    }
    
    /* Logo track - smaller logos and gap */
    .logo-track img {
        height: 30px;
    }
    
    .logo-track {
        gap: 2rem;
    }
    
    .section-sliding-logos {
        padding: 3rem 0;
    }
    
    /* Contact links */
    .contact-links a {
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
    
    /* Video sections */
    .section-yt-video {
        padding: 1.5rem 0.5rem;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    
    nav {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 3px 5px;
    }
    
    .section-left .col-left,
    .section-left .col-right,
    .section-right .col-left,
    .section-right .col-right {
        padding: 0.75rem;
    }
    
    .logo-track img {
        height: 25px;
    }
}