/* Ostelnet Brand Experience 4.1 — full-bleed hero and restrained glass UI */
:root {
  --glass-bg: rgba(255, 255, 255, .78);
  --glass-bg-strong: rgba(255, 255, 255, .9);
  --glass-dark: rgba(3, 17, 39, .64);
  --glass-border: rgba(255, 255, 255, .22);
  --glass-line: rgba(6, 43, 103, .12);
  --glass-shadow: 0 24px 70px rgba(3, 17, 39, .14);
  --glass-blur: 18px;
}

html, body { max-width: 100%; overflow-x: clip; }
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(18, 187, 203, .07), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(6, 43, 103, .055), transparent 32rem),
    #fff;
}
.container, .navbar, .section-head, .split, .contact-grid, .service-detail,
.grid-3, .pricing-grid, .case-grid, .footer-grid { min-width: 0; }

/* Restrained global glass system */
.site-header {
  background: rgba(255, 255, 255, .79) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .7) !important;
  box-shadow: 0 10px 32px rgba(3, 17, 39, .065) !important;
  -webkit-backdrop-filter: saturate(165%) blur(20px);
  backdrop-filter: saturate(165%) blur(20px);
}
.mobile-menu {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: 0 28px 70px rgba(3, 17, 39, .18) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.section-alt, .section-soft {
  background:
    radial-gradient(circle at 95% 8%, rgba(18, 187, 203, .075), transparent 24rem),
    linear-gradient(180deg, #f7fafc 0%, #f2f7fb 100%) !important;
}
.card, .pricing-card, .contact-card, .service-detail .card, .case-card,
.feature, .faq details {
  background: var(--glass-bg-strong) !important;
  border-color: rgba(6, 43, 103, .11) !important;
  box-shadow: 0 14px 42px rgba(3, 17, 39, .07) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.card:hover, .pricing-card:hover, .service-detail .card:hover, .case-card:hover {
  border-color: rgba(18, 187, 203, .42) !important;
  box-shadow: 0 24px 58px rgba(3, 17, 39, .11) !important;
}

.feature { padding: 16px 18px; border-radius: 16px; }
.outcome-panel {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(circle at 88% 10%, rgba(18, 187, 203, .22), transparent 18rem),
    linear-gradient(145deg, rgba(3, 17, 39, .98), rgba(6, 43, 103, .94)) !important;
  box-shadow: 0 28px 70px rgba(3, 17, 39, .2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.outcome-panel h2, .outcome-panel h3, .outcome-panel p, .outcome-panel strong { color: #fff; }
.outcome-panel p, .outcome-panel span { color: rgba(232, 244, 251, .82); }

input, select, textarea {
  background: rgba(255, 255, 255, .88) !important;
  border-color: rgba(6, 43, 103, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

/* Full-bleed, art-directed homepage hero */
.home-page .home-hero--media {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(700px, calc(100svh - 122px), 860px);
  padding: 0 !important;
  overflow: hidden;
  background: #031127 !important;
}
.home-page .home-hero--media::before { display: none !important; }
.home-page .hero-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.home-page .hero-backdrop img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-position-desktop, center center);
  transform: scale(1.002);
}
.home-page .hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 39, .30) 0%, rgba(3, 17, 39, .15) 42%, rgba(3, 17, 39, .02) 76%, rgba(3, 17, 39, 0) 100%),
    linear-gradient(180deg, rgba(3, 17, 39, .03) 0%, rgba(3, 17, 39, .01) 62%, rgba(3, 17, 39, .20) 100%);
}
.home-page .home-hero--media .hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1320px);
  min-height: inherit;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center;
  gap: 0 !important;
  padding: clamp(42px, 5.5vh, 62px) 0 !important;
}
.home-page .hero-glass-panel {
  width: min(100%, 730px);
  padding: clamp(30px, 3.2vw, 42px);
  border: 1px solid var(--glass-border);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(6, 43, 103, .58), rgba(3, 17, 39, .72)),
    rgba(3, 17, 39, .58);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}
.home-page .home-hero--media .eyebrow { color: #79e8f1 !important; }
.home-page .home-hero--media h1 {
  max-width: 690px;
  font-size: clamp(3rem, 4.55vw, 4.35rem);
  color: #fff !important;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .22);
}
.home-page .home-hero--media .hero-copy {
  max-width: 650px;
  color: rgba(235, 247, 252, .87) !important;
}
.home-page .home-hero--media .hero-secondary,
.home-page .home-hero--media .hero-secondary:link,
.home-page .home-hero--media .hero-secondary:visited {
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  color: #fff !important;
}
.home-page .home-hero--media .hero-secondary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(121, 232, 241, .58);
}
.home-page .home-hero--media .hero-assurances { color: rgba(235, 247, 252, .82); }
.home-page .home-hero--media .hero-assurances li span {
  background: rgba(121, 232, 241, .15);
  color: #8cf2f7;
}
.home-page .home-hero--media .hero-next-step {
  border-top-color: rgba(255, 255, 255, .16);
  color: rgba(235, 247, 252, .72);
}
.home-page .home-hero--media .hero-next-step strong { color: #fff; }

/* Product-mode fallback remains a balanced two-column composition. */
.home-page .home-hero--product .hero-copy-column {
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}


.home-page .home-hero--text .hero-grid { grid-template-columns: minmax(0, 820px); }
.home-page .home-hero--text .hero-copy-column {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(6, 43, 103, .09);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Desktop alignment and grid corrections */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.section-head > * { min-width: 0; }
.section-head .section-copy { max-width: 560px; margin-left: auto; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.service-detail .card { height: 100%; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: start;
}
.contact-grid > .card { position: sticky; top: 122px; }
.pricing-grid, .case-grid { align-items: stretch; }
.pricing-card, .case-card { min-width: 0; }
.footer-announcement-card {
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 26px 76px rgba(3, 17, 39, .22) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Internal-page hero polish */
.page-hero, .project-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(18, 187, 203, .32), transparent 29rem),
    linear-gradient(135deg, #031127 0%, #062b67 66%, #087e92 145%) !important;
}
.page-hero::before, .project-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
}
.page-hero .container, .project-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumbs, .project-hero .breadcrumbs {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 1100px) {
  .home-page .home-hero--media { min-height: clamp(700px, 88svh, 860px); }
  .home-page .home-hero--media .hero-grid { width: min(calc(100% - 40px), 1180px); }
  .home-page .hero-backdrop img { object-position: var(--hero-position-tablet, center center); }
  .home-page .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 17, 39, .28) 0%, rgba(3, 17, 39, .12) 52%, rgba(3, 17, 39, 0) 100%),
      linear-gradient(180deg, rgba(3, 17, 39, .02), rgba(3, 17, 39, .18));
  }
  .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr); gap: 38px; }
}

@media (max-width: 900px) {
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head .section-copy { max-width: 720px; margin-left: 0; }
  .contact-grid > .card { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-hero--media .hero-grid { align-items: center; }
  .home-page .hero-glass-panel { width: min(100%, 690px); }
}

@media (max-width: 699px) {
  .site-header {
    background: rgba(255, 255, 255, .9) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
  .home-page .home-hero--media {
    min-height: max(790px, calc(100svh - 68px));
  }
  .home-page .home-hero--media .hero-grid {
    width: min(calc(100% - 28px), 660px);
    align-items: start;
    padding: 34px 0 42px !important;
  }
  .home-page .hero-backdrop img { object-position: var(--hero-position-mobile, center bottom); }
  .home-page .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 17, 39, .26) 0%, rgba(3, 17, 39, .14) 48%, rgba(3, 17, 39, .03) 74%, rgba(3, 17, 39, .22) 100%);
  }
  .home-page .hero-glass-panel {
    width: 100%;
    padding: 25px 22px 24px;
    border-radius: 23px;
    background: rgba(3, 17, 39, .61);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
  }
  .home-page .home-hero--media h1 {
    margin-top: 14px;
    font-size: clamp(2.24rem, 10.5vw, 3.12rem);
    line-height: 1.02;
  }
  .home-page .home-hero--media .hero-copy { font-size: .98rem; line-height: 1.58; }
  .home-page .home-hero--media .hero-buttons { margin-top: 22px; }
  .home-page .home-hero--media .hero-buttons .btn,
  .home-page .home-hero--media .hero-buttons .text-link { width: 100%; justify-content: center; }
  .home-page .home-hero--media .hero-assurances { grid-template-columns: 1fr; font-size: .84rem; }
  .home-page .home-hero--media .hero-assurances li:nth-child(n+3) { display: none; }
  .home-page .home-hero--media .hero-next-step { display: none; }
  .service-detail, .grid-3 { grid-template-columns: 1fr; }
  .card, .pricing-card, .contact-card, .service-detail .card, .case-card,
  .feature { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

@media (max-width: 390px) {
  .home-page .home-hero--media { min-height: 800px; }
  .home-page .home-hero--media .hero-grid { width: min(calc(100% - 22px), 620px); }
  .home-page .hero-glass-panel { padding: 22px 18px; border-radius: 20px; }
  .home-page .home-hero--media h1 { font-size: 2.12rem; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .mobile-menu, .hero-glass-panel, .card, .pricing-card,
  .contact-card, .service-detail .card, .case-card, .feature {
    background-color: #fff !important;
  }
  .home-page .hero-glass-panel { background-color: rgba(3, 17, 39, .94) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-backdrop img { transform: none; }
}
