/* KRES visual system: precise framing, real project photography, restrained gold. */
:root {
  --navy: #082b46;
  --ink: #102c42;
  --gold: #efb723;
  --muted: #52697a;
  --line: #d5e0e6;
  --paper: #f7f9fa;
}

html { scroll-padding-top: 100px; }
body { color: var(--ink); background: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.topbar { background: #061e31; color: #d7e2e9; }
.topbar .wrap { min-height: 34px; }
.topbar strong { color: #f8ca55; }
.header { box-shadow: 0 6px 24px #082b460a; }
.nav-wrap { height: 86px; }
.brand img { width: 172px; height: 64px; }
.header nav { gap: 27px; }
.header nav a { position: relative; font-weight: 600; }
.header nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.header nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { background: var(--navy); color: white; border-color: var(--navy); }
.header nav .nav-cta:hover { color: white; background: #174461; }
.language-switcher { border-left: 1px solid var(--line); padding-left: 14px; }

.hero {
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  min-height: 660px;
  background: var(--navy);
}
.hero-copy {
  position: relative;
  padding-top: 82px;
  padding-bottom: 62px;
  padding-right: 54px;
  isolation: isolate;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .26;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), #84a5b8 calc(100% - 1px));
  background-size: 72px 100%;
  pointer-events: none;
}
.hero .eyebrow { color: #f0c955; margin-bottom: 31px; }
.hero h1 {
  max-width: 700px;
  font-size: clamp(40px, 3.9vw, 63px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.025em;
}
.hero h1 em { color: #f8c83c; }
.hero p { max-width: 560px; margin: 28px 0 38px; color: #d9e6ed; line-height: 1.85; }
.hero .actions { gap: 28px; }
.button { min-height: 52px; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.button.gold { background: var(--gold); color: #09253b; }
.button.gold:hover { background: #ffd257; }
.button.navy:hover { background: #174461; }
.hero .text-link { color: #e5eef3; border-color: #a0b5c2; }
.hero-foot { color: #c4d7e2; }
.hero-visual { min-height: 660px; border-left: 1px solid #ffffff21; }
.hero-visual picture img { object-position: 50% center; }
.hero-visual::after { inset: 44% 0 0; background: linear-gradient(transparent, #061d31d9); }
.image-caption { left: 40px; right: 40px; bottom: 42px; }
.image-caption strong { font-size: 24px; font-weight: 600; }
.image-caption a { border-color: #e0ecf3; background: #061e3180; }

.trust {
  position: relative;
  z-index: 2;
  margin-top: -31px;
  padding: 28px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px #0b2a4012;
}
.trust > div { padding: 0 34px; border-color: var(--line); }
.trust > div:first-child { padding-left: 34px; }
.trust strong { color: var(--navy); font-size: 18px; }
.trust b { font-size: 29px; }
.trust span { color: var(--muted); }

.section { padding-top: 105px; padding-bottom: 105px; }
.section-heading { gap: 70px; margin-bottom: 42px; }
.section-heading > div { max-width: 780px; }
.section-heading > p { max-width: 360px; color: var(--muted); line-height: 1.85; }
.eyebrow { color: #846211; letter-spacing: 1.25px; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(32px, 3.35vw, 48px); line-height: 1.34; }

.services { gap: 20px; }
.service {
  border: 1px solid #d5e0e6;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service:hover, .service:focus-visible { border-color: #a1bac9; box-shadow: 0 14px 32px #0d344b12; }
.service-image { position: relative; aspect-ratio: 16/10; background: #e7edf1; }
.service-image::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #061d3161);
  pointer-events: none;
}
.service-image img { transition: transform .35s ease; }
.service:hover .service-image img { transform: scale(1.035); }
.service-image img[src="/assets/service-panel-complete.jpg"] { transform: none; }
.service-cue {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  font: 600 23px 'Manrope', sans-serif;
}
.service-body { padding: 27px 28px 30px; }
.service h3 { color: var(--navy); font-size: 21px; line-height: 1.45; }
.service p { font-size: 15px; line-height: 1.82; color: var(--muted); }
.service-en { color: #7b6121; font-size: 10px; letter-spacing: .8px; }
.service.featured { border-color: var(--navy); background: var(--navy); }
.service.featured h3, .service.featured .service-en { color: #fff; }
.service.featured p { color: #d4e0e8; }

.about { border-top: 5px solid var(--gold); background: #082b46; }
.about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 86px; padding-top: 100px; padding-bottom: 110px; }
.about-statement { align-self: start; position: sticky; top: 126px; }
.about-statement h2 { font-size: clamp(35px, 3.15vw, 48px); line-height: 1.4; }
.about .eyebrow { color: #f0c955; }
.since { border-top: 1px solid #ffffff45; padding-top: 32px; margin-top: 55px; }
.since strong { color: #f6c438; letter-spacing: -.05em; }
.since strong span { font-size: .58em; margin-left: 12px; }
.about-copy { border-left: 1px solid #ffffff37; padding: 7px 0 0 48px; }
.about-copy .mini-label { color: #bed2df; }
.about-copy h3 { margin: 18px 0 30px; font-size: 30px; line-height: 1.48; }
.about-text { max-width: 720px; }
.about-text p { margin: 0 0 22px; font-size: 15px; line-height: 1.95; color: #d5e2eb; }
.values { gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 25px; }
.values span { border: 1px solid #d9bf6f7a; padding: 5px 12px; color: #f2cf66; }
.about-copy .text-link { display: inline-block; margin-top: 16px; color: #f8d16c; border-color: #c4ab63; }

#projects { padding-bottom: 115px; }
.projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.project { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.project-img { height: 280px; padding: 9px; background: #e8eef1; }
.project img { object-fit: contain; }
.project figcaption { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project h3 { color: var(--navy); font-size: 20px; line-height: 1.4; }
.project figcaption > p { font-size: 14px; line-height: 1.7; }
.project-details { margin-top: auto; padding-top: 22px; }
.project-details summary { min-height: 44px; }
.project-gallery-button { min-height: 44px; font-weight: 600; border-color: #adc4d1; }
.project-gallery-button:hover { background: #edf3f6; }

.process { background: #edf3f5; padding: 90px 0 100px; }
.process .eyebrow { color: #846211; }
.process h2 { max-width: 800px; font-size: clamp(34px, 3.5vw, 49px); }
.steps { margin-top: 52px; }
.steps article { padding: 0 16px; }
.steps article:not(:last-child)::after { top: 66px; background: #c5d5dd; }
.step-node { width: 132px; height: 132px; border: 1px solid #91acbb; }
.step-node svg { width: 73px; height: 73px; }
.step-number { background: var(--gold); border-radius: 0; left: -7px; top: -7px; width: 38px; height: 38px; font-size: 16px; }
.steps h3 { color: var(--navy); font-size: 18px; }
.steps p { color: #496174; font-size: 14px; }

.profile-section { margin-top: 85px; padding: 48px 54px; border-left: 5px solid var(--gold); }
.profile-section h2 { font-size: clamp(26px, 2.8vw, 36px); }
.faq-section { gap: 90px; }
.faq-item { padding: 19px 0; }
.faq-item summary { font-size: 17px; }

.contact { gap: 65px; border-top: 1px solid var(--line); }
.contact h2 { color: var(--navy); font-size: clamp(38px, 3.7vw, 52px); }
.contact h2 em { color: #a3740b; }
.contact-phones .phone { border-bottom: 1px solid var(--line); }
.contact-info { align-self: start; background: var(--paper); border: 1px solid var(--line); padding: 36px 38px; }
.contact-info h3 { color: var(--navy); }
.location-section { padding-top: 52px; gap: 56px; }
.location-map { min-height: 390px; border: 1px solid var(--line); }
footer { background: #061e31; border-top: 4px solid var(--gold); }

@media (max-width: 1150px) {
  .header #navigation { gap: 18px; }
  .hero { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
  .hero-copy { padding-right: 30px; }
  .about-grid { gap: 46px; }
  .about-copy { padding-left: 34px; }
  .contact { gap: 35px; }
}

@media (max-width: 1000px) {
  .nav-wrap { height: 80px; }
  .hero, .hero-visual { min-height: 590px; }
  .hero h1 { font-size: clamp(35px, 4.3vw, 47px); }
  .hero-copy { padding-top: 60px; }
  .trust > div { padding: 0 20px; }
  .trust > div:first-child { padding-left: 20px; }
  .services { gap: 14px; }
  .service-body { padding: 22px; }
  .projects { gap: 14px; }
  .project figcaption { padding: 19px; }
  .project-img { height: 235px; }
  .step-node { width: 116px; height: 116px; }
  .steps article:not(:last-child)::after { top: 58px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 80px; }
  .nav-wrap { height: 76px; }
  .brand img { width: 122px; height: 54px; }
  .language-switcher { padding-left: 6px; border-left: 0; }
  .header #navigation { top: 76px; }
  .header nav a:not(.nav-cta)::after { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { min-height: 475px; padding: 50px 25px 32px; }
  .hero-copy::before { background-size: 56px 100%; }
  .hero h1 { font-size: clamp(36px, 8.6vw, 48px); line-height: 1.34; }
  .hero p { margin: 23px 0 28px; }
  .hero .actions { gap: 16px; }
  .hero-visual { min-height: 300px; border-left: 0; }
  .hero-visual picture img { object-position: center 52%; }
  .image-caption { left: 24px; right: 24px; bottom: 24px; }
  .image-caption strong { font-size: 19px; }
  .trust { margin-top: 0; padding: 0; grid-template-columns: 1fr 1fr; box-shadow: none; border-top: 0; }
  .trust > div, .trust > div:first-child { padding: 18px 20px; }
  .trust > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust > div:nth-child(2) { border-right: 1px solid var(--line); }
  .trust > div:last-child { display: block; }
  .trust strong { font-size: 15px; }
  .trust b { font-size: 25px; }
  .trust span { font-size: 12px; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > p { margin-top: 18px; }
  .services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-body { padding: 20px; }
  .service h3 { font-size: 18px; }
  .service p { font-size: 13px; }
  .service-cue { right: 10px; bottom: 10px; width: 34px; height: 34px; font-size: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 70px; padding-bottom: 75px; }
  .about-statement { position: static; }
  .about-statement h2 { font-size: 34px; }
  .since { margin-top: 28px; padding-top: 20px; }
  .since strong { font-size: 68px; }
  .about-copy { border-left: 0; border-top: 1px solid #ffffff37; padding: 30px 0 0; }
  .about-copy h3 { font-size: 27px; }
  .about-text p { font-size: 15px; }
  .projects { grid-template-columns: 1fr; gap: 24px; }
  .project-img { height: 290px; }
  .process { padding: 70px 0; }
  .steps { gap: 26px; margin-top: 36px; }
  .steps article { padding: 0; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; }
  .step-node { width: 92px; height: 92px; }
  .step-node svg { width: 54px; height: 54px; }
  .steps article:not(:last-child)::after { left: 46px; top: 46px; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; }
  .profile-section { margin-top: 55px; padding: 33px 26px; }
  .faq-section { gap: 28px; }
  .contact { gap: 38px; }
  .contact-info { padding: 28px 25px; }
  .location-section { gap: 28px; }
  .location-map { min-height: 300px; }
}

@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; gap: 20px; }
  .service-body { padding: 24px; }
  .service h3 { font-size: 21px; }
  .service p { font-size: 15px; }
  .project-img { height: 275px; }
  .contact-phones .phone { padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .header nav a:not(.nav-cta)::after,
  .button,
  .service,
  .service-image img { transition: none; }
  .service:hover .service-image img { transform: none; }
}
