/* ==========================================================
   TZ-Studt — Professional Corporate Stylesheet
   Clean, serious, trustworthy. No dark mode.
   ========================================================== */

:root {
    --white: #ffffff;
    --bg-body: #f7f8fa;
    --bg-section-alt: #f0f2f5;

    --text-heading: #1a2332;
    --text-body: #3d4f5f;
    --text-muted: #6b7d8d;

    --navy: #1b3764;
    --navy-dark: #122850;
    --navy-light: #e8edf4;

    --red: #c0392b;
    --red-light: #fdf2f0;

    --border: #dce1e8;
    --border-light: #ebeef3;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);

    --radius: 6px;
    --transition: 0.2s ease;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: box-shadow var(--transition), padding var(--transition);
}

.navbar-scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.6rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    background: var(--navy);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 1.1rem;
}

.logo-text {
    color: var(--navy);
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.15rem 0.3rem;
    transition: color var(--transition);
}

.lang-switch button.active {
    color: var(--navy);
    font-weight: 700;
}

.lang-switch button:hover {
    color: var(--navy);
}

.lang-switch .divider {
    color: var(--border);
    font-size: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-main);
    line-height: 1.4;
}

.btn i {
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: var(--navy-light);
}

/* === Hero === */
.hero {
    padding: 8rem 0 5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.hero h1 span {
    color: var(--navy);
}

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 95%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Blueprint Card */
.blueprint-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--bg-section-alt);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-status {
    font-size: 0.68rem;
    background: var(--navy-light);
    color: var(--navy);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
    background: var(--white);
}

.tech-svg {
    width: 100%;
    height: auto;
    color: var(--navy);
}

/* === Sections === */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* === Services === */
.services {
    background: var(--bg-body);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.area-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem 1.8rem;
    border-radius: var(--radius);
    transition: box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.area-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1;
}

/* Fire safety card */
.area-card--fire {
    border-left: 3px solid var(--red);
}

.area-card--fire .card-icon {
    color: var(--red);
}

.area-card--fire:hover {
    border-color: var(--red);
}

.area-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: var(--text-heading);
    font-weight: 600;
}

.area-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Products / Specific Services */
.products-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.products-title {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-heading);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-item {
    display: flex;
    gap: 1rem;
}

.product-marker {
    width: 3px;
    background: var(--navy);
    flex-shrink: 0;
    border-radius: 2px;
}

.product-item--fire .product-marker {
    background: var(--red);
}

.product-content h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-heading);
    font-weight: 600;
}

.product-content p {
    color: var(--text-body);
    font-size: 0.87rem;
    line-height: 1.55;
}

/* === Formats === */
.formats {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.format-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.format-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.format-icon {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1;
}

.format-card h4 {
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.format-card p {
    color: var(--text-body);
    font-size: 0.88rem;
}

/* === Contact === */
.contact {
    background: var(--bg-body);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item i {
    font-size: 1.15rem;
    color: var(--navy);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-light);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-item span,
.contact-item a {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--navy);
}

/* Contact CTA Panel */
.contact-cta {
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.contact-cta-inner {
    text-align: center;
    max-width: 280px;
}

.contact-cta-inner > i {
    font-size: 2rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 1rem;
}

.contact-cta-inner h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.contact-cta-inner p {
    font-size: 0.88rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-cta .btn-primary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    width: 100%;
    margin-bottom: 0.5rem;
}

.contact-cta .btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}

.contact-cta .btn-secondary {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.25);
    width: 100%;
}

.contact-cta .btn-secondary:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* === Footer === */
footer {
    padding: 2.5rem 0 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

footer .logo-text {
    color: var(--navy);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-left: 1px solid var(--border);
    padding-left: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* === Responsive === */
@media (max-width: 992px) {
    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .areas-grid,
    .products-grid,
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
    }

    .areas-grid,
    .products-grid,
    .formats-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .products-container {
        padding: 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-tagline {
        border-left: none;
        padding-left: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
