/*
 * PROTEON SECURITY 6.6 - RESPONSIVE POLISH
 * Only affects screens up to 767 CSS px (except the hidden default in style.css).
 * Retains theme identity, imagery, copy, Elementor page data and desktop design.
 * No pseudo browser chrome or AI-generated visuals.
 */
@media (max-width: 767px) {
  html { scroll-padding-top: 78px; }
  body.proteon-wordpress {
    overflow-x: clip;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
  }
  .proteon-wordpress .wrap { width: calc(100% - 40px); max-width: 100%; }
  .proteon-wordpress .header {
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid #e0e9f3;
    box-shadow: 0 3px 14px rgba(8,31,57,.055);
  }
  .proteon-wordpress .header-row { height: 66px; gap: 15px; }
  .proteon-wordpress .wordmark img { width: 150px; max-height: 48px; object-fit: contain; }
  .proteon-wordpress .menu-toggle { width: 44px; height: 43px; padding: 11px; border-radius: 8px; }
  .proteon-wordpress .mobile-links {
    max-height: calc(100dvh - 67px - env(safe-area-inset-bottom,0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline: 20px;
  }
  .proteon-wordpress .mobile-links.open { grid-template-columns: minmax(0,1fr); }
  .proteon-wordpress .mobile-links a:not(.proteon-park-menu) { min-height: 44px; display:flex; align-items:center; }

  /* Keep the same light Proteon hero and the original image; reveal the photo first on phones. */
  .proteon-wordpress .hero {
    color: #0b2545;
    background: linear-gradient(125deg,#f7fbff 0%,#f3f9ff 55%,#e8f2fc 100%);
    overflow: hidden;
  }
  .proteon-wordpress .hero .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
  }
  .proteon-wordpress .hero .hero-media {
    position: relative !important;
    display: block;
    left: auto !important;
    inset: auto !important;
    order: -1;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    min-height: 0 !important;
    height: clamp(215px,61vw,266px) !important;
    margin: 0 -20px !important;
    transform: none !important;
    overflow: hidden;
  }
  .proteon-wordpress .hero .hero-media img {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center 46% !important;
  }
  .proteon-wordpress .hero .hero-media::before {display:none!important;}
  .proteon-wordpress .hero .hero-copy {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 26px 0 30px;
  }
  .proteon-wordpress .hero .eyebrow {
    color: #155eb9;
    font-size: 9px;
    letter-spacing: .105em;
    line-height: 1.4;
    font-weight: 850;
  }
  .proteon-wordpress .hero .eyebrow .dot {background: #155eb9;}
  .proteon-wordpress .hero h1 {
    color: #082241 !important;
    font-size: clamp(33px,8.75vw,38px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.047em;
    font-weight: 840;
    margin: 12px 0 15px;
    max-width: 100%;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }
  .proteon-wordpress .hero h1 br { display:none!important; }
  .proteon-wordpress .hero h1 em {
    display: block;
    color: #155eb9 !important;
    white-space: nowrap;
    font-style: normal;
  }
  .proteon-wordpress .hero .hero-copy > p {
    color: #526a82 !important;
    font-size: 13.5px !important;
    line-height: 1.58;
    max-width: 42ch;
    margin: 0;
  }
  .proteon-wordpress .hero .action-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 19px;
    gap: 9px;
  }
  .proteon-wordpress .hero .action-row a.button {
    width: 100%;
    min-height: 49px;
    padding: 12px 16px;
    font-size: 12.5px;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: none;
    white-space: normal;
    transform: none;
  }
  .proteon-wordpress .hero .action-row a.button.primary {background: #155eb9; color: #fff;}
  .proteon-wordpress .hero .action-row a.button.outline {
    background: #fff;
    border-color: #acc6e6;
    color: #155eb9;
  }
  .proteon-wordpress .hero .action-row a.button:hover {transform: none;}
  .proteon-wordpress .hero .hero-proof {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px 10px;
    color: #38587c;
    margin-top: 17px;
  }
  .proteon-wordpress .hero .hero-proof span {
    min-width: 0;
    font-size: 10px;
    font-weight: 680;
    line-height: 1.5;
    color: #38587c;
  }
  .proteon-wordpress .hero .hero-caption {display:none;}

  /* Clean rhythm, headings, touch targets and text on interior pages. */
  .proteon-wordpress .section { padding-top: 52px; padding-bottom: 52px; }
  .proteon-wordpress .section-heading { gap: 13px; margin-bottom: 22px; }
  .proteon-wordpress .section-heading h2,
  .proteon-wordpress .p6-section-title h2,
  .proteon-wordpress .split h2,
  .proteon-wordpress .callout h2,
  .proteon-wordpress .p6-method-main h2,
  .proteon-wordpress .interior-hero h1,
  .proteon-wordpress .park-page h1 {
    font-size: clamp(28px,7.9vw,36px);
    line-height: 1.17;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
  }
  .proteon-wordpress .p6-services.section { padding: 49px 0 54px; }
  .proteon-wordpress .p6-section-top { align-items: start; flex-wrap: wrap; row-gap: 14px; }
  .proteon-wordpress .p6-carousel-controls { margin-left: auto; }
  .proteon-wordpress .p6-service-card { border-radius: 12px; }
  .proteon-wordpress .p6-service-photo { height: 193px; }
  .proteon-wordpress .p6-service-detail { padding: 17px 17px 19px; }
  .proteon-wordpress .p6-method-section { padding: 51px 0; }
  .proteon-wordpress .p6-method-step {min-height: 0;}
  .proteon-wordpress .tile-grid,
  .proteon-wordpress .case-grid,
  .proteon-wordpress .area-directory-grid { grid-template-columns: minmax(0,1fr); }
  .proteon-wordpress .card-photo,
  .proteon-wordpress .sector .card-photo,
  .proteon-wordpress .area .card-photo { height: auto; min-height: 0; aspect-ratio: 16/10; }
  .proteon-wordpress .card-photo img {width:100%;height:100%;object-fit:cover;}
  .proteon-wordpress .card-body { padding: 20px; }
  .proteon-wordpress .p6-park-spotlight {padding: 46px 0;}
  .proteon-wordpress .p6-park-content { padding: 28px 22px 30px; }
  .proteon-wordpress .p6-park-content h2 { font-size: clamp(30px,8.2vw,39px); line-height:1.12; }
  .proteon-wordpress .p6-park-panel > .p6-park-visual {height:310px !important;min-height:310px !important;}
  .proteon-wordpress .p6-park-visual img.p6-park-image {object-fit:cover!important;}
  .proteon-wordpress .p6-park-brand-card {max-width:185px;top:12px;right:12px;padding:9px;}
  .proteon-wordpress .p6-park-brand-card img {width:50px!important;height:48px!important;}
  .proteon-wordpress .p6-park-image-caption {left:15px;bottom:15px;right:15px;}
  .proteon-wordpress .p6-park-benefits {grid-template-columns:minmax(0,1fr);}
  .proteon-wordpress .p6-park-benefits>div {border-right:0;border-bottom:1px solid #e4eaf1;grid-column:auto!important;}
  .proteon-wordpress .p6-park-benefits>div:last-child {border-bottom:0;}
  .proteon-wordpress .footer { padding: 43px 0 23px; }
  .proteon-wordpress .footer .footer-top { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; }
  .proteon-wordpress .footer .footer-top>div:first-child {max-width:100%;}
  .proteon-wordpress .footer .footer-top h3 { margin-bottom:11px; }
  .proteon-wordpress .footer .footer-bottom {display:flex;flex-direction:column;gap:10px;}
  .proteon-wordpress .form-box input:not([type=checkbox]),
  .proteon-wordpress .form-box textarea,
  .proteon-wordpress .form-box select,
  .proteon-wordpress .pristjek-form-panel input,
  .proteon-wordpress .pristjek-form-panel textarea,
  .proteon-wordpress .pristjek-form-panel select {font-size:16px!important;}
  .proteon-wordpress button, .proteon-wordpress a.button {touch-action:manipulation;}
  .proteon-wordpress .phone-float {display:none!important;}
  /* Bottom contact bar mirrors the existing CTA targets; no emoji icons. */
  .proteon-wordpress .proteon-mobile-actions {
    position:fixed;
    z-index:110;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px));
    background:#0b2139;
    border-top:1px solid rgba(255,255,255,.17);
    box-shadow:0 -5px 18px rgba(6,23,43,.15);
  }
  .proteon-wordpress .proteon-mobile-actions a {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:48px;
    padding:11px 12px;
    border-radius:9px;
    font-weight:800;
    font-size:13px;
    line-height:1.1;
    text-align:center;
    white-space:nowrap;
    text-decoration:none;
  }
  .proteon-wordpress .proteon-mobile-call {
    flex: .90;
    border:1px solid rgba(209,229,252,.48);
    background:transparent;
    color:white;
  }
  .proteon-wordpress .proteon-mobile-quote {
    flex:1.18;
    border:1px solid #155eb9;
    background:#155eb9;
    color:white;
  }
  .proteon-wordpress .proteon-mobile-actions svg { flex:none; }
  .proteon-wordpress .proteon-mobile-actions a:focus-visible {outline:3px solid #80b7ff;outline-offset:2px;}
}
@media (max-width: 370px) {
  .proteon-wordpress .hero h1 { font-size: 32px !important; }
  .proteon-wordpress .hero .hero-grid {min-height: 635px;}
  .proteon-wordpress .hero .hero-proof span {font-size: 9.5px;}
  .proteon-wordpress .proteon-mobile-actions a {font-size:12px; gap:6px;}
  .proteon-wordpress .wordmark img {width:138px;}
}
@media (prefers-reduced-motion: reduce) {
  .proteon-wordpress .proteon-mobile-actions a {transition:none;}
}
