/* SurfSync Infotech — Office Opening Invitation */

:root {
  --ss-teal: #009baa;
  --ss-teal-deep: #007a88;
  --ss-orange: #ff6b35;
  --ss-navy: #0a1628;
  --ss-ink: #050b14;
  --ss-mist: #e6f8fb;
  --ss-muted: #94a3b8;
  --ss-gold: #ffd166;
}

body,
html {
  background-color: var(--ss-ink);
  font-family: "Poppins", "Montserrat", sans-serif;
  overscroll-behavior: none;
}

.loading-overlay {
  background: #050b14;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  mix-blend-mode: normal;
}

.loading-overlay .boot-logo {
  width: min(260px, 70vw);
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 28px rgba(0, 155, 170, 0.28));
  animation: logo-breathe 1.6s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(0.97); }
}

body.pace-done .loading-overlay,
.loading-overlay.is-gone {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loading-overlay.is-gone .boot-logo {
  display: none !important;
}

.pace,
.pace .pace-progress,
.pace .pace-activity {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.navigation .nav-btn,
.off-screen-navigation {
  display: none !important;
}

.navigation .brand {
  padding: 24px 28px;
}

.navigation .brand img {
  height: 46px;
  width: auto;
  max-width: 220px;
  mix-blend-mode: screen;
}

.slide.first .main-title {
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.55) 0%, rgba(5, 11, 20, 0.78) 45%, rgba(5, 11, 20, 0.88) 100%);
}

.slide.first .main-title .main-title-wrapper {
  padding: 90px 24px 40px;
  position: relative;
  z-index: 3;
  perspective: 1100px;
}

.slide .image {
  background-size: cover;
  background-position: center;
  transform-origin: center center;
}

.slide.first .image,
.slide.active .image {
  animation: kenburns 22s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

#frills-canvas {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-3d .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: orb-float 7s ease-in-out infinite;
}

.hero-3d .orb-1 {
  width: 140px;
  height: 140px;
  left: 8%;
  top: 18%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 155, 170, 0.55), transparent 70%);
  animation-duration: 8s;
}

.hero-3d .orb-2 {
  width: 180px;
  height: 180px;
  right: 6%;
  top: 28%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.42), transparent 70%);
  animation-duration: 9.5s;
  animation-delay: -2s;
}

.hero-3d .orb-3 {
  width: 90px;
  height: 90px;
  left: 18%;
  bottom: 16%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.4), transparent 70%);
  animation-duration: 6.5s;
  animation-delay: -1s;
}

.hero-3d .ring {
  position: absolute;
  border: 2px solid rgba(0, 155, 170, 0.28);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.hero-3d .ring-1 {
  width: 280px;
  height: 280px;
  left: -40px;
  bottom: 8%;
  animation: ring-spin 14s linear infinite;
  border-color: rgba(0, 155, 170, 0.35);
}

.hero-3d .ring-2 {
  width: 220px;
  height: 220px;
  right: -20px;
  top: 12%;
  border-color: rgba(255, 107, 53, 0.32);
  animation: ring-spin 18s linear infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 30px) scale(1); }
  50% { transform: translate3d(18px, -24px, 80px) scale(1.12); }
}

@keyframes ring-spin {
  from { transform: rotateX(62deg) rotateZ(0deg); }
  to { transform: rotateX(62deg) rotateZ(360deg); }
}

.polaroid-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 800px;
  transform-style: preserve-3d;
}

.polaroid {
  position: absolute;
  width: 156px;
  margin: 0;
  background: #f6f1e6;
  padding: 10px 10px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
}

.polaroid img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
}

.polaroid figcaption {
  font-family: "Great Vibes", cursive;
  color: #0a1628;
  font-size: 18px;
  text-align: center;
  margin-top: 8px;
  line-height: 1;
}

.polaroid.p1 {
  left: 3%;
  top: 20%;
  animation: polaroid-3d-a 7s ease-in-out infinite;
}

.polaroid.p2 {
  right: 4%;
  top: 16%;
  animation: polaroid-3d-b 8s ease-in-out infinite 0.4s;
}

.polaroid.p3 {
  left: 6%;
  bottom: 12%;
  animation: polaroid-3d-c 9s ease-in-out infinite 0.8s;
}

@keyframes polaroid-3d-a {
  0%, 100% { transform: rotateY(-16deg) rotateZ(-12deg) translateZ(12px); }
  50% { transform: rotateY(10deg) rotateZ(-8deg) translateZ(36px) translateY(-10px); }
}

@keyframes polaroid-3d-b {
  0%, 100% { transform: rotateY(14deg) rotateZ(9deg) translateZ(8px); }
  50% { transform: rotateY(-8deg) rotateZ(6deg) translateZ(32px) translateY(-12px); }
}

@keyframes polaroid-3d-c {
  0%, 100% { transform: rotateY(-8deg) rotateZ(6deg) translateZ(10px); }
  50% { transform: rotateY(12deg) rotateZ(3deg) translateZ(28px) translateY(-8px); }
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}

.photo-mosaic figure {
  margin: 0;
  background: #fff;
  padding: 7px 7px 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.photo-mosaic figure:nth-child(1) { transform: rotate(-2.5deg); }
.photo-mosaic figure:nth-child(2) { transform: rotate(2deg); }
.photo-mosaic figure:nth-child(3) { transform: rotate(-1.2deg); }

.photo-mosaic img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
}

.photo-mosaic figcaption {
  font-size: 11px;
  text-align: center;
  margin-top: 7px;
  color: #0a1628;
  font-weight: 500;
}

.venue-shot {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  height: 160px;
}

.venue-shot img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.invite-hero {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  background: rgba(5, 11, 20, 0.78);
  border: 1px solid rgba(230, 248, 251, 0.14);
  border-radius: 22px;
  padding: 34px 42px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  animation: card-3d-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both, card-3d-idle 7s ease-in-out 1.2s infinite;
}

@keyframes card-3d-in {
  0% {
    opacity: 0;
    transform: rotateX(26deg) rotateY(-14deg) translateZ(-90px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
  }
}

@keyframes card-3d-idle {
  0%, 100% { transform: rotateY(-2.4deg) rotateX(1.2deg) translateZ(12px); }
  50% { transform: rotateY(2.8deg) rotateX(-1.4deg) translateZ(28px); }
}

.invite-kicker {
  font-family: "Great Vibes", cursive;
  font-size: 46px;
  color: #ff8a5b;
  margin: 0 0 8px;
  line-height: 1.1;
}

.invite-eyebrow {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 11px;
  color: #7ee7f0;
  font-weight: 600;
  margin: 0 0 18px;
}

.invite-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  line-height: 1.05;
  text-transform: none;
}

.invite-hero h1 span {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 10px;
}

.invite-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 28px;
}

.invite-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 28px;
}

.invite-meta div {
  min-width: 180px;
  padding: 12px 18px;
  border: 1px solid rgba(230, 248, 251, 0.22);
  background: rgba(2, 8, 16, 0.88);
  border-radius: 8px;
}

.invite-meta strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ss-teal);
  margin-bottom: 4px;
  font-weight: 600;
}

.invite-meta span {
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 32px;
}

.countdown .unit {
  width: 76px;
  background: rgba(2, 8, 16, 0.9);
  border: 1px solid rgba(126, 231, 240, 0.35);
  border-radius: 10px;
  padding: 10px 0 8px;
}

.countdown .unit b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.countdown .unit small {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-muted);
}

.invite-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.invite-actions .btn-default,
.slide.first .main-title .main-title-wrapper .btn-default {
  background: linear-gradient(90deg, #009baa, #007a88);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.invite-actions .btn-default:hover,
.slide.first .main-title .main-title-wrapper .btn-default:hover {
  background: linear-gradient(90deg, #ff6b35, #e85a28);
}

.invite-actions .btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.invite-actions .btn-ghost:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.slide .description h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
}

.slide .description dl dt {
  color: var(--ss-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  float: none;
  margin: 12px 0 2px;
}

.slide .description dl dd {
  opacity: 0.92;
  font-size: 16px;
  margin-bottom: 0;
}

.slide .description .invite-note {
  max-width: 420px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.6;
}

.slide .description:after {
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 11, 20, 0.92) 100%) !important;
  height: 560px;
}

.off-screen-content {
  background: #f7fbfc;
  color: #0f172a;
  left: -650px;
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #0a1628;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

body.show-off-screen-content .page-wrapper {
  transform: translateX(650px) !important;
}

.off-screen-content a {
  color: var(--ss-teal-deep);
}

.off-screen-content h2 {
  font-family: "Playfair Display", serif;
  color: var(--ss-navy);
}

.off-screen-content h3 {
  color: var(--ss-teal-deep);
  margin-bottom: 16px;
}

.off-screen-content .image-header {
  background: var(--ss-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.off-screen-content .image-header .bg-transfer {
  z-index: 0;
  opacity: 0.88;
}

.off-screen-content .image-header .header-logo {
  max-height: 72px;
  width: auto;
  mix-blend-mode: screen;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.off-screen-content .price-package {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
}

.off-screen-content .price-package .price {
  position: relative;
  top: auto;
  left: auto;
  min-width: 88px;
  width: 88px;
  min-height: 88px;
  height: auto;
  border-radius: 12px;
  background: linear-gradient(160deg, #009baa, #007a88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px;
  line-height: 1.25;
}

.off-screen-content .price-package .price:before {
  display: none;
}

.off-screen-content .price-package .description {
  margin-left: 0;
  flex: 1;
}

.off-screen-content .event-venue .price {
  background: linear-gradient(160deg, #ff6b35, #e85a28);
}

.off-screen-content .event-rsvp .price {
  background: linear-gradient(160deg, #0a1628, #007a88);
}

.off-screen-content .service .image {
  background: #0a1628;
}

.off-screen-content .social a {
  color: var(--ss-navy);
}

.off-screen-content .btn-default {
  background: var(--ss-orange);
  border-color: var(--ss-orange);
  color: #fff;
}

#map {
  height: 220px;
  width: 100%;
  border: 0;
  display: block;
}

@media (min-width: 768px) and (max-width: 991px) {
  body.show-off-screen-content .page-wrapper {
    transform: translateX(500px) !important;
  }

  .off-screen-content {
    left: -500px;
  }

  .invite-hero {
    max-width: 92%;
    padding: 28px 24px 24px;
  }

  .invite-hero h1 {
    font-size: 42px;
  }

  .polaroid {
    width: 120px;
  }

  .polaroid img {
    height: 100px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  .navigation .brand {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  }

  .navigation .brand img {
    height: 32px;
    max-width: 160px;
  }

  .slide.first .main-title .main-title-wrapper {
    padding: calc(58px + env(safe-area-inset-top, 0px)) 10px 88px;
    vertical-align: middle;
  }

  .invite-hero {
    max-width: 100%;
    padding: 16px 12px 14px;
    border-radius: 16px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }

  .invite-kicker {
    font-size: 26px;
  }

  .invite-eyebrow {
    font-size: 10px;
    letter-spacing: 0.28em;
    margin-bottom: 10px;
  }

  .invite-hero h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .invite-hero h1 span {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .invite-tagline {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  .invite-meta {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .invite-meta div {
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
  }

  .invite-meta span {
    font-size: 15px;
  }

  .countdown {
    gap: 6px;
    margin-bottom: 14px;
  }

  .countdown .unit {
    width: auto;
    flex: 1;
    padding: 8px 0 6px;
  }

  .countdown .unit b {
    font-size: 18px;
  }

  .invite-actions {
    flex-direction: column;
    gap: 8px;
  }

  .invite-actions .btn-default,
  .slide.first .main-title .main-title-wrapper .btn-default,
  .invite-actions .btn-ghost {
    width: 100%;
    padding: 12px 16px;
    font-size: 12px;
  }

  .polaroid-stack {
    display: none;
  }

  .hero-3d .ring {
    display: none;
  }

  .invite-hero {
    animation: card-3d-in 0.9s ease both;
  }

  .slide .description {
    left: 16px;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .slide .description:after {
    left: -16px;
    height: 280px;
  }

  .slide .description h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .slide .description dl dt {
    font-size: 10px;
    margin: 8px 0 2px;
  }

  .slide .description dl dd {
    font-size: 14px;
  }

  .slide .description .invite-note {
    font-size: 13px;
    max-width: none;
    margin-top: 10px;
  }

  .slider-navigation {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .slider-pager {
    width: calc(100% - 118px) !important;
  }

  .slider-pager li a,
  .slider-pager .item a {
    width: 22px;
    height: 22px;
    line-height: 18px;
    font-size: 0;
  }

  .slider-controls {
    transform: none;
    right: 0;
    bottom: 0;
  }

  .slider-controls a {
    width: 40px;
    height: 40px;
    line-height: 36px;
    font-size: 14px;
  }

  .slider-controls .zoom-out {
    display: none;
  }

  body.show-off-screen-content .page-wrapper {
    transform: translateX(100%) !important;
  }

  .off-screen-content {
    width: 100%;
    left: -100%;
  }

  .panel-close {
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 8px;
  }

  .off-screen-content .image-header {
    height: 160px;
  }

  .off-screen-content section .section-wrapper {
    padding: 24px 16px !important;
  }

  .off-screen-content .price-package {
    flex-direction: column;
    gap: 12px;
  }

  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .photo-mosaic figure:nth-child(3) {
    display: none;
  }

  .photo-mosaic img {
    height: 88px;
  }

  .venue-shot,
  .venue-shot img {
    height: 120px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .invite-kicker {
    font-size: 22px;
  }

  .invite-hero h1 {
    font-size: 22px;
  }

  .invite-tagline {
    display: none;
  }

  .countdown {
    margin-bottom: 10px;
  }

  .invite-eyebrow {
    margin-bottom: 6px;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .invite-hero {
    max-height: calc(100dvh - 96px);
    padding: 10px 14px;
  }

  .invite-kicker {
    font-size: 20px;
  }

  .invite-hero h1 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .invite-meta {
    flex-direction: row;
  }

  .countdown .unit b {
    font-size: 16px;
  }

  .slide.first .main-title .main-title-wrapper {
    padding: 48px 12px 72px;
  }
}
