/* SEO — Google Map, breadcrumbs, local visibility */

/* Home — Google Drive video */
.sss-video-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.sss-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sss-video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
  filter: saturate(0.85) blur(1px);
}

.sss-video-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(238, 242, 255, 0.88) 100%),
    linear-gradient(180deg, rgba(30, 58, 138, 0.06) 0%, rgba(49, 46, 129, 0.08) 100%);
}

.sss-video-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231e3a8a' stroke-width='1.2'%3E%3Cpath d='M60 8 L92 24 V52 C92 76 78 92 60 100 C42 92 28 76 28 52 V24 Z'/%3E%3Cpath d='M60 22 L80 32 V52 C80 68 70 78 60 82 C50 78 40 68 40 52 V32 Z'/%3E%3Ccircle cx='60' cy='54' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.sss-video-section .container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sss-video-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sss-video-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.sss-video-header p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 40rem;
}

.sss-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

.sss-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About — banner image hero (1024×546 source — preserve full photo, no vertical crop) */
.sss-about-banner {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
  background-image: none !important;
  /* Height tracks banner aspect ratio so cover does not crop heads/feet */
  min-height: clamp(520px, calc(100vw * 546 / 1024), 1040px) !important;
  padding-top: clamp(4rem, 7vh, 6rem) !important;
  padding-bottom: clamp(4rem, 7vh, 6rem) !important;
  display: flex !important;
  align-items: center !important;
}

.sss-about-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0f172a;
}

.sss-about-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sss-about-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 58, 138, 0.38) 45%, rgba(15, 23, 42, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.sss-about-banner .container,
.sss-about-banner-content {
  position: relative;
  z-index: 1;
}

.sss-about-banner h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.sss-about-banner p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* About — team photo (square 1024×1024, show full image) */
.sss-about-team-wrap {
  aspect-ratio: 1 / 1 !important;
  max-width: 28rem;
  margin-inline: auto;
  background: #f1f5f9 !important;
  border-radius: 0.75rem;
  overflow: hidden;
}

.sss-about-team-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Services — full graphic banner (1024×546 — show entire collage, no crop) */
.sss-services-banner {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
  background-image: none !important;
  min-height: clamp(480px, calc(100vw * 546 / 1024 + 5rem), 1040px) !important;
  padding-top: clamp(4rem, 7vh, 6rem) !important;
  padding-bottom: clamp(4rem, 7vh, 6rem) !important;
  display: flex !important;
  align-items: center !important;
}

.sss-services-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sss-services-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.sss-services-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.sss-services-banner .container,
.sss-services-banner-content {
  position: relative;
  z-index: 1;
}

.sss-services-banner h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.sss-services-banner p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Contact — full graphic banner (1024×682 — show entire collage, no crop) */
.sss-contact-banner {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
  background-image: none !important;
  min-height: clamp(480px, calc(100vw * 682 / 1024 + 5rem), 1040px) !important;
  padding-top: clamp(4rem, 7vh, 6rem) !important;
  padding-bottom: clamp(4rem, 7vh, 6rem) !important;
  display: flex !important;
  align-items: center !important;
}

.sss-contact-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sss-contact-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.sss-contact-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(15, 23, 42, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.sss-contact-banner .container,
.sss-contact-banner-content {
  position: relative;
  z-index: 1;
}

.sss-contact-banner h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.sss-contact-banner p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.sss-contact-map-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.sss-contact-map-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sss-contact-map-frame {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  min-height: 320px;
  background: #e2e8f0;
}

.sss-contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

@media (min-width: 1024px) {
  .sss-contact-map-frame,
  .sss-contact-map-frame iframe {
    min-height: 420px;
  }
}

/* Screen-reader + SEO breadcrumbs — outside React root */
#sss-breadcrumbs-slot:not(:empty) {
  position: fixed;
  top: 4.75rem;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}

#sss-breadcrumbs-slot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

#sss-breadcrumbs-slot:empty {
  display: none;
}

#sss-breadcrumbs-slot .sss-breadcrumbs {
  padding: 0.4rem 1rem;
  margin: 0;
}

/* Extra clearance on inner pages when breadcrumbs show */
body.sss-has-breadcrumbs #root .min-h-screen.pt-20 {
  padding-top: 6.75rem !important;
}

@media (min-width: 768px) {
  #sss-breadcrumbs-slot:not(:empty) {
    top: 5.5rem;
  }

  body.sss-has-breadcrumbs #root .min-h-screen.pt-20 {
    padding-top: 7.5rem !important;
  }
}

#sss-seo-slot {
  clear: both;
}

/* Contact map when rendered outside React root */
#sss-seo-slot .sss-contact-map-section {
  margin-top: 0;
}

.sss-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
}

.sss-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.sss-breadcrumbs a {
  color: #1d4ed8;
  text-decoration: none;
}

.sss-breadcrumbs a:hover {
  text-decoration: underline;
}

.sss-breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: #94a3b8;
}

/* PHP contact map */
.contact-map-section {
  margin-top: 3rem;
}
