/* KRES local concept: fieldwork photography, clear technical hierarchy. */
:root {
  --concept-navy: #062b40;
  --concept-deep: #031d2e;
  --concept-gold: #e6a91f;
  --concept-paper: #f7f9f8;
  --concept-ice: #e9f1f4;
  --concept-line: #cbd9df;
  --concept-muted: #526b79;
}

body { color: var(--concept-navy); background: var(--concept-paper); }
.wrap { width: min(1320px, calc(100% - 96px)); }
.topbar { background: var(--concept-deep); }
.topbar .wrap { min-height: 32px; }
.header { border-bottom: 1px solid var(--concept-line); box-shadow: none; }
.nav-wrap { height: 88px; }
.header nav a { font-size: 13px; }
.header nav .nav-cta { background: var(--concept-gold); border-color: var(--concept-gold); color: var(--concept-deep); }
.header nav .nav-cta:hover { color: var(--concept-deep); background: #f1be45; }

/* The first screen reads as an architectural cover, with an actual KRES work image. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 690px;
  background: var(--concept-paper);
  color: var(--concept-navy);
  overflow: visible;
}
.hero-copy {
  width: auto;
  min-height: 690px;
  margin: 0;
  padding: 90px 60px 70px max(48px, calc((100vw - 1320px) / 2));
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-copy::before {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--concept-gold);
  opacity: 1;
}
.hero .eyebrow { color: #85600f; font-size: 12px; letter-spacing: .12em; }
.hero .eyebrow span { background: var(--concept-gold); }
.hero h1 {
  max-width: 700px;
  margin: 34px 0 0;
  font-size: clamp(48px, 4.2vw, 68px);
  line-height: 1.23;
  letter-spacing: -.035em;
  color: var(--concept-navy);
}
.hero h1 em { color: #a5750c; }
.hero p { max-width: 590px; margin: 28px 0 0; color: #425b69; font-size: 17px; line-height: 1.85; }
.hero .actions { margin-top: 39px; gap: 24px; }
.hero .button.gold { background: var(--concept-navy); color: #fff; }
.hero .button.gold:hover { background: #184861; }
.hero .text-link { color: var(--concept-navy); border-color: #8296a0; }
.hero-foot { color: #617988; margin-top: 50px; }
.hero-visual { position: relative; inset: auto; z-index: 0; min-height: 690px; border: 0; }
.hero-visual picture img { object-position: center 54%; }
.hero-visual::after { inset: 55% 0 0; background: linear-gradient(transparent, #031d2ebd); }
.hero-visual .image-caption {
  right: 36px;
  bottom: 34px;
  max-width: 320px;
  background: #062b40e8;
  border-left: 4px solid var(--concept-gold);
  padding: 14px 20px;
  color: #fff;
}
.hero-visual .image-caption strong { font-size: 14px; }

.trust {
  width: 100%;
  margin: 0;
  padding: 0 max(48px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--concept-navy);
  border: 0;
  box-shadow: none;
  color: white;
}
.trust > div, .trust > div:first-child { padding: 26px 30px; border-color: #ffffff30; }
.trust > div:first-child { padding-left: 0; }
.trust strong { color: #fff; font-size: 17px; }
.trust b { color: #f5c253; }
.trust span { color: #c3d4dc; font-size: 12px; }

/* Every service photo remains visible, and every card keeps its gallery action. */
#services.section {
  display: block;
  padding-top: 108px;
  padding-bottom: 118px;
}
#services > .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  padding: 0;
  margin: 0 0 42px;
}
#services .section-heading h2 { font-size: clamp(36px, 3.6vw, 55px); }
#services .section-heading > p { max-width: 370px; margin: 0 0 5px; }
#services .services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  box-shadow: none;
  width: 100%;
}
.services > .service,
.services > .service:last-of-type {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  background: white;
  border: 1px solid var(--concept-line);
  box-shadow: none;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.services > .service:hover,
.services > .service:focus-visible { background: white; border-color: #8caab7; transform: translateY(-4px); box-shadow: 0 13px 26px #082b4614; }
.services > .service.featured,
.services > .service.featured:hover,
.services > .service.featured:focus-visible { background: white; border-color: var(--concept-line); }
.services > .service .service-image { display: block; aspect-ratio: 16 / 10; background: var(--concept-ice); }
.services > .service .service-image img { object-fit: cover; }
.services > .service .service-image:has(img[src="/assets/service-panel-complete.jpg"]) img { object-fit: contain; }
.services > .service .service-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 26px 27px 27px;
  flex: 1;
  gap: 0;
}
.services > .service .service-body::after { display: none; }
.services > .service h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.44; color: var(--concept-navy); }
.services > .service p { display: block; margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--concept-muted); }
.services > .service .service-en { display: block; margin-top: auto; font-size: 10px; color: #86631b; }
.services > .service .service-cue { background: var(--concept-gold); color: var(--concept-navy); }

/* Portfolio images are presented in full rather than buried under dark overlays. */
#projects {
  width: 100%;
  max-width: none;
  background: var(--concept-ice);
  padding: 105px max(48px, calc((100vw - 1320px) / 2)) 112px;
}
#projects .section-heading { max-width: 1320px; margin: 0 auto 42px; }
#projects .projects {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 18px;
}
#projects .project,
#projects .project:first-child,
#projects .project:nth-child(n+4) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  grid-row: auto;
  grid-column: auto;
  border: 1px solid var(--concept-line);
  background: white;
}
#projects .project::after { display: none; }
#projects .project-img,
#projects .project:nth-child(n+4) .project-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 330px;
  padding: 12px;
  background: #e1e9ec;
}
#projects .project-img img,
#projects .project:nth-child(2) .project-img img { object-fit: contain; padding: 0; }
#projects .project figcaption {
  position: relative;
  inset: auto;
  z-index: auto;
  flex: 1;
  max-height: none;
  overflow: visible;
  color: var(--concept-navy);
  background: white;
  padding: 24px 27px 26px;
}
#projects .project figcaption > span { color: #8a6616; }
#projects .project h3 { color: var(--concept-navy); font-size: 21px; margin: 8px 0; }
#projects .project figcaption > p,
#projects .project:not(:first-child) figcaption > p { display: block; color: var(--concept-muted); font-size: 14px; }
#projects .project-details { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--concept-line); color: var(--concept-navy); }
#projects .project-details summary { color: var(--concept-navy); font-size: 13px; min-height: 34px; }
#projects .project-details[open] { background: none; padding: 14px 0 0; margin: 18px 0 0; }
#projects .project-details p, #projects .project-details h4 { color: var(--concept-muted) !important; font-size: 13px; }

.about { background: var(--concept-deep); }
.about-grid { gap: 90px; padding-top: 112px; padding-bottom: 118px; }
.about-statement { border-color: var(--concept-gold); }
.about-statement h2 { font-size: clamp(38px, 3.6vw, 55px); }
.about-copy { border-left: 1px solid #ffffff3b; padding: 10px 0 0 48px; }
.about-copy h3 { max-width: 620px; font-size: 31px; }
.about-text p { font-size: 15px; }

.process { padding: 105px 0 112px; background: #fff; }
.process h2 { font-size: clamp(36px, 3.6vw, 54px); }
.process .steps { gap: 15px; border: 0; }
.process .steps article,
.process .steps article:first-child {
  padding: 27px 26px 30px;
  border: 1px solid var(--concept-line);
  border-top: 4px solid var(--concept-gold);
  background: var(--concept-paper);
}
.process .steps article::before { display: none; }
.process .step-number { font-size: 26px; color: #9a7015; }
.process .steps h3 { margin-top: 20px; }
.process .steps p { line-height: 1.7; }

.profile-section { background: var(--concept-navy); border-top: 0; margin-top: 0; }
.faq-section { background: var(--concept-paper); }
.contact {
  background: var(--concept-gold);
  color: var(--concept-deep);
  padding-top: 105px;
  padding-bottom: 105px;
}
.contact h2, .contact h2 em { color: var(--concept-deep); }
.contact > div:first-child > p { color: #344c57; }
.contact-phones .phone { border-color: #062b4050; }
.contact-phones .phone-number, .contact-phones .phone-arrow { color: var(--concept-deep); }
.contact-phones .phone-contact-name { color: #4c3807; }
.contact-phones { grid-template-columns: minmax(0, 1fr); }
.contact-phones .phone {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}
.contact-phones .phone-number {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(28px, 3vw, 40px);
}
.contact-phones .phone-contact-name {
  grid-column: 1;
  grid-row: 2;
  padding-left: 0;
  font-size: clamp(16px, 1.7vw, 20px);
  overflow-wrap: break-word;
  word-break: normal;
}
.contact-phones .phone-contact-name:empty { display: none; }
.contact-phones .phone-contact-name:not(:empty)::before {
  position: static;
  margin-right: 6px;
}
.contact-phones .phone-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.contact .button.navy { background: var(--concept-deep); color: white; }
.contact .button.outline { border-color: var(--concept-deep); color: var(--concept-deep); }
.contact-info { border-top: 0; box-shadow: 14px 14px 0 #062b4025; }
.location-section { padding-top: 95px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 52%) minmax(0, 48%); }
  .hero-copy { padding-left: 38px; padding-right: 28px; }
  .hero h1 { font-size: clamp(39px, 4.8vw, 54px); }
  #services > .section-heading { display: block; }
  #services .section-heading > p { max-width: 660px; margin-top: 18px; }
  #services .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #projects .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 45px; }
  .about-copy { padding-left: 32px; }
  .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav-wrap { height: 75px; }
  .hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
  .hero-copy { width: 100%; min-height: 0; padding: 63px 24px 58px; }
  .hero-copy::before { width: 5px; }
  .hero h1 { font-size: clamp(39px, 9.3vw, 49px); line-height: 1.3; }
  .hero p { font-size: 15px; }
  .hero .actions { gap: 17px; }
  .hero-foot { margin-top: 32px; display: flex; }
  .hero-visual { position: relative; inset: auto; min-height: 340px; }
  .hero-visual picture img { object-position: center 55%; }
  .hero-visual::after { background: linear-gradient(transparent 55%, #031d2ec2); }
  .hero-visual .image-caption { right: 15px; bottom: 15px; }
  .trust { padding: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust > div, .trust > div:first-child { padding: 18px 12px; }
  .trust > div:first-child { padding-left: 0; }
  #services.section { padding-top: 72px; padding-bottom: 80px; }
  #services > .section-heading { display: block; margin-bottom: 30px; }
  #services .section-heading > p { margin-top: 18px; }
  #services .services { grid-template-columns: 1fr; gap: 16px; }
  .services > .service .service-body { padding: 22px 23px 25px; }
  .services > .service h3 { font-size: 21px; }
  .services > .service p { font-size: 14px; }
  #projects { padding: 74px 18px 82px; }
  #projects .projects { grid-template-columns: 1fr; gap: 16px; }
  #projects .project,
  #projects .project:first-child,
  #projects .project:nth-child(n+4) { min-height: 0; }
  #projects .project-img { height: 300px; }
  .about-grid { padding-top: 75px; padding-bottom: 80px; }
  .about-copy { border-left: 0; padding: 0; }
  .process { padding: 75px 0 82px; }
  .process .steps { grid-template-columns: 1fr; gap: 12px; }
  .process .steps article,
  .process .steps article:first-child { padding: 22px 24px 24px; }
  .contact { padding: 76px 18px 84px; }
  .contact-info { box-shadow: 8px 8px 0 #062b4025; }
  .location-section { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .services > .service { transition: none; }
}
#service-gallery .gallery-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#service-gallery #gallery-autoplay { font-size: 18px; font-weight: 700; }
#service-gallery .gallery-header-actions button:focus-visible,
#service-gallery .gallery-stage button:focus-visible { outline: 3px solid #f2b81b; outline-offset: 3px; }
#service-gallery #gallery-autoplay[hidden] { display: none; }
@media (max-width: 600px) { #service-gallery #gallery-photo { height: 38dvh; } }
#services .slideshow-toggle, #projects .slideshow-toggle {
 display: flex; align-items: center; gap: 9px; margin: -20px 0 22px auto;
 padding: 8px 12px; min-height: 40px; border: 1px solid #cfd8df;
 border-radius: 4px; background: #fff; color: #0b2d4a; cursor: pointer;
 font: inherit; font-size: 12px; font-weight: 600;
}
#services .slideshow-toggle:hover, #projects .slideshow-toggle:hover { border-color: #a47513; }
#services .slideshow-toggle:focus-visible, #projects .slideshow-toggle:focus-visible { outline: 3px solid #f2b81b; outline-offset: 3px; }
@media (max-width: 600px) { #services .slideshow-toggle, #projects .slideshow-toggle { margin: 0 0 18px auto; } }
