:root {
    --color-primary: #2f7fb0;
    --color-primary-dark: #1f5f88;
    --color-accent: #57c2c0;
    --color-bg: #fbfdfe;
    --color-bg-alt: #eef5f8;
    --color-surface: #ffffff;
    --color-text: #2c3e4a;
    --color-text-light: #6b8091;
    --color-border: #e2edf2;
    --shadow-soft: 0 10px 30px -12px rgba(47, 127, 176, 0.18);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #1f3b4d;
    line-height: 1.3;
    margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; }

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

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

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

/* Header */
.site-header {
    background: rgba(255,255,255,.97);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo { height: 56px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: .95rem;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }
.main-nav a.active { color: var(--color-primary); background: var(--color-bg-alt); }

.lang-switch {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}
.lang-switch:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: none;
    color: var(--color-text);
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 14px 24px;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav a.active { color: var(--color-primary); }

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 55%);
    padding: 76px 0 64px;
}
.hero .container { display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1.1; }
.hero-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 14px;
    display: block;
}
.hero-copy h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: .45em; }
.hero-copy .lead { color: var(--color-text-light); font-size: 1.08rem; max-width: 46ch; }
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 340px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: var(--shadow-soft);
    transition: transform .2s, background .2s;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn.btn-outline {
    background: transparent;
    color: var(--color-primary-dark);
    border: 1.5px solid var(--color-border);
    box-shadow: none;
}
.btn.btn-outline:hover { border-color: var(--color-primary); background: var(--color-bg-alt); }

/* Section */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
    text-transform: uppercase; letter-spacing: 3px; font-size: .75rem;
    font-weight: 700; color: var(--color-accent); display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-head p { color: var(--color-text-light); }

/* Client drawings slider */
.slider {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #0e2333;
}
.slider-track { position: relative; aspect-ratio: 16/11; }
.slide {
    position: absolute; inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 20px;
    background: linear-gradient(0deg, rgba(14,35,51,.82), transparent);
    color: #fff;
    font-size: .88rem;
    text-align: center;
}
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.85); color: #1f3b4d;
    font-size: .9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.slider-dots .dot {
    width: 9px; height: 9px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.slider-dots .dot.active { background: #fff; }
.section-alt .section-head p { max-width: 560px; margin: 0 auto; }

/* Cards / post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .post-grid { grid-template-columns: 1fr; }
}
.post-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb {
    aspect-ratio: 16/10;
    background: var(--color-bg-alt);
    overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb-placeholder {
    width: 100%; height: 100%; padding: 22%;
    color: var(--color-primary);
    opacity: 0.22;
}
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .category-tag {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    padding: 5px 12px;
    border-radius: 999px;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.post-card .excerpt { color: var(--color-text-light); font-size: .93rem; flex: 1; }
.post-card .meta { font-size: .8rem; color: var(--color-text-light); }
.post-card .read-more { font-weight: 600; font-size: .88rem; }

/* Blog filters */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.category-filter a {
    padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--color-border);
    font-size: .88rem; color: var(--color-text-light); font-weight: 500;
}
.category-filter a.active, .category-filter a:hover {
    border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-bg-alt);
}

/* Single post */
.post-single .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-soft); }
.post-single .meta { color: var(--color-text-light); font-size: .9rem; margin-bottom: 8px; }
.post-single h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.post-content { max-width: 100%; font-size: 1.03rem; }
.post-content h2, .post-content h3 { margin-top: 1.4em; }
.post-content h4 { margin-top: 1.2em; color: var(--color-primary-dark); font-size: 1.05rem; }
.post-content ul, .post-content ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.post-content li { margin-bottom: .4em; }
.post-content img { border-radius: 12px; margin: 1.4em 0; }

/* Static content pages */
.page-header {
    background: var(--color-bg-alt);
    padding: 54px 0 36px;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 6px; }
.page-header .crumb { color: var(--color-text-light); font-size: .9rem; }
.prose { max-width: 74ch; font-size: 1.04rem; }
.prose p { color: var(--color-text); }

.about-layout { display: flex; align-items: flex-start; gap: 56px; }
.about-layout .prose { flex: 1.4; max-width: 640px; }
.about-visual { flex: 1; display: flex; justify-content: center; padding-top: 12px; }
.about-visual svg { width: 100%; max-width: 260px; }

/* Publications */
.pub-section { margin-bottom: 46px; }
.pub-section h2 {
    font-size: 1.08rem;
    color: var(--color-primary-dark);
    border-bottom: 2px solid var(--color-bg-alt);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub-list li {
    counter-increment: pub;
    padding: 12px 0 12px 40px;
    position: relative;
    border-bottom: 1px dashed var(--color-border);
    font-size: .95rem;
    color: var(--color-text);
}
.pub-list li::before {
    content: counter(pub) ".";
    position: absolute; left: 0; top: 12px;
    color: var(--color-accent);
    font-weight: 700;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--color-bg-alt);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary);
}
.contact-info-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-light); margin-bottom: 4px; }
.contact-info-item .value { font-weight: 600; color: #1f3b4d; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: none; width: 100%; min-height: 420px; }

/* Footer */
.site-footer { background: #163244; color: #b9cbd6; padding: 44px 0 26px; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .87rem; }
.site-footer a { color: #d7e6ee; }

@media (max-width: 900px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-copy .lead { margin-left: auto; margin-right: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-layout { flex-direction: column-reverse; gap: 28px; }
    .about-layout .prose { max-width: 100%; }
    .about-visual { padding-top: 0; }
    .about-visual svg { max-width: 150px; }
}

@media (max-width: 760px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
}
