/* ER-EMEK / Corporate identity. Palette tokens are defined in modern.css. */
@import url('type.r2.1b11a75bef84.css');
@import url('projects.r2.d251ed222921.css');
@import url('services.r2.a708faa0a0f6.css');

:root {
  --radius: 0px;
  --display-font: 'Instrument Serif', Georgia, serif;
  --body-font: 'Manrope', 'Segoe UI', Arial, sans-serif;
}
html { scroll-padding-top: 110px; }
body.modern-site { padding-top: 96px; font-family: var(--body-font); background: var(--paper); line-height: 1.8; }
.modern-site h1, .modern-site h2, .modern-site h3 { font-family: var(--body-font); font-weight: 500; }
.modern-site h1, .modern-site h2 { letter-spacing: -2px; }
.modern-site h1 em, .modern-site h2 em { font-family: var(--display-font); font-weight: 400; }
.modern-site .container { width: min(1320px, calc(100% - 120px)); }
/* Legacy Bootstrap clearfix elements must not occupy flex/grid cells. */
.modern-site .container::before, .modern-site .container::after { content: none; display: none; }
.modern-site ::selection { background: var(--brand-red); color: var(--white); }
.modern-site .button { min-height: 54px; padding: 17px 24px; font-weight: 600; font-size: 13px; border-radius: 2px; gap: 32px; }
.modern-site .button:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); transform: none; }
.modern-site .button > span { font-size: 20px; font-weight: 400; line-height: 1; transition: transform .25s; }
.modern-site .button:hover > span { transform: translate(2px, -2px); }
.modern-site .button.outline:hover { background: var(--ink); border-color: var(--ink); }
.modern-site .eyebrow, .modern-site .studio-eyebrow, .modern-site .build-kicker { display: block; font-size: 11px; line-height: 1.6; letter-spacing: 1.8px; font-weight: 600; color: var(--brand-red); margin: 0 0 24px; }
.modern-site .editorial-link, .studio-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 10px 0; font-size: 12px; font-weight: 600; letter-spacing: .3px; border-bottom: 1px solid var(--line-strong); }
.modern-site .editorial-link > span, .studio-link > span { font-size: 22px; font-weight: 400; color: var(--brand-red); }
.modern-site .editorial-link:hover, .studio-link:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* A light, compact navigation becomes transparent over the home photograph. */
.modern-site .site-header { position: fixed; inset: 0 0 auto; background: #fffffff5; color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); transition: background .25s, border-color .25s, color .25s; }
.modern-site .header-inner { min-height: 96px; gap: 25px; padding-block: 13px!important; }
.modern-site .brand.full-brand { display: flex; gap: 0; line-height: 1; flex-shrink: 0; }
.modern-site .brand.full-brand .brand-logo { width: 218px; height: auto; max-width: 100%; }
.modern-site .site-header .brand-logo { content: url('../images/brand-a/er-emek-logo-on-light.svg'); }
.modern-site .site-nav { gap: 25px; font-size: 12px; font-weight: 550; }
.modern-site .site-nav > a:not(.button) { position: relative; color: inherit; padding-block: 13px; }
.modern-site .site-nav > a:not(.button):after { content: ''; position: absolute; height: 1px; bottom: 7px; left: 0; width: 0; background: currentColor; transition: width .25s; }
.modern-site .site-nav > a:hover:after, .modern-site .site-nav > a[aria-current]:after { width: 100%; }
.modern-site .site-nav .button.small { margin-left: 12px; padding: 13px 20px; min-height: 48px; gap: 24px; font-size: 12px; }
.modern-site .menu-toggle { color: inherit; border-color: var(--control-border); min-width: 77px; min-height: 44px; font-size: 12px; border-radius: 0; }
.modern-site .site-nav a:focus-visible { outline-offset: 2px; }

/* Interior page headings share the same typography and quiet architectural grid. */
.modern-site .page-intro { position: relative; overflow: hidden; background: var(--sand); color: var(--ink); padding: 44px 0 80px; border-bottom: 1px solid var(--line); }
.modern-site .page-intro:after { content: ''; position: absolute; right: 7%; top: 0; width: 25%; height: 100%; border-inline: 1px solid #17171712; transform: skewX(-22deg); pointer-events: none; }
.modern-site .page-intro .container { position: relative; z-index: 1; }
.modern-site .page-intro h1 { max-width: 1000px; font-size: clamp(36px, 4.5vw, 64px); font-weight: 500; line-height: 1.15; }
.modern-site .page-intro p { max-width: 670px; font-size: 16px; margin-top: 24px; color: var(--muted); }
.modern-site .page-intro .breadcrumb { font-size: 11px; color: var(--muted); margin-bottom: 36px; letter-spacing: .3px; }
.modern-site .page-intro .eyebrow { color: var(--brand-red); margin-bottom: 22px; }
.editorial-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 45px; }
.editorial-heading > p { max-width: 360px; font-size: 15px; }
.modern-site .editorial-heading h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; }
.modern-site .section { padding-block: 85px; }
.modern-site .article-copy p, .modern-site .about-grid p { font-size: 15px; line-height: 1.95; }
.modern-site .article-copy h2 { font-size: 29px; font-weight: 500; line-height: 1.3; }
.modern-site .contact-card { background: var(--sand); border-top: 2px solid var(--brand-red); padding: 32px; border-radius: 0; }
.modern-site .service-context { font-size: 12px; }
.modern-site .service-page-nav { gap: 12px 30px; }
.modern-site .service-page-nav a { font-size: 12px; min-height: 44px; }
.modern-site .service-evidence { margin-block: 30px 45px; }
.modern-site .service-evidence img { max-height: 520px; }
.modern-site .service-evidence figcaption { font-size: 11px; padding: 15px 18px; }
.modern-site .service-scope-list article { padding-top: 28px; margin-top: 28px; }
.modern-site .service-step-list li { background: var(--sand); padding: 24px; }

/* Service directory — readable categories and a compact, useful search. */
.modern-site .service-directory-top h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -1.3px; }
.modern-site .service-finder { background: var(--sand); padding: 25px 30px; border: 1px solid var(--line); }
.modern-site .service-finder label { font-size: 12px; max-width: 700px; }
.modern-site .service-finder input { min-height: 54px; border-color: var(--control-border); padding-inline: 17px; border-radius: 2px; }
.modern-site .service-group-nav { gap: 8px; margin-bottom: 60px; }
.modern-site .service-group-nav a { font-size: 12px; padding: 12px 17px; min-height: 46px; background: #fff; border-color: var(--line); }
.modern-site .service-group-nav a:hover { background: var(--ink); color: white; border-color: var(--ink); }
.modern-site .service-category-heading { padding-top: 35px; margin-bottom: 30px; gap: 22px; }
.modern-site .service-category-heading > span { color: var(--brand-red); font-size: 13px; }
.modern-site .service-category-heading h2 { font-size: 30px; font-weight: 500; }
.modern-site .service-category-heading p { font-size: 14px; }
.modern-site .catalog-grid { gap: 20px; }
.modern-site .catalog-entry { position: relative; padding: 30px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--line-strong); transition: border-color .25s, background .25s; }
.modern-site .catalog-entry:hover { transform: none; background: var(--surface-subtle); border-color: var(--line-strong); border-top-color: var(--brand-red); }
.modern-site .catalog-entry-kind { font-size: 10px; letter-spacing: 1px; margin-bottom: 27px; color: var(--brand-red); }
.modern-site .catalog-entry h3 { font-size: 24px; font-weight: 500; line-height: 1.3; }
.modern-site .catalog-entry p { font-size: 14px; line-height: 1.9; }
.modern-site .catalog-entry-link { min-height: 44px; font-size: 12px; }
.modern-site .service-total { color: var(--muted); }

/* Project archive: photographs are previews; the dialog preserves the full frame. */
.modern-site .work-gallery { gap: 45px 28px; }
.modern-site .work-gallery .work-photo { aspect-ratio: 4 / 3; background: var(--sand); }
.modern-site .work-gallery .work-photo img { object-fit: cover; transition: transform .4s; }
.modern-site .work-gallery .work-photo:hover img { transform: scale(1.035); }
.modern-site .work-caption > span, .modern-site .work-preview > span { font-size: 10px; letter-spacing: 1.3px; }
.modern-site .work-caption h2 { font-size: 21px; line-height: 1.4; font-weight: 500; }
.modern-site .work-filters button { font-family: var(--body-font); padding: 12px 16px; font-size: 12px; }
.modern-site .photo-dialog { border: 1px solid var(--dark-line); padding: 24px 28px; background: var(--dark-surface); }
.modern-site .photo-dialog button { border-color: var(--control-border); background: transparent; border-radius: 0; }
.modern-site .photo-dialog button:hover { background: var(--brand-red); }
.modern-site .photo-dialog-caption h2 { font-size: 22px; }
.modern-site .photo-enlarged { max-width: 100%; }

/* Closing invitation and footer. */
.modern-site .project-cta { padding-block: 70px; color: var(--white); background: var(--brand-red); }
.modern-site .project-cta h2 { font-size: clamp(34px, 4.5vw, 64px); font-weight: 500; letter-spacing: -2px; }
.modern-site .project-cta .eyebrow { color: var(--white); }
.modern-site .project-cta .button.light { background: #fff; color: var(--ink); padding: 20px 28px; }
.modern-site .project-cta .button.light:hover { background: var(--sand); border-color: var(--sand); }
.modern-site .project-cta a:focus-visible { outline-color: white; }
.modern-site .site-footer { position: relative; background: var(--dark-deep); padding-top: 80px; }
.modern-site .site-footer .brand-logo { width: 240px; }
.modern-site .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 80px; }
.modern-site .site-footer p { font-size: 13px; color: var(--muted-on-dark); line-height: 1.95; }
.modern-site .site-footer h2 { font-size: 12px; letter-spacing: .8px; color: var(--white); margin-bottom: 24px; }
.modern-site .footer-grid > div > a:not(.brand) { font-size: 13px; padding-block: 7px; color: var(--muted-on-dark); }
.modern-site .footer-grid > div > a:not(.brand):hover { color: white; }
.modern-site .footer-grid .footer-phone { font-size: 25px!important; letter-spacing: -.6px; color: #fff!important; }
.modern-site .footer-bottom-new { border-top-color: var(--dark-line); margin-top: 65px; padding-block: 23px; font-size: 11px; color: var(--muted-on-dark); }
.footer-signature { overflow: hidden; border-top: 1px solid var(--dark-line); margin-top: 50px; padding-top: 32px; }
.footer-signature > span { display: block; color: #ffffff1f; font-size: clamp(60px, 15.6vw, 225px); font-weight: 650; letter-spacing: -.075em; line-height: 1; white-space: nowrap; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.location-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 1200px) {
  .modern-site .container { width: calc(100% - 80px); }
  .modern-site .site-nav { gap: 17px; }
  .modern-site .site-nav .button.small { margin-left: 0; padding-inline: 16px; }
  .modern-site .site-header .brand.full-brand .brand-logo { width: 195px; }
  .modern-site .footer-grid { gap: 45px; }
}
@media (max-width: 1050px) {
  body.modern-site { padding-top: 82px; }
  .modern-site .header-inner { min-height: 82px; padding-block: 13px!important; gap: 0 16px; }
  .modern-site .site-header .brand.full-brand .brand-logo { width: 200px; }
  .modern-site .site-nav { width: 100%; background: var(--paper); color: var(--ink); margin-top: 13px; padding: 13px 0 8px; gap: 0; border-color: var(--line); }
  .modern-site .site-nav > a:not(.button) { font-size: 15px; }
  .modern-site .site-nav > a:not(.button):after { display: none; }
  .modern-site .site-nav a[aria-current] { color: var(--brand-red); }
  .js .modern-site .site-nav.is-open { max-height: calc(100dvh - 165px - env(safe-area-inset-bottom)); overflow-y: auto; }
  .modern-site .site-nav .button.small { margin-top: 12px; }
  .modern-site .section { padding-block: 65px; }
  .modern-site .catalog-entry { padding: 25px; }
  html:not(.js) .modern-site .site-header { position: relative; background: var(--paper); color: var(--ink); }
  html:not(.js) body.modern-site { padding-top: 0; }
  html:not(.js) .modern-site .menu-toggle { display: none; }
  html:not(.js) .modern-site .site-header .brand-logo { content: url('../images/brand-a/er-emek-logo-on-light.svg'); }
}
@media (max-width: 800px) {
  .modern-site .container { width: calc(100% - 48px); }
  .modern-site .page-intro { padding-bottom: 55px; }
  .modern-site .page-intro h1 { letter-spacing: -1.6px; }
  .editorial-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .modern-site .catalog-entry h3 { font-size: 22px; }
}
@media (max-width: 760px) {
  body.modern-site { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
  .modern-site .mobile-contact { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; position: fixed; inset: auto 0 0; z-index: 110; background: var(--paper, #fff); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #1717170a; }
  .modern-site .mobile-contact a { width: auto; min-width: 0; min-height: 57px; display: flex; justify-content: center; align-items: center; font-size: 11px; font-weight: 650; padding: 12px 6px; color: var(--ink); background: var(--paper); }
  .modern-site .mobile-contact a[href*="wa.me"] { color: var(--ink); border-inline: 1px solid var(--line); }
  .modern-site .mobile-contact a:last-child { background: var(--brand-red); color: #fff; }
  .modern-site .mobile-contact a:focus-visible { outline-offset: -5px; outline-color: var(--ink); }
  .modern-site .site-footer { padding: 55px 0 0; }
  .modern-site .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .modern-site .footer-grid > div:first-child { grid-column: 1 / -1; }
  .modern-site .project-cta .container { align-items: flex-start; flex-direction: column; }
  .modern-site .service-group-nav { margin-bottom: 40px; }
  .modern-site .work-gallery { gap: 35px 20px; }
}
@media (max-width: 500px) {
  .modern-site .container { width: calc(100% - 40px); }
  .modern-site .site-header .brand.full-brand .brand-logo { width: 172px; }
  .modern-site .menu-toggle { padding: 9px 11px; }
  .modern-site .page-intro { padding: 26px 0 42px; }
  .modern-site .page-intro h1 { font-size: 34px; letter-spacing: -1.3px; }
  .modern-site .page-intro p { font-size: 14px; }
  .modern-site .page-intro .breadcrumb { margin-bottom: 25px; }
  .modern-site .eyebrow, .modern-site .studio-eyebrow, .modern-site .build-kicker { font-size: 10px; letter-spacing: 1.4px; }
  .modern-site .section { padding-block: 50px; }
  .modern-site .service-finder { padding: 22px; }
  .modern-site .service-group-nav a { font-size: 11px; padding: 11px 12px; }
  .modern-site .service-category-heading h2 { font-size: 25px; }
  .modern-site .catalog-entry { padding: 26px; }
  .modern-site .catalog-entry h3 { font-size: 25px; }
  .modern-site .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .modern-site .footer-bottom-new { flex-direction: column; gap: 12px; margin-top: 40px; }
  .modern-site .photo-dialog { padding: 15px; }
  .modern-site .photo-dialog-caption h2 { font-size: 19px; }
  .footer-signature { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modern-site *, .modern-site *:before, .modern-site *:after { animation: none!important; transition: none!important; }
}
