/* --- Fonts --- */

/* Mochesa Font */
@font-face {
    font-family: 'Mochesa';
    src: url('https://nortekia.eu/css/fonts/Mochesa.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Linux-Biolinum Font - Regular */
@font-face {
    font-family: 'Linux-Biolinum';
    src: url('https://nortekia.eu/css/fonts/LinBiolinum_Rah.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Linux-Biolinum Font - Italic */
@font-face {
    font-family: 'Linux-Biolinum';
    src: url('https://nortekia.eu/css/fonts/LinBiolinum_RIah.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Linux-Biolinum Font - Bold */
@font-face {
    font-family: 'Linux-Biolinum';
    src: url('https://nortekia.eu/css/fonts/LinBiolinum_RBah.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Typey McTypeface Font - Regular */
@font-face {
    font-family: 'Typey';
    src: url('https://nortekia.eu/css/fonts/Typey.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Typey McTypeface Font - Italic */
@font-face {
    font-family: 'Typey';
    src: url('https://nortekia.eu/css/fonts/Typey_Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* --- Global Fixes --- */
* {
    box-sizing: border-box;
}

/* --- Top Bar --- */

/* Top Bar container */
.top-bar {
    display: flex;
    justify-content: space-between; /* Keeps Logo left, Nav right on desktop */
    align-items: center;
    width: auto;
    padding: 15px;
    background-color: #0B5F63;
    flex-wrap: wrap; 
}

/* Navigation */
nav {
    font-family: "Typey", serif;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: center; /* Centers the buttons if they wrap or on smaller screens */
}

.nav-hyperlink a {
  color: #0B5F63;
}

.nav-hyperlink a:hover {
  color: #00b0b9;
}

.nav-hyperlink a:focus {
  color: #0B5F63;
}

.nav-hyperlink a:active {
  color: #0B5F63;
}

.nav-hyperlink a:visited {
  color: #0B5F63;
}

/* Nav Buttons */

.nav-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center; /* Evenly centers buttons within the nav container */
}

.nav-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #000000;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.nav-btn:hover,
.nav-btn:focus {
  background: #F1FBFA;
}
.nav-btn:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

/* Logo */

.logo {
    border: none;
    width: 230px;
    height: auto; 
    max-width: 100%;
}

/* --- Body & Text --- */

body {
    margin-right: 15px; 
    margin-left: 15px;
    background-color: #F1FBFA;
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Typey", serif;
    color: #0B5F63;
    margin-top: 20px;
    word-wrap: break-word;
}

h1 {
    font-size: 70px;
}

p {
    font-family: "Linux-Biolinum", sans-serif;
    font-size: 28px;
    color: #0B5F63;
    word-wrap: break-word;
}

ul {
  font-family: "Linux-Biolinum", sans-serif;
  font-size: 28px;
  color: #0B5F63;
}

li {
        color: #0B5F63;
        margin-bottom: 5px;
    }

/* --- Hyperlinks --- */

a {
  color: #000000;
}

a:hover {
  color: #E0F6F5;
}

a:focus {
  color: #808080;
}

a:active {
  color: #808080;
}

/* --- Front Page Classes ---/ */
.p-boxinfo {
    font-family: "Typey", serif;
    font-weight: 700;
    font-size: 50px;
    margin-bottom: 5px;
    margin-top: 1px;
    color: #0B5F63;
}

.boxinfo1 {
  width: auto;
  background-color: #DFF6F5;
  border: 1px solid #9EDFDC;
  border-radius: 25px;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boxinfo2 {
  width: auto;
  background-color: #FFFFFF;
  border: 1px solid #9EDFDC;
  border-radius: 25px;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boxinfo2points {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-btn-front {
  padding: 0.5rem 1rem;
  background: #DFF6F5;
  color: #0B5F63;
  font-size: 30px;
  text-align: center;
  text-decoration: none;
  border: 2px solid;
  border-color: #9EDFDC;
  border-radius: 25px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  margin-left: 5rem;
  display: inline-block; 
}

.nav-btn-front:hover,
.nav-btn-front:focus {
  background: #9EDFDC;
}
.nav-btn-front:focus-visible {
  outline: 2px solid #206E7C;
  outline-offset: 2px;
}

/* --- Contact Page Classes --- / */
.contact-form-container {
    font-family: "Typey", serif;
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px #E0E0E0;
    background-color: #FFFFFF;
}

/* Title Styling */
.contact-form-title {
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Form Layout */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* Individual Input Groups */
.form-group {
    margin-bottom: 15px;
}

/* Label */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555555;
    font-size: 14px;
}

/* Input and Textarea */
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #28a745;
    outline: none;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #9EDFDC;
}

/* --- Product Page --- */

.magehand {
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  padding-top: 7rem;
  flex-wrap: wrap; 
  max-width: 1600px;
  margin: 0 auto;
}
.leftmagehand {
  display: flex;
  align-items: flex-start; 
  justify-content: left;
  flex-wrap: wrap; 
  max-width: 1600px;
  margin-bottom: 2rem;
}
.teknika {
  margin-left:30rem;
  margin-top:10rem;
  margin-bottom:0.2rem;
}
.midmagemini {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding-top: 20px;
}

/* --- Magical General Containers ---/ */

/* --- Text and Image ---/ */
.textmage {
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  gap: 2rem;
  padding-top: 5rem;
  flex-wrap: wrap; 
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensures text column doesn't get too squished or too wide? */
.textmage > div:first-child {
    text-align: left;
}

/* --- Center Image ---/ */
.midmage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 100%;
}

/* -- Center Text ---/ */
.centaur {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -- Typey Font Center Text Big Ready ---/ */
.titan {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Typey", serif;
}

/* -- Centered Box --/ */
.centaurseal {
  margin: auto;
  background-color: #DFF6F5;
  border: 5px solid #9EDFDC;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  align-items: center;
}

/* -- Marginalize --/ */
.staff {
  margin-left: 20rem;
  margin-right: 20rem;
}

/* --- Footer --- / */
.footer-container {
  background-color: #0B5F63;
  color: #FFFFFF;
  padding: 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #CCCCCC;
}

.footer-link {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0.2rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #FFFFFF; 
  font-size: 0.9rem;
  color: #FFFFFF; 
}

/* --- Mobile Devices --- */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .textmage {
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
    }

    .textmage > div {
        width: 100%;
        text-align: center;
    }

    .teknika {
        margin-left:5rem;
        margin-top:5rem;
        margin-bottom:0.1rem;
    }
    
    /* Fix for inline styles in HTML hopefully */
    [style*="margin-right:10rem"] {
        margin-right: 0 !important;
    }

    h1 {
        font-size: 40px; 
    }
    
    p, ul {
        font-size: 20px; 
    }
    
    .p-boxinfo {
        font-size: 30px; 
    }

    .staff {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* FORCE IMAGE SCALING ON MOBILE */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    .desktop-img-responsive {
        width: 100%;
    }
}

/* New Class for Desktop Image Sizing */
.desktop-img-responsive {
    max-width: 100%;
    height: auto;
    width: 500px;
}

/* --- Tablet Devices --- */
@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .textmage {
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
    }

    .textmage > div {
        width: 100%;
        text-align: center;
    }

    .teknika {
        margin-left:10rem;
        margin-top:10rem;
        margin-bottom:0.2rem;
    }
    
    /* Fix for inline styles in HTML hopefully */
    [style*="margin-right:10rem"] {
        margin-right: 0 !important;
    }

    h1 {
        font-size: 42px; 
    }
    
    p, ul {
        font-size: 24px; 
    }
    
    .p-boxinfo {
        font-size: 30px; 
    }

    .staff {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* FORCE IMAGE SCALING ON MOBILE */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    .desktop-img-responsive {
      height: auto;
      width: 500px;
    }
}