/* Bright UPVC – shared layout, mobile app shell, safe areas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --sticky-actions-h: 76px;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap,
.wrap,
.content {
  flex: 1 0 auto;
}

/* Premium typography override across pages */
body {
  font-family: "Inter", sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.nav-logo-text,
.btn-primary, .btn-secondary,
.btn-next, .btn-back, .btn-whatsapp, .btn-email,
.btn-form-next, .btn-form-back,
.nav-cta {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* Replace B placeholder with actual logo without layout shift */
.nav-logo-icon {
  width: 170px !important;
  height: 42px !important;
  font-size: 0 !important;
  color: transparent !important;
  background: transparent url("../images/logo.png") left center/contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Full logo image already includes brand text */
.nav-logo-text {
  display: none !important;
}

@media (max-width: 900px) {
  .nav-logo-icon {
    width: 136px !important;
    height: 34px !important;
  }
}

html.has-mobile-tabs {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

@media (min-width: 901px) {
  html.has-mobile-tabs {
    padding-bottom: 0;
  }
}

html.has-mobile-sticky-actions {
  padding-bottom: calc(var(--sticky-actions-h) + var(--safe-bottom));
}

@media (min-width: 901px) {
  html.has-mobile-sticky-actions {
    padding-bottom: 0;
  }
}

/* Mobile bottom navigation – app-style */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 6px 8px var(--safe-bottom);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(127, 79, 232, 0.12);
  box-shadow: 0 -4px 24px rgba(55, 49, 132, 0.08);
}

.mobile-tabbar-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
}

.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #555577;
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  padding: 4px 2px;
  transition: background 0.2s, color 0.2s;
  min-width: 0;
}

.mobile-tab .mobile-tab-icon {
  font-size: 20px;
  line-height: 1;
}

.mobile-tab:hover,
.mobile-tab:focus-visible {
  background: rgba(127, 79, 232, 0.08);
  color: #5631bc;
  outline: none;
}

.mobile-tab.active {
  color: #7f4fe8;
  background: rgba(127, 79, 232, 0.1);
}

.mobile-tab.quote-tab {
  color: #fff;
  background: linear-gradient(135deg, #373184 0%, #5631bc 45%, #7f4fe8 100%);
  box-shadow: 0 4px 14px rgba(86, 49, 188, 0.35);
}

.mobile-tab.quote-tab.active {
  color: #fff;
}

@media (min-width: 901px) {
  /* Desktop: phone is in nav, contact & footer — hide left call FAB to avoid overlap */
  .floating-call {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-tabbar { display: none !important; }

  /* On mobile, use only sticky footer actions */
  .floating-wa,
  .floating-call {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .quote-page-wrap .floating-wa,
  .quote-page-wrap .floating-call {
    display: none !important;
  }
}

/* New universal sticky mobile action footer */
.mobile-sticky-actions {
  display: none;
  top: auto !important;
}

@media (max-width: 900px) {
  .mobile-sticky-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    z-index: 1002;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(127, 79, 232, 0.15);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(55, 49, 132, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-sticky-actions a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #373184;
    border-radius: 10px;
    min-height: 52px;
  }

  .mobile-sticky-actions a .icon {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-sticky-actions a.whatsapp {
    color: #25d366;
  }

  .mobile-sticky-actions a.quote {
    color: #fff;
    background: linear-gradient(135deg, #7f4fe8 0%, #5631bc 55%, #373184 100%);
    box-shadow: 0 8px 20px rgba(86, 49, 188, 0.35);
  }
}

/* Homepage CTA replacing inline quote form */
.quote-cta-banner {
  background: linear-gradient(135deg, #373184 0%, #5631bc 45%, #7f4fe8 100%);
  padding: 72px 5%;
  position: relative;
  overflow: hidden;
}

.quote-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote-cta-banner .section-tag {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.quote-cta-banner h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 16px 0 12px;
  line-height: 1.15;
}

.quote-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 28px;
}

.quote-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.quote-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quote-cta-actions .btn-quote-primary {
  background: #fff;
  color: #373184;
}

.quote-cta-actions .btn-quote-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.quote-cta-actions .btn-quote-wa {
  background: #25d366;
  color: #fff;
}

.quote-cta-actions .btn-quote-wa:hover {
  background: #1fba57;
  transform: translateY(-2px);
}

.quote-cta-actions .btn-quote-call {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.quote-cta-actions .btn-quote-call:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Gallery strip on home */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.home-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 28px rgba(55, 49, 132, 0.12);
  border: 1px solid rgba(127, 79, 232, 0.1);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .home-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product card with real photo */
.product-card-img.has-photo {
  background-size: cover;
  background-position: center;
}

.product-card-img.has-photo .product-card-img-overlay {
  opacity: 1;
}

/* Shared footer for inner pages */
.site-footer,
footer {
  margin-top: auto;
}

.site-footer {
  background: #221f63;
  color: rgba(255, 255, 255, 0.88);
  padding: 26px 5% 110px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cfc6ff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (min-width: 901px) {
  .site-footer {
    padding-bottom: 26px;
  }
}

/* Standard inline SVGs (WhatsApp, phone, contact rows, social) */
.floating-wa .floating-wa-icon,
.floating-call .floating-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.floating-wa .floating-wa-icon svg,
.floating-call .floating-call-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

.floating-call .floating-call-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-line .ico svg,
.contact-line .ico {
  line-height: 0;
}

.contact-line .ico svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Footer + shared social (optional on inner pages) */
.footer-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
