/* --- TAM‑CNC BRAND COLOURS --- */
:root {
    --navy: #0A1A2F;
    --steel: #3A6EA5;
    --cyan: #00C8FF;
    --ice: #A8E4FF;
    --white: #FFFFFF;
}

body {
    background: var(--navy);
    color: var(--ice);
    font-family: "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h4 {
    color: var(--cyan);
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(58, 110, 165, 0.15);
    border: 1px solid var(--steel);
    border-radius: 12px;
}

.header-content {
    text-align: center;
    margin-bottom: 20px;
}

.name-and-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.name-and-image h1 {
    margin: 0;
    font-size: 2.5rem;
}

.image-section img {
    max-width: 60px;
    height: auto;
}

.tagline {
    font-size: 0.9rem;
    color: var(--ice);
    margin: 0;
}

nav {
    background: rgba(10, 26, 47, 0.7);
    /* Slightly transparent navy for nav background */
    padding: 15px 0;
    border-bottom: 1px solid var(--steel);
    margin-bottom: 30px;
    /* Space below the nav */
}

nav .container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
    gap: 15px;
    /* Space between buttons */
}

/* Styling for the links to look like buttons */
.nav-button {
    display: block;
    /* Make buttons take full width */
    width: 80%;
    /* Adjust width as needed */
    max-width: 300px;
    /* Optional: constrain max width */
    padding: 10px 20px;
    background: var(--cyan);
    /* Button background color */
    color: var(--navy);
    /* Button text color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    /* Smooth transitions */
    text-align: center;
}

.nav-button:hover {
    background: var(--ice);
    /* Lighter color on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
}

.nav-button:active {
    transform: translateY(0);
    /* Press down effect */
}

/* Styling for individual generator pages */
.generator-page-styles {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--steel);
}

.generator-page-styles h2 {
    margin-top: 0;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column layout */
    gap: 12px 20px;
    margin-bottom: 20px;
}

.input-section label {
    font-size: 0.85rem;
    color: var(--ice);
    grid-column: 1 / 2;
    align-self: center;
}

.input-section input {
    width: 100%;
    padding: 8px;
    background: #0F243D;
    border: 1px solid var(--steel);
    border-radius: 6px;
    color: var(--white);
    grid-column: 1 / 2;
}

.field {
    display: contents;
}

button {
    /* General button style, might not be used on landing page but good to have */
    width: 100%;
    padding: 12px;
    background: var(--cyan);
    border: none;
    border-radius: 6px;
    color: var(--navy);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--ice);
}

.gcode-output-area {
    background: #0F243D;
    border: 1px solid var(--steel);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

pre {
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--white);
    font-family: monospace;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--steel);
}