/* Nordweb Studio — site stylesheet */
:root {
    --bg: #0d1420;
    --surface: #14202f;
    --surface-2: #182a3f;
    --text: #e6edf5;
    --muted: #9db2c8;
    --accent: #46c2a8;
    --accent-2: #4f8fef;
    --border: #233449;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16.5px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 20, 32, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--accent); }

.main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }
.main-nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 3px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #06121a;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(70, 194, 168, .25); text-decoration: none; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
    padding: 110px 0 90px;
    background:
        radial-gradient(900px 400px at 15% 0%, rgba(79, 143, 239, .16), transparent 60%),
        radial-gradient(700px 380px at 85% 20%, rgba(70, 194, 168, .14), transparent 60%);
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 760px; }
.hero .tagline {
    margin: 22px 0 34px;
    font-size: 19px;
    color: var(--muted);
    max-width: 640px;
}
.hero .gradient-text {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 14px; }
.section-head p { color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 19px; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(70, 194, 168, .12);
    color: var(--accent);
    font-size: 22px;
}

/* ---------- Portfolio ---------- */
.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card .body { padding: 22px 24px 26px; }
.project-card h3 { margin: 0 0 8px; }
.tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ---------- Team ---------- */
.team-member { text-align: center; }
.avatar {
    width: 108px; height: 108px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; color: #06121a;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.team-member:nth-child(2n) .avatar { background: linear-gradient(135deg, #4f8fef, #7c5cf0); }
.team-member:nth-child(3n) .avatar { background: linear-gradient(135deg, #f0a35c, #e2607e); }
.team-member h3 { font-size: 17px; }
.team-member .role { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 22px; }
.post-item {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    color: var(--text);
}
.post-item:hover { border-color: var(--accent); text-decoration: none; }
.post-item h3 { font-size: 21px; margin-bottom: 8px; }
.post-item p { color: var(--muted); font-size: 15.5px; }
.post-meta { font-size: 13.5px; color: var(--accent); margin-bottom: 10px; letter-spacing: .4px; }

article.post { max-width: 760px; }
article.post h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
article.post h2 { font-size: 23px; margin: 36px 0 12px; }
article.post p, article.post li { color: #c7d4e4; margin-bottom: 14px; }
article.post ul, article.post ol { padding-left: 24px; margin-bottom: 14px; }
article.post .post-meta { margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form { max-width: 560px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 7px; }
.form input, .form textarea, .form select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 12px 14px;
    font-size: 15.5px;
    font-family: inherit;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-success {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(70, 194, 168, .1);
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-info ul { list-style: none; margin-top: 10px; }
.contact-info li { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.contact-info li strong { color: var(--text); display: block; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.map-box {
    margin-top: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ---------- Prose pages (privacy / terms) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 21px; margin: 34px 0 10px; }
.prose p, .prose li { color: #c7d4e4; margin-bottom: 12px; }
.prose ul { padding-left: 24px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
    text-align: center;
    padding: 90px 0;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(70, 194, 168, .16), transparent 65%),
        var(--surface);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 130px 0; }
.notfound .code {
    font-size: clamp(80px, 14vw, 140px);
    font-weight: 800;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.notfound p { color: var(--muted); margin: 18px 0 30px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 54px 0 30px;
    background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a, .site-footer p { color: var(--muted); font-size: 14.5px; }
.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
    .hero { padding: 70px 0 60px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
