/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Steel & blueprint palette */
    --graphite: #1b1e23;
    --iron: #2e333b;
    --blueprint: #2f5d8c;
    --amber: #e8a33d;
    --paper: #f3f1ea;
    --ink: #181a1d;
    --ink-soft: #565c66;
    --line: #d9d5c9;
    --line-dark: #454b55;
    --white: #ffffff;

    --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;

    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ink);
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.header {
    background: var(--graphite);
    border-bottom: 3px solid var(--amber);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 18px 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.logo-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--amber);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.tab-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--white);
}

.tab-button.active {
    color: var(--white);
    border-bottom-color: var(--amber);
}

.tab-button:focus-visible,
.submit-button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--blueprint);
    outline-offset: 2px;
}

/* ===========================
   MAIN CONTENT
   =========================== */

.main-content {
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background: var(--graphite);
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center;
    padding: 72px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: end;
}

.hero-copy h2 {
    color: var(--white);
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    max-width: 460px;
}

.hero-plate {
    background: var(--iron);
    border: 1px solid var(--line-dark);
    border-left: 4px solid var(--amber);
    padding: 8px 28px;
}

.plate-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
}

.plate-row:last-child {
    border-bottom: none;
}

.plate-figure {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--amber);
    min-width: 58px;
}

.plate-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ===========================
   PANELS (About / Mission / Vision)
   =========================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line);
    margin: 56px 0;
    border: 1px solid var(--line);
}

.panel {
    background: var(--white);
    padding: 32px;
}

.panel h3 {
    font-size: 19px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blueprint);
    display: inline-block;
}

.panel p {
    color: var(--ink-soft);
    font-size: 15px;
}

/* ===========================
   SECTION HEADINGS
   =========================== */

.section-heading {
    margin: 64px 0 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.section-heading h2 {
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.intro-text {
    color: var(--ink-soft);
    font-size: 15px;
    max-width: 520px;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-section {
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-item {
    background: var(--white);
    padding: 26px;
    position: relative;
    transition: var(--transition);
}

.service-item:hover {
    background: #faf9f5;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 3px;
    background: var(--blueprint);
    transition: var(--transition);
}

.service-item:hover::before {
    width: 36px;
    background: var(--amber);
}

.service-item h4 {
    font-size: 16px;
    margin: 12px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.service-item p {
    color: var(--ink-soft);
    font-size: 14px;
}

/* ===========================
   EQUIPMENT SECTION
   =========================== */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 48px;
}

.equipment-card {
    background: var(--white);
    padding: 28px;
    transition: var(--transition);
}

.equipment-card:hover {
    background: #faf9f5;
}

.equipment-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.equipment-card p {
    color: var(--ink-soft);
    margin-bottom: 16px;
    font-size: 14px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--ink);
    font-size: 13px;
}

.features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 2px;
    background: var(--amber);
}

.service-standards {
    background: var(--graphite);
    color: var(--white);
    padding: 36px;
    border-left: 4px solid var(--amber);
    margin-bottom: 40px;
}

.service-standards h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.service-standards p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    max-width: 700px;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    background: var(--line);
    gap: 1px;
}

.info-block {
    background: var(--white);
    padding: 22px 28px;
}

.info-block h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blueprint);
    margin-bottom: 8px;
}

.info-block p {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 15px;
}

.info-block a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
}

.info-block a:hover {
    border-bottom-color: var(--amber);
    color: var(--blueprint);
}

/* ===========================
   FORM STYLES
   =========================== */

.contact-form {
    background: var(--white);
    padding: 32px;
}

.contact-form h3 {
    font-size: 19px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blueprint);
    display: inline-block;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 7px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    background: var(--paper);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blueprint);
    background: var(--white);
}

.submit-button {
    background: var(--graphite);
    color: var(--white);
    padding: 13px 30px;
    border: none;
    border-left: 4px solid var(--amber);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 8px;
}

.submit-button:hover {
    background: var(--iron);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 14px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--graphite);
    color: var(--white);
    padding: 44px 0 22px;
    border-top: 3px solid var(--amber);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
    }

    .tab-button {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
        text-align: center;
    }

    .hero-section {
        padding: 44px 0;
    }

    .hero-copy h2 {
        font-size: 32px;
    }

    .section-heading h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-copy h2 {
        font-size: 26px;
    }

    .panel,
    .service-item,
    .equipment-card,
    .info-block,
    .contact-form {
        padding: 20px;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-after: always;
    }
}
