* {
    box-sizing: border-box;
}
:root {
    --primary: #0A1B40;
    --accent-red: #9E5B5B;
    --accent-green: #6CA34D;
    --accent-gold: #C2A24A;
    --accent-slate: #6F7FAE;
    --accent-teal: #4C8C9B;
    --accent-mint: #8EDBA8;

    --neutral-dark: #1E2F4A;
    --neutral-light: #F8CF93;

    --background-light: #ffffff;

    --text-main: #1E2F4A;
    --text-light: #ffffff;
}

html {
    margin: 0;
    padding: 0;
}
/* font-family: so text looks “native” on different platforms */
body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--text-main);
    background-color: var(--text-light);
}
/* Skip link styles*/
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--accent-green);
  color: var(--text-light);
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    clip: rect(0 0 0 0);
    border: 0;
}

/* Layout */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: var(--text-light);
    border-bottom: 1px solid var(--neutral-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-area {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.logo-img {
    max-height: 70px;
    width: auto;
    align-items: flex-start;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: bold;
    letter-spacing: 0.04em;
}

.tagline {
    font-size: 0.85rem;
    color: #555555;
}

.badge {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #1f6f5f;
}

/* Navigation and header actions */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #cccccc;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.search-form {
    display: flex;
    gap: 0.25rem;
}

.search-form input[type="search"] {
    padding: 0.25rem 0.5rem;
    border: 1px solid #cccccc;
}

.search-form button {
    padding: 0.25rem 0.75rem;
    border: 1px solid #1f6f5f;
    background-color: #1f6f5f;
    color: #ffffff;
    cursor: pointer;
}

.auth-links {
    font-size: 0.9rem;
}

.auth-links a {
    text-decoration: none;
    color: #222222;
}

.auth-links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 0.25rem;
    color: #aaaaaa;
}

.language-switch {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.language-switch .lang {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    color: #1f6f5f;
}

.language-switch .active {
    font-weight: bold;
    color: #1f6f5f;
}

.btn-primary,
.btn-secondary,
.link-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    border: none;
    background-color: var(--accent-green);
    color: var(--text-light);
}

.btn-secondary {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background-color: var(--text-light);
}

.link-button {
    border: none;
    background: none;
    color: #1f6f5f;
    padding: 0;
}

/* Hero */
.hero {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-slate));
    color: var(--text-light);
    text-align: left;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    margin-top: 0;
    font-size: 2.25rem;
}

.hero p {
    max-width: 540px;
}

/* Sections */
.section {
    padding: 3rem 1.5rem;
}

.section-header {
    max-width: 960px;
    margin: 0 auto 1.5rem auto;
}

.section-header h2 {
    margin: 0 0 0.25rem 0;
}

.section-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #1f6f5f;
}

.section-body {
    max-width: 960px;
    margin: 0 auto;
}

.section-body article + article {
    margin-top: 1.5rem;
}

/* Industries cards */
.cards {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.card {
    border: 1px solid var(--neutral-dark);
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: var(--background-light);
}

.card h3 {
    color: var(--accent-teal);
}

.card p {
    color: var(--accent-mint);
}

/* Quote form */
.quote-form {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
    padding: 0.5rem;
    border: 1px solid #cccccc;
    font: inherit;
}

/* Contact */
.contact .section-body {
    max-width: 640px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--neutral-dark);
    padding: 2rem 1.5rem 1rem 1.5rem;
    background-color: var(--neutral-dark);
    color: var(--text-light);
    font-size: 0.9rem;
}
.site-footer a {
    color: var(--accent-mint);
}

.footer-top {
    max-width: 1080px;
    margin: 0 auto 1.5rem auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.25rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-links h3 {
    margin-top: 0;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    text-decoration: none;
    color: #222222;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-extras {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social a {
    text-decoration: none;
    color: #1f6f5f;
}

.footer-bottom {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        display: none;
        margin-top: 0.5rem;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        text-align: left;
        padding: 3rem 1.25rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    /* Phone-specific layout */
    .hero {
        padding: 2.5rem 1rem;
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
    /* ORIENTATION QUERY */
    .hero {
        text-align: center;
    }
.logo-area {
    flex-direction: column;
    align-items: center;
}

@media screen and (orientation: landscape) {
    /* ORIENTATION QUERY */
    .hero {
        padding: 4rem 3rem;
    }
    .main-nav ul {
        gap: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    /* DARK MODE overrides for components:
       The following CSS variables and component styles are overridden to provide a higher-contrast, dark-friendly palette.
       This includes primary and neutral colors, text colors, and accent colors for buttons and cards.
    */
    :root {
        --primary: #0A1B40; /* Main dark blue background */
        --text-main: #ffffff; /* Main text color for dark backgrounds */
        --text-light: #ffffff; /* Light text for contrast */

        --neutral-dark: #0A1B40; /* Used for backgrounds and borders */
        --neutral-light: #1E2F4A; /* Used for card backgrounds */

        --accent-gold: #C2A24A;
        --accent-mint: #8EDBA8;
        --accent-teal: #4C8C9B;
        --accent-green: #6CA34D;
    }

    body {
        background-color: var(--neutral-dark);
        color: var(--text-light);
    }

    .site-header {
        background-color: var(--neutral-dark);
        border-bottom-color: var(--accent-teal);
    }

    .card {
        background-color: var(--neutral-light);
        border-color: var(--accent-teal);
    }

    .site-footer {
        background-color: var(--primary);
    }

    .main-nav a {
        color: var(--accent-mint);
    }

    .btn-primary {
        background-color: var(--accent-green);
        color: var(--text-light);
    }

    .btn-secondary {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }
}