/* Shared surfaces, typography and spacing */
:root {
  --paper: #f6f5f1;
  --rule: #d4dadf;
  --muted-ink: #4d5c68;
  --gold-ink: #725729;
  --section-space: clamp(42px, 4.7vw, 70px);
  --display-font: Montserrat, "NanumSquare Neo", sans-serif;
}
.header { background: #0b192c; border-bottom-color: #324154; }
.header-inner { min-height: 78px; }
.nav { gap: clamp(15px, 1.65vw, 27px); }
.nav > a, .menu-toggle { font-weight: 700; letter-spacing: .4px; }
.nav .nav-contact { padding: 7px 15px; border-color: #9d865c; }
.footer { padding: 34px 0 22px; background: #091625; }
.footer-inner { align-items: flex-start; gap: 16px 28px; }
.footer .brand img { width: 140px; }
.footer p { color: #c2cbd4; line-height: 1.65; }
.footer nav { gap: 4px 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 42px; }
.footer nav a[aria-current="page"] { color: var(--gold); }
.aggregate-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.footer .copyright { color: #a1b0be; border-color: #354152; }
.section:not(.shortcut-section) { padding-block: var(--section-space); }
.section-title { align-items: end; margin-bottom: clamp(18px, 2vw, 29px); }
.section-title h2, .feature-copy h2 { font-size: clamp(1.55rem, 2.55vw, 2.35rem); line-height: 1.22; }
.section-title .kicker, .feature-copy .kicker { font-size: .75rem; letter-spacing: .16em; }
.section-title .kicker { color: var(--gold-ink); }
.section-title > .text-link, .contact-companies {
  display: inline-flex; gap: .7rem; align-items: center; min-height: 40px;
  color: #25374a; font-size: .92rem; padding-block: 5px; border-bottom: 1px solid #bda677;
}
.section-title > .text-link::after, .contact-companies::after, a.company::after {
  content: ''; display: inline-block; width: 7px; height: 7px; flex: none;
  border: solid #8b7041; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
main > .section .button, .inquiry .button { padding-inline: 22px; font-weight: 700; min-height: 46px; }
.company { border: 1px solid var(--rule); border-top: 2px solid var(--gold); background: #fff; }
.company h3, .card-copy h3, .product-info h3, .contact-card h3 { font-size: clamp(1.16rem, 1.5vw, 1.38rem); }
a.company { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.photo-card, .product-card { border-color: var(--rule); }
.card-copy .pictogram { width: 44px; height: 36px; }
#core-services .card-copy p { color: #263A50; font-weight: 400; }
#core-services .card-copy p > .text-link { font-weight: inherit; }
.card-copy, .product-info { padding: clamp(17px, 1.8vw, 26px); }
.aggregate-section, .section.muted { background: var(--paper); }
.product-media { background: #e9edef; border-bottom: 1px solid var(--rule); color: var(--muted-ink); }
.contact-card { border: 1px solid var(--rule); border-top: 2px solid var(--gold); background: var(--paper); }
.contact-companies { margin-top: 18px; }
.lead { line-height: 1.62; }
.inquiry { background: #12253a; padding-block: clamp(27px, 3.2vw, 45px); }
.inquiry h2 { font-size: clamp(1.35rem, 2.25vw, 2rem); }
.inquiry p { margin-top: 6px; }
.record-tools select { border-radius: 0; }
.project-table th { background: #15283d; }
.project-link:hover { background: var(--paper); }

/* The subpage mastheads use decorative imagery. Content images stay with the body. */
.mast {
  --mast-height: clamp(226px, 18vw, 262px);
  --photo-position: 55% 50%;
  --shade: linear-gradient(90deg, #0b192c 7%, #0b192cf5 28%, #0b192cd9 40%, #0b192c8c 54%, #0b192c22 76%, #0b192c26);
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: var(--mast-height); color: white; background: #13263a;
}
.mast::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--shade); }
.mast-photo {
  position: absolute; z-index: -2; inset: 0 0 0 auto; width: 75%; height: 100%;
  object-fit: cover; object-position: var(--photo-position);
}
.mast-about { --photo-position: 56% 57%; }
.mast-aggregates { --photo-position: 58% 54%; }
.mast-business { --photo-position: 58% 52%; }
.mast-equipment { --photo-position: 60% 46%; }
.mast-projects { --photo-position: 60% 57%; }
.mast-projects .mast-inner { padding-block: 12px; }
.mast-projects .mast-panel {
  width: fit-content; max-width: 100%;
  padding: clamp(18px, 2vw, 28px) clamp(22px, 2.7vw, 38px);
  border: 1px solid rgb(213 225 236 / 23%); border-radius: 22px;
  background: rgb(24 44 66 / 76%);
}
.mast-projects .mast-panel .mast-intro { max-width: none; text-wrap: pretty; }
.mast-location { --photo-position: 56% 45%; }
.mast-inner { position: relative; padding-block: 34px; }
.mast-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 11px;
  font: 650 .78rem/1.35 var(--display-font); letter-spacing: .18em; color: #e4c696;
}
.mast-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold); }
.mast h1 { font-size: clamp(40px, 3.35vw, 48px); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; }
.mast-intro { max-width: min(45%, 35rem); margin-top: 12px; font-size: 1.02rem; line-height: 1.62; color: #edf0f3; }
.mast-companies {
  background: repeating-linear-gradient(116deg, transparent 0 57px, #bdad872e 58px, #11223680 59px 71px),
              linear-gradient(115deg, #102235 30%, #374d60 57%, #5f7079 73%, #243b4c 94%);
}
.mast-contact {
  background: linear-gradient(136deg, transparent 54%, #ba9d654a 54.1%, transparent 54.25%),
              linear-gradient(136deg, transparent 66%, #a6b6c61c 66.1%, transparent 78%),
              linear-gradient(115deg, #0b192c 23%, #233950 66%, #334a5c);
}
.breadcrumb { color: #536170; background: #f7f8f8; border-bottom: 1px solid #dfe4e7; }
.breadcrumb .wrap { display: flex; align-items: center; gap: 12px; min-height: 37px; font-size: .79rem; }
.breadcrumb a { padding-block: 8px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-hidden] { color: #75828c; }
.breadcrumb [aria-current] { color: #344758; }

/* Region and site name stay together on a single native selection button. */
.visit-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 0 30px; }
.visit-choices button {
  display: grid; position: relative; gap: 4px; align-content: center;
  text-align: left; min-width: 0; padding: 18px 35px 19px 20px;
  border: 1px solid #cad2d8; background: white; line-height: 1.4;
}
.visit-choices button::after {
  content: ''; position: absolute; right: 17px; top: 23px; width: 7px; height: 7px;
  border: solid #7b8995; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
}
.visit-choices button:hover { border-color: #9a8258; }
.visit-choices button[aria-pressed="true"] {
  color: #fff; background: var(--navy); box-shadow: none; border-color: var(--navy);
  border-inline-start: 4px solid var(--gold); padding-inline-start: 17px;
}
.visit-choices button[aria-pressed="true"]::after { border-color: #e1c58f; transform: rotate(45deg); }
.visit-region-label { font: 650 .72rem/1.45 var(--display-font); letter-spacing: .1em; color: var(--gold-ink); }
.visit-choices strong { font-size: 1.34rem; }
.visit-site-name { font-size: .94rem; font-weight: 400; color: var(--muted-ink); }
[aria-pressed="true"] .visit-region-label { color: #e2c590; }
[aria-pressed="true"] .visit-site-name { color: #d9e0e8; }

@media (min-width: 1041px) {
  .nav > a[aria-current]:not(.nav-contact) { color: #f7f3e9; border-color: var(--gold); }
}
@media (max-width: 1040px) {
  .header-inner { min-height: 66px; padding-block: 10px; }
  .mast { --mast-height: 214px; }
  .mast h1 { font-size: 36px; }
  .mast-intro { max-width: 48%; }
  .header[data-menu-ready] .nav:not([hidden]) {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px;
    padding: 8px 0 10px; border-top: 1px solid #35465a;
  }
  .header[data-menu-ready] .nav a { min-height: 42px; display: flex; align-items: center; }
  .header[data-menu-ready] .nav .nav-contact { border-color: #746446; }
}
@media (max-width: 680px) {
  .mast {
    --mast-height: 185px;
    --shade: linear-gradient(90deg, #0b192cf7 0%, #0b192cee 26%, #0b192cdb 50%, #0b192c90 72%, #0b192c20);
  }
  .mast-photo { width: 88%; }
  .mast-projects .mast-panel { padding: 16px 18px; border-radius: 20px; }
  .mast-inner { padding-block: 23px 32px; }
  .mast h1 { font-size: clamp(26px, 5.9vw, 30px); }
  .mast-eyebrow { margin-bottom: 8px; gap: 9px; font-size: 12px; }
  .mast-eyebrow::before { width: 23px; }
  .mast-intro { max-width: min(73%, 27rem); margin-top: 9px; font-size: .9rem; line-height: 1.55; }
  .breadcrumb .wrap { min-height: 34px; }
  .visit-choices { gap: 8px; }
  .visit-choices button { padding-inline: 12px 20px; }
  .visit-choices button[aria-pressed="true"] { padding-inline-start: 9px; }
  .visit-choices button::after { right: 10px; }
  .footer .brand img { width: 125px; }
  .footer nav { gap: 4px 18px; }
}
@media (max-width: 520px) {
  .visit-choices { grid-template-columns: minmax(0,1fr); margin-bottom: 23px; }
  .visit-choices button { grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 10px 32px 12px 14px; }
  .visit-choices button[aria-pressed="true"] { padding-inline-start: 11px; }
  .visit-region-label { grid-column: 1/-1; }
  .visit-choices strong { font-size: 1.12rem; }
  .visit-choices button::after { right: 16px; }
  .footer-inner { display: grid; }
  .section-title { gap: 8px 18px; }
}

.home-services.section { padding-block: clamp(28px, 3.4vw, 50px); }
.home-services .section-title { margin-bottom: clamp(16px, 1.6vw, 24px); }
.service-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.service-card {
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
  background: var(--navy); color: white;
}
.service-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d8dcdf; }
.service-photo img { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform .22s ease-out; }
.service-name {
  display: grid; place-items: center; padding: 11px 6px 10px;
  border-bottom: 2px solid transparent; text-align: center;
  font-size: clamp(.92rem, 1.12vw, 1.06rem); font-weight: 700; line-height: 1.4; word-break: keep-all;
}
.service-card:focus-visible .service-name { border-color: var(--gold); }
@media (hover: hover) {
  .service-card:hover img { transform: scale(1.035); }
  .service-card:hover .service-name { border-color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .service-photo img { transition: none; }
  .service-card:hover img { transform: none; }
}

#companies .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
#companies .company { padding: clamp(18px, 2vw, 28px); }
#companies .company h3 { font-size: clamp(1.22rem, 1.7vw, 1.5rem); }
.company-fields { margin: 0; display: grid; gap: 0 18px; }
.company-fields > div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 8px; align-content: start; }
.company-fields dt { font-weight: 700; }
.company-fields dd { margin: 0; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; min-width: 0; }
.company-fields dd a { text-decoration: underline; text-underline-offset: .18em; }
#companies .company-fields { margin-top: 15px; font-size: .94rem; line-height: 1.5; }
#companies .company-fields > div { border-top: 1px solid #e3e7e9; padding-block: 7px; }
#companies .company-fields dt { color: #455667; }
#companies .company-fields .pending { color: #65727d; }
#companies .company-fields [data-field="business"] { margin-bottom: 6px; border: 0; padding-top: 0; }

.footer { padding-block: 28px 20px; }
.footer .footer-inner { display: flex; align-items: center; gap: 12px 24px; padding-bottom: 17px; }
.footer-company { border-top: 1px solid #354152; padding-top: 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 28px; }
.footer-company h2 { font-weight: 700; font-size: 1.12rem; color: #f5f7f9; line-height: 1.6; }
.footer .company-fields { font-weight: 400; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 18px; font-size: .88rem; line-height: 1.55; }
.footer .company-fields > div { display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: baseline; }
.footer .company-fields [data-field="address"] { grid-column: 1 / -1; }
.footer .company-fields dt { font-weight: 400; color: #bbcad7; }
.footer .company-fields dd { color: #f2f4f6; }
.footer .company-fields .pending { color: #a9b8c5; }
.footer .copyright { border: 0; margin-top: 16px; padding-top: 0; }
@media (max-width: 1040px) {
  .service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .footer-company { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #companies .company-grid { grid-template-columns: minmax(0, 1fr); }
  .footer .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer nav { gap: 0 18px; }
  .footer nav a { min-height: 34px; }
  .footer .company-fields { font-weight: 400; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
}
@media (max-width: 420px) {
  .footer .company-fields { font-weight: 400; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .footer .company-fields > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; }
}
