:root {
    --brand-navy: #0e2a47;
    --brand-blue: #146aa3;
    --brand-cyan: #17a2b8;
    --brand-gold: #f3b51b;
    --surface: #ffffff;
    --surface-soft: #f4f7fa;
    --text-main: #273746;
    --text-muted: #657381;
    --border-soft: rgba(14, 42, 71, 0.12);
    --shadow-soft: 0 18px 45px rgba(14, 42, 71, 0.10);
}

html { scroll-padding-top: 76px; }
body { color: var(--text-main); overflow-x: hidden; }

#mainNav {
    border-bottom: 1px solid rgba(255,255,255,.16);
    background: rgba(8, 27, 46, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#mainNav.navbar-shrink { background: rgba(8, 27, 46, .96); }
#mainNav .navbar-brand { letter-spacing: .04em; font-size: 1.1rem; }
#mainNav .navbar-nav .nav-item .nav-link { font-size: .82rem; font-weight: 600; letter-spacing: .05em; }

header.masthead {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    background-position: center;
}
header.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,25,42,.88) 0%, rgba(6,25,42,.72) 48%, rgba(6,25,42,.38) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 950px; }
header.masthead .masthead-subheading { margin-bottom: 1rem; font-family: Montserrat, sans-serif; font-style: normal; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
header.masthead .masthead-heading { max-width: 900px; margin-bottom: 1.25rem; line-height: 1.06; }
.hero-copy { max-width: 720px; margin: 0 auto 2rem; color: rgba(255,255,255,.9); font-size: 1.18rem; line-height: 1.75; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn { min-width: 220px; }
.btn-outline-light:hover { color: var(--brand-navy); }

.page-section { padding: 6.5rem 0; }
.section-intro { max-width: 760px; margin: 0 auto 3.5rem; }
.section-kicker { display: inline-block; margin-bottom: .65rem; color: var(--brand-blue); font-family: Montserrat, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.page-section h2.section-heading { color: var(--brand-navy); margin-bottom: .85rem; }
.page-section h3.section-subheading { margin-bottom: 0; line-height: 1.7; }

.service-card,
.about-card,
.detail-content,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.service-card { padding: 2.3rem 1.65rem; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 22px 55px rgba(14,42,71,.15); }
.service-card h4 { color: var(--brand-navy); margin: 1.1rem 0 .85rem; }
.service-card p { color: var(--text-muted); line-height: 1.75; }
.service-icon { font-size: 2.6rem; }
.service-link { color: var(--brand-blue); font-family: Montserrat, sans-serif; font-size: .85rem; font-weight: 700; text-decoration: none; }
.service-link svg { transition: transform .2s ease; }
.service-link:hover svg { transform: translateX(4px); }

.about-card { position: relative; padding: 2.4rem; }
.about-card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.25rem; border-radius: 14px; color: #fff; background: var(--brand-blue); font-size: 1.25rem; }
.about-card h4, .detail-content h4 { color: var(--brand-navy); }
.about-card p, .detail-content p { color: var(--text-muted); line-height: 1.8; }

.service-detail .section-heading { margin-bottom: 2rem !important; }
.about-img-wrapper { position: relative; width: calc(100% - 18px); margin: 0 0 18px 18px; }
.service-image { position: relative; z-index: 2; width: 100%; min-height: 420px; max-height: 520px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-soft); }
.about-img-border { position: absolute; z-index: 1; inset: 18px 18px -18px -18px; border: 3px solid var(--brand-gold); border-radius: 16px; }
.detail-content { padding: 2.4rem; }
.detail-content h4:not(:first-child) { margin-top: 2rem; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem 1.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.service-list li { position: relative; padding-left: 1.7rem; color: var(--text-muted); line-height: 1.55; }
.service-list li::before { content: "\f00c"; position: absolute; left: 0; top: .15rem; color: var(--brand-blue); font-family: "Font Awesome 6 Free"; font-weight: 900; }

section#contact { position: relative; background-color: #0b2741; background-size: cover; }
section#contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,39,65,.88), rgba(7,27,45,.96)); }
section#contact .container { position: relative; z-index: 1; }
section#contact .section-kicker { color: #7fd3df; }
section#contact .section-heading, section#contact .section-subheading { color: #fff !important; }
.contact-card { max-width: 920px; margin: 0 auto; padding: 2.5rem; }
section#contact form#contactForm .form-group { margin-bottom: 0; }
section#contact form#contactForm .form-control { min-height: 58px; border: 1px solid #d6dee6; border-radius: 10px; padding: .95rem 1rem; font-size: 1rem; }
section#contact form#contactForm textarea.form-control { min-height: 160px; }
section#contact form#contactForm .form-control:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 .25rem rgba(20,106,163,.13); }
.form-label { color: var(--brand-navy); font-family: Montserrat, sans-serif; font-size: .88rem; font-weight: 700; }
.submit-button { min-width: 235px; position: relative; overflow: hidden; }
.submit-button:disabled { cursor: wait; opacity: .82; }
.form-status { display: none; border-radius: 10px; padding: 1rem 1.1rem; font-weight: 600; }
.form-status.is-success { display: block; color: #0f5132; background: #d1e7dd; border: 1px solid #badbcc; }
.form-status.is-error { display: block; color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }

.float { width: 58px; height: 58px; right: 24px; bottom: 24px; display: grid; place-items: center; background-color: #25d366; box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease; }
.float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.3); color: #fff; }
.my-float { margin-top: 0; font-size: 31px; }
.footer { color: #6b7884; background: #fff; }
.footer a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }

@media (max-width: 991.98px) {
    #mainNav { background: rgba(8,27,46,.96); }
    #mainNav .navbar-collapse { padding-top: .75rem; }
    header.masthead { min-height: 650px; }
    .service-list { grid-template-columns: 1fr; }
    .detail-content { padding: 2rem; }
}

@media (max-width: 767.98px) {
    html { scroll-padding-top: 68px; }
    .page-section { padding: 4.5rem 0; }
    header.masthead { min-height: 620px; padding: 7rem 0 4rem; background-position: 62% center; }
    header.masthead::before { background: rgba(6,25,42,.76); }
    header.masthead .masthead-subheading { font-size: .83rem; line-height: 1.6; }
    header.masthead .masthead-heading { font-size: 2.3rem; line-height: 1.15; }
    .hero-copy { font-size: 1rem; line-height: 1.65; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; min-width: 0; }
    .section-intro { margin-bottom: 2.5rem; }
    .about-card, .detail-content, .contact-card { padding: 1.55rem; }
    .service-image { min-height: 310px; }
    .about-img-wrapper { width: calc(100% - 12px); margin: 0 0 12px 12px; }
    .about-img-border { inset: 12px 12px -12px -12px; }
    .contact-card { border-radius: 14px; }
    .float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
    #mainNav .navbar-brand { font-size: .98rem; }
    header.masthead .masthead-heading { font-size: 1.95rem; }
    .btn-xl { padding: 1.1rem 1.25rem; font-size: .82rem; }
    .service-card { padding: 2rem 1.35rem; }
    .service-image { min-height: 260px; }
}
