/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    /* Colours */
    --primary: #647F98;
    --primary-light: #DCE4EB;
    --primary-light-light: #F1F5F8;
    --primary-dark: #40566C;
    --primary-dark-dark: #253746;

    --text: #40566C;
    --text-light: #cbd5e1;
    --text-medium: #71869B;
    --text-dark: #253746;

    --white: #FFFFFF;
    --shadow: rgba(37, 55, 70, 0.25);

    /* Typography */
    --font-size-base: clamp(16px, 1.2vw, 18px);
	--font-size-hero-h1: clamp(34px, 4vw, 46px);
	--font-size-hero-h2: clamp(21px, 2.2vw, 25px);
	--font-size-footer: clamp(14px, 1.1vw, 16px);

    /* Layout */
    --max-container-width: 1100px;
    --max-card-width: 75%;
    --max-text-width: 75%;

    /* Effects */
    --transition-speed: 0.3s;
}


/* =========================================================
   2. GLOBAL SETTINGS
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: normal;
}

h1, h2, h3, h4 {
    margin-top: 0;
	line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--text-dark);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}


/* =========================================================
   3. LAYOUT
   ========================================================= */

.container {
    width: 90%;
    max-width: var(--max-container-width);
    margin: 0 auto;
}

.spacer {
    height: 20px;
}


/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 3px solid var(--primary-light);
    background: var(--white);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    margin-left: 22px;
    color: var(--text-medium);
    transition: color var(--transition-speed) ease;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    margin: 0 6px;
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    background: var(--primary-dark);
    color: var(--white);
    font: inherit;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.button:hover {
    background: var(--primary-dark-dark);
    color: var(--white);
}

.button:active {
    background: var(--primary);
}

.button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.button.secondary {
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
}

.button.secondary:hover {
    background: var(--primary-light);
}

.button.secondary:active {
    background: var(--primary);
    color: var(--white);
}

.button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =========================================================
   6. SECTIONS
   ========================================================= */

.hero-section,
.features-section,
.specifications-section,
.why-section,
.evaluation-section,
.licensing-section,
.core-section,
.contact-section,
.privacy-section,
.eula-section,
.about-section {
	padding: clamp(30px, 5vw, 50px) 20px;
    text-align: center;
}

.hero-section,
.why-section,
.evaluation-section,
.core-section,
.contact-section {
    background: var(--primary-light-light);
}

.features-section,
.specifications-section,
.licensing-section,
.privacy-section,
.eula-section,
.about-section {
    background: var(--white);
}

.section-text {
    max-width: var(--max-text-width);
    margin: 0 auto 20px;
    text-align: left;
}

.hero-section h1 {
    margin-bottom: 10px;
    font-size: var(--font-size-hero-h1);
    color: var(--text-dark);
}

.hero-section h2 {
    font-size: var(--font-size-hero-h2);
}

.hero-section h2 i {
    color: var(--text-medium);
}

.specifications-section h3 {
    padding: 8px 12px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.specifications-section td:first-child,
.evaluation-section td:first-child {
    color: var(--text-medium);
    text-align: left;
}

.specifications-section td:last-child,
.evaluation-section td:last-child {
    text-align: right;
    font-weight: normal;
    color: var(--text-dark);
}


/* =========================================================
   7. LOGOS AND ICONS
   ========================================================= */

.logo img,
.logo-medium img {
    object-fit: contain;
}

.logo img {
    width: 130px;
    height: 130px;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.logo-medium img {
    width: 65px;
    height: 65px;
}

.logo img:hover {
    transform: rotate(-5deg) scale(1.1);
}

.icon img,
.icon-medium img,
.icon-large img {
    display: block;
    margin: 0 auto 12px;
}

.icon img {
    width: 50px;
    height: 50px;
}

.icon-medium img {
    width: 65px;
    height: 65px;
}

.icon-large img {
    width: 80px;
    height: 80px;
}


/* =========================================================
   8. FEATURE TAGS
   ========================================================= */

.feature-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    background: var(--primary-light);
    color: var(--primary-dark);
}


/* =========================================================
   9. CARDS
   ========================================================= */

.card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--white);
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    margin: 0 0 8px;
    text-align: left;
}

.card p.card-value {
    margin: auto 0 0;
    padding: 8px;
    border-radius: 5px;
    background: var(--primary-light);
    color: var(--text);
    text-align: center;
}

.card p.vat-rules {
    padding: 8px 12px;
    margin: 2px 0 10px;
    background: var(--primary-light-light);
    border-radius: 5px;
    font-size: 0.9em;
    line-height: 1.4;
}

.card .button {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: auto auto 0;
    align-self: center;
}

.two-card-grid,
.single-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.single-card-grid:has(.card:only-child) {
    grid-template-columns: 1fr;
}

.single-card-grid:has(.card:only-child) .card {
    width: var(--max-card-width);
    justify-self: center;
}

/* =========================================================
   10. ENGINEERING BAR
   ========================================================= */

.engineering-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
    margin-top: 35px;
    padding: 22px 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: var(--font-size-base);
    font-weight: bold;
    text-align: center;
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}
   
.engineering-bar span {
    white-space: nowrap;
}


/* =========================================================
   11. SHARED HOVER EFFECTS
   ========================================================= */

.card:hover,
.engineering-bar:hover {
	transform: translateY(-2px);
	box-shadow: 3px 4px 12px var(--shadow);
}


/* =========================================================
   12. CONTENT LISTS
   ========================================================= */

.list {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.list ul {
    margin: 0 0 1.2em;
    padding-left: 22px;
}

.list li {
    margin-bottom: 6px;
}

.list h3 {
    margin: 20px 0 6px;
    color: var(--primary-dark);
}


/* =========================================================
   13. FORMS
   ========================================================= */

.form-field {
    margin: 18px 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    transition: border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    font-size: var(--font-size-base);
    opacity: 1;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}


/* =========================================================
   14. POPUPS
   ========================================================= */

#raven-popup,
#contact-popup {
    width: 90%;
    max-width: 450px;
    padding: 25px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    box-shadow: 5px 5px 18px var(--shadow);
}

#raven-popup::backdrop,
#contact-popup::backdrop {
    background: rgba(37, 55, 70, 0.45);
}

#contact-popup p {
    text-align: center;
}

#raven-popup p {
    text-align: left;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

footer {
    padding: 12px 5px;
    background: var(--primary-dark-dark);
    color: var(--text-light);
    font-size: var(--font-size-footer);
    text-align: center;
}

footer a {
    margin: 0 10px;
    color: var(--text-light);
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--white);
}


/* =========================================================
   16. RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 700px) {

	.hero-section .button + .button {
        margin-top: 16px;
    }

    .card:hover,
	.engineering-bar:hover {
		transform: none;
		box-shadow: none;
	}
	    
    .engineering-bar {
		grid-template-columns: 1fr;
	}

    .two-card-grid,
    .single-card-grid {
        grid-template-columns: 1fr;
    }

    .single-card-grid:has(.card:only-child) .card {
        width: 100%;
    }

    .nav {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        width: 100%;
    }

    nav a {
        margin: 0;
        padding: 5px 4px;
        font-size: 0.9em;
    }
}


/* =========================================================
   17. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .button,
    nav a,
    .card,
    .engineering-bar,
    footer a,
    .logo img,
    .form-field input,
    .form-field textarea {
        transition: none;
    }

    .card:hover,
    .engineering-bar:hover,
    .logo img:hover {
        transform: none;
    }
}
