/* Hero cinematic text overlay — loaded by pages that use hero-overlay.js */

.HeroCinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.HeroCinematic video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.HeroCinematic .HeroCinematicContent {
  position: relative;
  z-index: 1;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

.HeroCinematicSeg {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.HeroCinematicSeg.hc-visible { opacity: 1; transform: translateY(0) !important; }

/* Scroll-down arrow — fades in near the end of the animation */
#hero-scroll-arrow {
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(28px, 5vw, 52px);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  animation: hero-arrow-bounce 1.4s ease-in-out infinite;
  z-index: 3;
  user-select: none;
}
#hero-scroll-arrow.hc-visible {
  opacity: 1;
  pointer-events: auto;
}
@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* Shared frosted-pill backdrop for all hero text segments. */
.HeroCinematicSeg {
  background: rgba(0, 18, 38, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.4em;
  box-sizing: border-box;
  width: fit-content;
}

/* Scene 1 — city bottom-left text */
#hero-s1-t1 {
  bottom: 14%; left: 6%;
  padding: 0.35em 0.8em;
  transform: translateY(20px);
  font-size: clamp(14px, 3.8vw, 76px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  max-width: 58%;
  line-height: 1.1;
}
#hero-s1-t2 {
  bottom: 5%; left: 6%;
  padding: 0.4em 0.9em;
  transform: translateY(20px);
  font-size: clamp(12px, 2.2vw, 48px);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  max-width: 58%;
  line-height: 1.4;
}

/* Scene 2 — chaos (bottom centre) */
#hero-s2-chaos {
  bottom: 10%; left: 0; right: 0;
  margin-inline: auto;
  max-width: 84%;
  padding: 0.4em 1em;
  text-align: center;
  transform: translateY(20px);
  font-size: clamp(16px, 4vw, 76px);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Scene 2 — order (bottom centre) */
#hero-s2-order {
  bottom: 10%; left: 0; right: 0;
  margin-inline: auto;
  max-width: 84%;
  padding: 0.4em 1em;
  text-align: center;
  transform: translateY(20px);
  font-size: clamp(16px, 4vw, 76px);
  color: #fff;
}
.hc-order-main {
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hc-order-accent {
  font-weight: 700;
  color: #00d4aa;
  text-shadow: 0 0 12px rgba(0,212,170,.6), 0 1px 4px rgba(0,0,0,.6);
}

/* Scene 4 — quote (upper area, over beach sky).
   Pill backdrop from .HeroCinematicSeg is intentionally peeled off here
   so the text floats over the beach. Heavy multi-layer dark shadows
   carry the contrast load instead. */
#hero-s4-label,
#hero-s4-quote,
#hero-s4-attr {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}
#hero-s4-label {
  top: 7%; left: 0; right: 0;
  margin-inline: auto;
  max-width: 84%;
  text-align: center;
  transform: translateY(-12px);
  font-size: clamp(14px, 2.5vw, 38px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0,0,0,.85),
    0 2px 6px rgba(0,0,0,.95),
    0 0 24px rgba(0,0,0,.55);
}
#hero-s4-quote {
  top: 22%; left: 0; right: 0;
  margin-inline: auto;
  max-width: 84%;
  text-align: center;
  transform: translateY(-12px);
  font-size: clamp(28px, 7.5vw, 144px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-shadow:
    0 0 12px rgba(0,0,0,.85),
    0 3px 10px rgba(0,0,0,.95),
    0 0 36px rgba(0,0,0,.55);
}
#hero-s4-attr {
  top: 62%; left: 0; right: 0;
  margin-inline: auto;
  max-width: 84%;
  text-align: center;
  transform: translateY(12px);
  font-size: clamp(9px, 1.2vw, 26px);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0,0,0,.85),
    0 1px 4px rgba(0,0,0,.95),
    0 0 20px rgba(0,0,0,.5);
}

/* ─── Landing page sections (below hero) ─────────────────────────── */

.LandingSection {
  padding: 3.5em 2em;
  width: 100%;
}

.LandingSectionInner {
  max-width: 52em;
  margin: 0 auto;
  line-height: 1.75;
  font-size: clamp(0.9em, 1.4vw, 1.05em);
}

.LandingSection h2 {
  text-align: center;
  font-size: clamp(1.4em, 3vw, 2.2em);
  font-weight: 300;
  color: #00d4aa;
  margin-top: 0;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.LandingSection p {
  margin: 0 0 1em;
  color: #cdd;
}

/* Testimonials */
.TestimonialCard {
  padding: 1.5em 1.8em;
  border-left: 4px solid #00d4aa;
  background: rgba(0, 30, 60, 0.6);
  margin-bottom: 1.5em;
  border-radius: 0 0.3em 0.3em 0;
}

.TestimonialQuote {
  font-style: italic;
  line-height: 1.75;
  color: #dde;
  margin-bottom: 0.8em;
}

.TestimonialAttr {
  color: #00d4aa;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Services */
.ServicesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
  gap: 1.25em;
  margin-top: 1.5em;
}

.ServiceCard {
  padding: 1.5em;
  border: 1px solid rgba(0, 212, 170, 0.4);
  background: rgba(0, 15, 35, 0.7);
  border-radius: 0.4em;
}

.ServiceCard h3 {
  color: #00d4aa;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: 600;
}

.ServiceCard p {
  color: #bcc;
  font-size: 0.95em;
  margin-bottom: 0.8em;
}

.ServiceCard ul {
  color: #9ab;
  font-size: 0.9em;
  padding-left: 1.2em;
  margin: 0;
  line-height: 1.8;
}

/* Objections */
.ObjectionItem {
  padding: 1.2em 1.5em;
  margin-bottom: 1em;
  background: rgba(0, 25, 50, 0.5);
  border-left: 3px solid rgba(0, 212, 170, 0.35);
  border-radius: 0 0.3em 0.3em 0;
}

.ObjectionQ {
  font-weight: 600;
  color: #e0f7f4;
  margin-bottom: 0.5em;
  font-size: 1em;
}

.ObjectionA {
  line-height: 1.7;
  color: #9ab;
  font-size: 0.95em;
}

/* CTA block */
.CtaBlock {
  padding: 4em 2em;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,10,30,0.6) 0%, rgba(0,30,20,0.85) 100%);
  border-top: 1px solid rgba(0,212,170,0.3);
}

.CtaBlock .CtaSub {
  font-size: clamp(0.85em, 1.4vw, 1em);
  color: #9ab;
  margin-bottom: 1.5em;
  letter-spacing: 0.03em;
}

.CtaLink {
  display: inline-block;
  padding: 0.75em 2.5em;
  font-size: clamp(1em, 2.5vw, 1.5em);
  font-weight: 600;
  color: #001a10;
  background: linear-gradient(135deg, #00d4aa 0%, #00a880 100%);
  border-radius: 0.35em;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 0 30px rgba(0,212,170,0.4), 0 4px 16px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.CtaLink:hover {
  box-shadow: 0 0 50px rgba(0,212,170,0.7), 0 6px 20px rgba(0,0,0,0.6);
  transform: translateY(-2px);
  color: #001a10;
}

/* ─── Blog posts grid (index page only) ──────────────────────────── */
.BlogPosts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
  gap: 1.25em;
  padding: 3.5em 2em 4em;
  max-width: 60em;
  margin: 0 auto;
}

.BlogPosts::before {
  content: "Recent Writing";
  grid-column: 1 / -1;
  display: block;
  text-align: center;
  font-size: clamp(1.4em, 3vw, 2.2em);
  font-weight: 300;
  color: #00d4aa;
  margin-bottom: 0.25em;
  letter-spacing: -0.01em;
}

.BlogPosts .Card.PostListing {
  display: flex;
  flex-direction: column;
  background: rgba(0, 15, 35, 0.7);
  border: 1px solid rgba(0, 212, 170, 0.25) !important;
  border-radius: 0.4em;
  overflow: hidden;
  margin-bottom: 0;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.BlogPosts .Card.PostListing:hover {
  border-color: rgba(0, 212, 170, 0.7) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.BlogPosts .ImageCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  float: none;
}

.BlogPosts .CardImage {
  width: 100%;
  height: 10em;
  object-fit: cover;
  float: none;
  margin: 0;
  display: block;
}

.BlogPosts .ContentDiv.PostInfo {
  padding: 1em 1.1em 0.8em;
  flex: 1;
  float: none;
  margin: 0;
}

.BlogPosts .Title {
  font-size: 0.97em;
  font-weight: 600;
  color: #e0f7f4;
  line-height: 1.4;
  margin-bottom: 0.4em;
}

.BlogPosts .Description {
  font-size: 0.83em;
  color: #7a9baa;
  line-height: 1.5;
  margin-bottom: 0.6em;
}

.BlogPosts .StatBar {
  font-size: 0.75em;
  color: #445566;
  justify-content: flex-start;
  gap: 1em;
}

.BlogPosts .Clear,
.BlogPosts .TagList {
  display: none;
}

/* ─── Services contact form ───────────────────────────────────────── */
.SvcContactForm {
  margin-top: 1.5em;
}

.SvcFormRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 1em;
}

.SvcFormField {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.SvcFullWidth {
  margin-bottom: 1em;
}

.SvcLabel {
  font-size: 0.82em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a9baa;
}

.SvcRequired {
  color: #00d4aa;
}

.SvcInput {
  background: rgba(0, 20, 45, 0.8);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 0.3em;
  color: #e0f7f4;
  font-size: 0.97em;
  padding: 0.6em 0.8em;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.SvcInput:focus {
  outline: none;
  border-color: rgba(0, 212, 170, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.SvcInput::placeholder {
  color: #445566;
}

.SvcTextarea {
  resize: vertical;
  min-height: 8em;
}

.SvcCaptchaRow {
  margin: 1em 0;
}

.SvcCaptchaRow .CaptchaDiv label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1em;
  background: rgba(0, 20, 45, 0.6);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 0.3em;
  cursor: pointer;
  font-size: 0.9em;
  color: #9ab;
  transition: border-color 0.2s;
}

.SvcCaptchaRow .CaptchaDiv label:hover {
  border-color: rgba(0, 212, 170, 0.5);
}

.SvcFormActions {
  margin-top: 0.5em;
}

.SvcSubmitBtn {
  padding: 0.65em 2.5em;
  font-size: 1em;
  font-weight: 600;
  color: #001a10;
  background: linear-gradient(135deg, #00d4aa 0%, #00a880 100%);
  border: none;
  border-radius: 0.35em;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3), 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.SvcSubmitBtn:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(0, 212, 170, 0.55), 0 5px 14px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.SvcSubmitBtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.SvcError {
  margin-top: 0.8em;
  padding: 0.7em 1em;
  background: rgba(180, 30, 30, 0.25);
  border-left: 3px solid #c44;
  border-radius: 0 0.3em 0.3em 0;
  color: #faa;
  font-size: 0.9em;
}

.SvcSuccess {
  text-align: center;
  padding: 2em 1em;
  color: #00d4aa;
}

@media (max-width: 36em) {
  .SvcFormRow { grid-template-columns: 1fr; }
}

/* Portrait overrides */
@media (orientation: portrait) {
  #hero-s1-t1 { font-size: clamp(14px, 5.5vw, 70px); }
  #hero-s1-t2 { font-size: clamp(12px, 3.5vw, 50px); max-width: 72%; }
  #hero-s2-chaos { font-size: clamp(16px, 6vw, 76px); }
  #hero-s2-order { font-size: clamp(16px, 6vw, 76px); }
  #hero-s4-label { font-size: clamp(14px, 4vw, 36px); }
  #hero-s4-quote { font-size: clamp(28px, 12vw, 140px); top: 22%; }
  #hero-s4-attr  { font-size: clamp(9px, 1.8vw, 22px); top: 58%; }
}
