/* =========================================================
   GridExtend — shared stylesheet
   Used by: index.php, services.php, approach.php, industry.php, contact.php
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f172a;
    /*line-height: 1.6;*/
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 62px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: #4b5a70;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: #2E9BD9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #0f172a;
    display: block;
}

/* ---------- Home hero ---------- */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(15,23,42,0.72), rgba(15,23,42,0.84)),
        url('https://images.unsplash.com/photo-1513719377079-655897ffbc6a?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.btn-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ---------- Secondary page hero (services/approach/industry/contact) ---------- */
.page-hero {
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 56px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15,23,42,0.55), rgba(15,23,42,0.86));
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

.breadcrumb a:hover { color: #ffffff; }

.page-hero h1 {
    font-size: 46px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 760px;
}

.page-hero p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.btn-primary {
    background: #2E9BD9;
    color: #ffffff;
}

.btn-primary:hover {
    background: #268bc4;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.28);
    color: #ffffff;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

/* ---------- Sections ---------- */
section {
    padding: 90px 0;
}

section.alt {
    background: #f7f9fc;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #2E9BD9; /*#25abe0; #ca8a04; #0f172a;*/
}

.section-subtitle {
    color: #5b6b83;
    max-width: 760px;
    margin-bottom: 48px;
}

.eyebrow {
    color: #2E9BD9;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ---------- Card grid (home teasers) ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background: #213E52;
    color: #2E9BD9;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px;
    border-radius: 22px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
}

.card h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.card p {
    color: #a9b7cc;
    font-size: 15px;
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    color: #10B981;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.learn-more:hover {
    color: #34d399;
    transform: translateX(4px);
}

.highlight { color: #ffffff; font-weight: 600; }

/* ---------- About (home) ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about img { width: 100%; border-radius: 24px; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: #1F3B4D;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
}

.stat-box h2 { font-size: 36px; margin-bottom: 10px; color: #ffffff; }
.stat-box p  { color: #b7c1d1; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta {
    text-align: center;
    padding: 100px 20px;
    background:
        linear-gradient(rgba(15,23,42,0.72), rgba(15,23,42,0.82)),
        url('https://images.unsplash.com/photo-1444718070663-99afd7176287?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}

.cta h2 { font-size: 42px; margin-bottom: 20px; color: #ffffff; }

.cta p {
    color: #d4dbe5;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ---------- Footer ---------- */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(15,23,42,0.08);
    text-align: center;
    color: #7f8ea3;
    font-size: 14px;
}

footer a { color: #2E9BD9; text-decoration: none; }

/* ---------- Contact form ---------- */
.contact-form-card {
    max-width: 680px;
    margin: 0 auto 40px auto;
    background: rgba(31, 59, 77, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width { grid-column: span 2; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #b7c1d1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group select option { background-color: #111827; color: #ffffff; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #64748b; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2E9BD9;
    box-shadow: 0 0 0 3px rgba(46, 155, 217, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.form-actions { grid-column: span 2; margin-top: 10px; }

/* Contact page side info */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-list { list-style: none; margin-top: 24px; }

.contact-info-list li {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.contact-info-list .icon {
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-list strong { display: block; color: #0f172a; font-size: 15px; }
.contact-info-list span { color: #5b6b83; font-size: 14px; }

/* ---------- Industries (home teaser + industry.php) ---------- */
.industry-item {
    background: #213E5D;
    padding: 2rem 2.5rem;
    display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
    transition: background 0.25s, transform 0.3s ease;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.industry-item:hover {
    background: rgba(46,155,217,0.12);
    transform: translateY(-4px);
}

.industry-icon { font-size: 2.6rem; flex-shrink: 0; }

.industry-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: #ffffff;
}

.industry-desc {
    font-size: 0.9rem; color: rgba(203, 213, 225, 0.85);
    margin-top: 0.2rem; font-weight: 300; margin-bottom: 12px;
}

/* ---------- Detail sections: services.php / approach.php / industry.php ---------- */
.detail-block {
    padding: 80px 0;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.detail-block:nth-of-type(even) { background: #f7f9fc; }

.detail-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 40px;
}

.detail-head img {
    width: 60%;
    border-radius: 20px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.detail-index {
    font-size: 42px;
    color: #2E9BD9;
    font-weight: 800;
    margin-bottom: 10px;
}

.detail-head h2 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 18px;
}

.detail-head p { color: #5b6b83; font-size: 16px; }

.detail-body {
    max-width: 900px;
}

.detail-body p {
    color: #43526b;
    margin-bottom: 20px;
    font-size: 16px;
}

.detail-body strong { color: #0f172a; }

/* ---------- Flow / process diagrams (replacing ascii art) ---------- */
.flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 480px;
    margin: 30px 0 36px;
}

.flow-box {
    background: #1F3B4D;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.flow-box small {
    display: block;
    font-weight: 400;
    color: #ffffff; /*#9fb2c9;*/
    font-size: 12px;
    margin-top: 4px;
}

.flow-arrow {
    align-self: center;
    color: #2E9BD9;
    font-size: 20px;
    padding: 6px 0;
}

.flow-branch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flow-wide { max-width: 640px; }

/* ---------- Comparison table (Tech-Value Convergence) ---------- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0 10px;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.compare-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
}

.compare-table tr:nth-child(even) td { background: rgba(15,23,42,0.02); }

.compare-table td:first-child, .compare-table th:first-child { font-weight: 600; color: #0f172a; }

/* ---------- Utility ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ---------- Responsive ---------- */
@media(max-width: 900px) {
    .hero h1 { font-size: 40px; }
    .page-hero h1 { font-size: 34px; }
    .about, .detail-head, .contact-layout, .two-col { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px 5%;
        gap: 16px;
        border-bottom: 1px solid rgba(15,23,42,0.08);
    }

    nav ul.open { display: flex; }

    .nav-toggle { display: flex; }

    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .form-actions { grid-column: span 1; }
    .contact-form-card { padding: 24px; }
    .flow-branch { grid-template-columns: 1fr; }
}
