:root {
    --color-blue: #0b2f4f;
    --color-blue-2: #123d63;
    --color-graphite: #252a31;
    --color-text: #1e242b;
    --color-muted: #64707d;
    --color-border: #d9dee5;
    --color-bg: #f6f8fa;
    --color-accent: #d98a16;
    --color-accent-dark: #a86408;
}

body {
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    background: #fff;
}

a {
    color: var(--color-blue);
}

a:hover {
    color: var(--color-accent-dark);
}

.site-navbar {
    background: var(--color-blue);
    box-shadow: 0 2px 16px rgba(10, 29, 48, 0.16);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 14px;
    height: 28px;
    display: inline-block;
    background: var(--color-accent);
    clip-path: polygon(42% 0, 100% 0, 62% 43%, 100% 43%, 18% 100%, 40% 55%, 0 55%);
}

.nav-link {
    font-weight: 600;
}

.btn {
    border-radius: 4px;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.btn-sm {
    padding: 0.45rem 0.75rem;
}

.btn-accent {
    color: #111820;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.hero-section {
    color: #fff;
    background: var(--color-blue);
    padding: clamp(4rem, 9vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.page-hero h1 {
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-section h1 {
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    max-width: 920px;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    max-width: 760px;
    margin: 1.4rem 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-media {
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background-color: #163a5b;
    background-image:
        linear-gradient(135deg, rgba(217, 138, 22, 0.18) 0 18%, transparent 18% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 32px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
    padding: 1.25rem;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.eyebrow {
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section,
.page-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.page-hero {
    color: #fff;
    background: var(--color-blue);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    max-width: 780px;
}

.section-muted {
    background: var(--color-bg);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 2rem;
}

.section-heading h2,
.contact-cta h2 {
    color: var(--color-graphite);
    font-weight: 800;
}

.section-heading p {
    color: var(--color-muted);
}

.section-heading-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.content-card,
.project-card,
.info-panel,
.contact-form,
.document-row {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

.content-card {
    position: relative;
    padding: 1.5rem;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.content-card:hover,
.project-card:hover {
    border-color: rgba(217, 138, 22, 0.58);
    transform: translateY(-2px);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--color-blue);
    background: #f3eadc;
    border-left: 4px solid var(--color-accent);
    font-weight: 800;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--color-graphite);
    font-weight: 800;
}

.content-card p,
.project-card p,
.lead-small,
.empty-text {
    color: var(--color-muted);
}

.card-link,
.text-link {
    font-weight: 800;
    text-decoration: none;
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.project-image {
    min-height: 190px;
    background-color: #e8edf2;
    background-image:
        linear-gradient(135deg, rgba(11, 47, 79, 0.2), rgba(11, 47, 79, 0.02)),
        repeating-linear-gradient(90deg, rgba(37, 42, 49, 0.12) 0 1px, transparent 1px 30px);
    background-size: cover;
    background-position: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 1.35rem;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-grid div {
    min-height: 118px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1rem;
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid strong {
    color: var(--color-blue);
    font-size: 1.5rem;
}

.feature-grid span {
    margin-top: 0.4rem;
    font-weight: 700;
}

.info-panel,
.contact-form {
    padding: 1.5rem;
}

.info-panel dl {
    margin: 0;
}

.info-panel dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 800;
}

.info-panel dd {
    margin-bottom: 1rem;
    font-weight: 600;
}

.rich-text {
    max-width: 820px;
    font-size: 1.05rem;
}

.detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-sections {
    display: grid;
    gap: 2rem;
}

.gallery-room h3 {
    color: var(--color-graphite);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #e8edf2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.document-list {
    display: grid;
    gap: 1rem;
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
}

.document-row p {
    color: var(--color-muted);
    margin-bottom: 0;
}

.contact-cta {
    color: #fff;
    background: var(--color-graphite);
    padding: 3rem 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-inner h2 {
    color: #fff;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.map-frame {
    width: 100%;
    min-height: 280px;
    margin-top: 1rem;
    border: 0;
    border-radius: 6px;
}

.errorlist {
    color: #a22121;
    list-style: none;
    padding-left: 0;
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.narrow-content {
    max-width: 820px;
}

.narrow-content h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #111820;
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a,
.social-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover,
.social-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .hero-media {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .section-heading-row,
    .cta-inner,
    .document-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn,
    .cta-inner .btn {
        width: 100%;
    }
}
