/* styles.css
   Version: 1.0.0
   Deploys to: comcept.solantex.net/assets/styles.css  [OVH1: /var/www/comcept/assets/styles.css]
   Purpose: Shared stylesheet for the Comcept Technologies demo site (Solantex rebuild)
   Layout: CSS grid and block only. No flex anywhere.
*/

:root {
    --blue:       #2e6fb7;
    --blue-dark:  #1d4e86;
    --blue-glow:  #37a6e0;
    --ink:        #0c1420;
    --ink-2:      #12203a;
    --steel:      #8fa3bb;
    --paper:      #f5f7fa;
    --line:       #e3e9f1;
    --white:      #ffffff;
    --radius:     14px;
    --shadow:     0 10px 30px rgba(12, 20, 32, 0.12);
    --maxw:       1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(12, 20, 32, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand .brand-text { color: var(--white); }
.brand .brand-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand .brand-text span { display: block; font-size: 0.72rem; color: var(--steel); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { text-align: right; }

.site-nav a {
    display: inline-block;
    color: #cfdcec;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 13px;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

.site-nav a.active { color: var(--white); background: var(--blue); }

.site-nav a.nav-cta {
    background: var(--blue-glow);
    color: #06121f;
    margin-left: 8px;
}
.site-nav a.nav-cta:hover { background: #5cbcec; color: #06121f; }

/* ---------- Hero (home) ---------- */

.hero {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(55, 166, 224, 0.28), transparent 60%),
        radial-gradient(700px 380px at 10% 110%, rgba(46, 111, 183, 0.35), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--white);
    padding: 96px 0 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-glow);
    border: 1px solid rgba(55, 166, 224, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue-glow);
}

.hero p.lead {
    font-size: 1.15rem;
    color: #b9c8da;
    max-width: 34em;
    margin-bottom: 32px;
}

.btn-row { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; }

.btn {
    display: inline-block;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
}

.btn-primary { background: var(--blue-glow); color: #06121f; }
.btn-primary:hover { background: #5cbcec; color: #06121f; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--blue-glow); color: var(--blue-glow); }

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(6px);
}

.hero-card h3 { color: var(--blue-glow); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }

.hero-card ul { list-style: none; }

.hero-card li {
    padding: 9px 0 9px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #d7e2ef;
    position: relative;
    font-size: 0.98rem;
}
.hero-card li:last-child { border-bottom: none; }
.hero-card li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--blue-glow);
}

/* ---------- Stats strip ---------- */

.stats {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat { padding: 34px 12px; }

.stat b {
    display: block;
    font-size: 2rem;
    color: var(--blue);
    font-weight: 700;
}

.stat span { color: #5b6b7e; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section.tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 46px; }

.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }

.section-head p { color: #5b6b7e; font-size: 1.05rem; }

/* ---------- Cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(12, 20, 32, 0.04);
}

.section.tint .card { background: var(--paper); }

.card .icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }

.card p { color: #5b6b7e; font-size: 0.95rem; }

/* ---------- Project grid ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.project img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.project:hover img { transform: scale(1.045); opacity: 1; }

.project .label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 14px 18px;
    background: linear-gradient(transparent, rgba(6, 12, 20, 0.92));
    color: var(--white);
    font-weight: 600;
    font-size: 0.98rem;
}

.project.noimg {
    display: grid;
    place-items: center;
    min-height: 230px;
    background: linear-gradient(150deg, var(--ink-2), var(--blue-dark));
}

.project.noimg .label { position: static; background: none; padding: 20px; text-align: center; font-size: 1.05rem; }

/* ---------- Partner grid ---------- */

.partner-cat { margin-bottom: 42px; }

.partner-cat h3 {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.logo-tile {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: grid;
    place-items: center;
    min-height: 110px;
}

.logo-tile img { max-height: 64px; width: auto; filter: grayscale(35%); transition: filter 0.25s ease; }
.logo-tile:hover img { filter: grayscale(0%); }

.logo-tile span { font-weight: 700; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(55, 166, 224, 0.25), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--white);
    padding: 64px 0 56px 0;
}

.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 10px; }

.page-hero p { color: #b9c8da; max-width: 42em; font-size: 1.08rem; }

/* ---------- Two column content ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: start;
}

.two-col .content h2 { font-size: 1.7rem; margin-bottom: 14px; }
.two-col .content p { margin-bottom: 16px; color: #3c4a5b; }

.framed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---------- Checklist ---------- */

.checklist { list-style: none; }

.checklist li {
    position: relative;
    padding: 10px 0 10px 34px;
    border-bottom: 1px solid var(--line);
    color: #3c4a5b;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
}

.contact-card h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

.contact-card .big { font-size: 1.6rem; font-weight: 700; color: var(--ink); }

.contact-card p { color: #5b6b7e; margin-top: 6px; }

/* ---------- CTA band ---------- */

.cta-band {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    text-align: center;
    padding: 66px 24px;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }

.cta-band p { color: #d5e4f5; margin-bottom: 26px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--steel);
    padding: 54px 0 30px 0;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

.site-footer a { color: var(--steel); display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--blue-glow); }

.footer-links a { display: block; }

.footer-bottom {
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.footer-bottom .powered { color: #5b6b7e; }
.footer-bottom .powered a { color: var(--blue-glow); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero-grid, .two-col { grid-template-columns: 1fr; }
    .cards, .cards.four, .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-grid { grid-template-columns: 1fr; padding: 12px 24px; text-align: center; }
    .brand { margin: 0 auto; }
    .site-nav { text-align: center; padding-top: 8px; }
}

@media (max-width: 620px) {
    .cards, .cards.four, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { grid-template-columns: 1fr; text-align: center; }
}
