:root {
  --sky: #8ecae6;
  --teal: #219ebc;
  --deep: #023047;
  --amber: #ffb703;
  --orange: #fb8500;
  --cream: #f7f8fa;
  --white: #ffffff;
  --deep-95: rgba(2, 48, 71, 0.96);
  --text-muted: #355063;
  --border-light: rgba(2, 48, 71, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

.serif {
  font-family: 'Instrument Serif', serif;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.navbar-alt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all .45s cubic-bezier(.4,0,.2,1);
}

.navbar-alt.scrolled {
  background: var(--deep-95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .8rem 0;
  box-shadow: 0 1px 40px rgba(0,0,0,.12);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white) !important;
  letter-spacing: -.03em;
  text-decoration: none;
}

.navbar-brand span {
  color: var(--amber);
}

.nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1.1rem !important;
  transition: color .25s;
  letter-spacing: .01em;
}

.nav-link:hover {
  color: var(--white) !important;
}

.btn-nav-cta {
  background: var(--amber);
  color: var(--deep) !important;
  font-weight: 600;
  font-size: .85rem;
  padding: .55rem 1.6rem !important;
  border-radius: 100px;
  border: none;
  transition: all .3s;
}

.btn-nav-cta:hover {
  background: var(--orange);
  color: var(--deep) !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  background: var(--deep);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

/* Gradient orbs */

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -200px;
  right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,158,188,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid */

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: .4rem 1.2rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sky);
  letter-spacing: .04em;
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .3;
    transform: scale(.8);
  }
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.hero h1 .italic-highlight {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-alt {
  background: var(--amber);
  color: var(--deep);
  font-weight: 600;
  font-size: .9rem;
  padding: .85rem 2.2rem;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .3s;
}

.btn-primary-alt:hover {
  background: var(--orange);
  color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255,183,3,.25);
}

.btn-outline-alt {
  background: transparent;
  color: rgba(255,255,255,.93);
  font-weight: 500;
  font-size: .9rem;
  padding: .85rem 2.2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.36);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .3s;
}

.btn-outline-alt:hover {
  border-color: var(--sky);
  color: var(--sky);
}

/* Hero visual – maze canvas */

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-maze-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

#mazeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
}

/* Soft vignette overlay on the canvas */

.hero-maze-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, transparent 0%, var(--deep) 100%);
}

/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════ */

section {
  padding: 7rem 0;
}

.section-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--teal);
  margin-bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--teal);
}

.section-label-light {
  color: var(--sky);
}

.section-label-light::before {
  background: var(--sky);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.section-title .serif {
  font-weight: 400;
  font-style: italic;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-subtitle-light {
  color: rgba(255,255,255,.76);
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */

.services-section {
  background: var(--cream);
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  border: 1px solid var(--border-light);
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(2,48,71,.07);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-icon.ico-teal {
  background: rgba(33,158,188,.1);
  color: var(--teal);
}

.service-icon.ico-amber {
  background: rgba(255,183,3,.1);
  color: var(--amber);
}

.service-icon.ico-orange {
  background: rgba(251,133,0,.1);
  color: var(--orange);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--deep);
  letter-spacing: -.02em;
}

.service-card .desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.service-tag {
  font-size: .72rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 100px;
  background: var(--cream);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════
   PROCESS (dark section)
   ═══════════════════════════════════════════ */

.process-section {
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 100% 0%, rgba(33,158,188,.07) 0%, transparent 60%);
  pointer-events: none;
}

.process-timeline {
  position: relative;
  padding-left: 3.5rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,183,3,.2) 100%);
}

.process-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.process-item:last-child {
  margin-bottom: 0;
}

.process-dot {
  position: absolute;
  left: -3.5rem;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255,183,3,.1);
  border: 1px solid rgba(255,183,3,.2);
}

.process-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .35rem;
}

.process-item p {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 0;
}

/* Process note card */

.process-note {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-top: 3rem;
}

.process-note p {
  font-size: .95rem;
  color: rgba(255,255,255,.86);
  margin: 0;
  line-height: 1.7;
}

.process-note strong {
  color: var(--amber);
}

/* ═══════════════════════════════════════════
   WHY ALTISERA
   ═══════════════════════════════════════════ */

.why-section {
  background: var(--white);
}

.why-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: linear-gradient(145deg, var(--deep) 0%, #04506d 60%, var(--teal) 100%);
  isolation: isolate;
}

.why-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(2,48,71,.72) 0%, rgba(33,158,188,.56) 58%, rgba(255,183,3,.32) 100%);
  z-index: 2;
  pointer-events: none;
}

.why-visual-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 35%, rgba(142,202,230,.08) 2px, transparent 2px), radial-gradient(circle at 65% 75%, rgba(255,183,3,.06) 2px, transparent 2px);
  background-size: 50px 50px, 70px 70px;
  z-index: 3;
  pointer-events: none;
}

.why-visual-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.why-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.1) brightness(.7);
}

.why-visual-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 5rem;
  color: rgba(255,255,255,.06);
  letter-spacing: -.05em;
  user-select: none;
}

/* Floating decorative cards on the image */

.why-float {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(2,48,71,.18);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 4;
}

.why-float-1 {
  top: 12%;
  right: 8%;
}

.why-float-2 {
  bottom: 12%;
  left: 8%;
}

.why-float .wf-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-float .wf-icon.teal {
  background: rgba(33,158,188,.12);
  color: var(--teal);
}

.why-float .wf-icon.amber {
  background: rgba(255,183,3,.12);
  color: var(--amber);
}

.why-float .wf-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--deep);
}

.why-float .wf-sub {
  font-size: .72rem;
  color: var(--text-muted);
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.why-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.why-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(33,158,188,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.why-list h5 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: .2rem;
}

.why-list p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(155deg, var(--deep) 0%, #04506d 55%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -250px;
  left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,.07) 0%, transparent 60%);
  pointer-events: none;
}

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

.cta-inner > .section-label, .cta-inner > h2, .cta-inner > p, .cta-inner > .cta-actions {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-section h2 .serif {
  font-weight: 400;
  font-style: italic;
  color: var(--amber);
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--amber);
  color: var(--deep);
  font-weight: 600;
  font-size: .9rem;
  padding: .9rem 2.4rem;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .3s;
}

.btn-cta:hover {
  background: var(--orange);
  color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255,183,3,.25);
}

.contact-form-panel {
  margin: 2.5rem auto 0;
  text-align: left;
  max-width: 980px;
}

.contact-form-wrap {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-form-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 .6rem;
}

.contact-form-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 1.75rem;
}

.contact-form, .contact-form input, .contact-form textarea, .contact-form label, .contact-form button {
  font-family: 'DM Sans', sans-serif;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.contact-form-label {
  display: block;
  color: rgba(255,255,255,.92);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.contact-form-field {
  display: block;
  width: 100%;
  min-height: 52px;
  color: var(--deep);
  background: var(--white);
  border: 1px solid rgba(2,48,71,.22);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.35;
  padding: .92rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form-field::placeholder {
  color: rgba(2,48,71,.45);
}

.contact-form-field:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,183,3,.28);
}

textarea.contact-form-field {
  min-height: 220px;
  resize: vertical;
}

.contact-form .mb-3 {
  margin-bottom: 1.25rem !important;
}

.contact-form-submit {
  display: flex;
  justify-content: center;
  min-width: 240px;
  margin: .4rem auto 0;
}

.contact-details {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
}

.contact-detail a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color .2s;
}

.contact-detail a:hover {
  color: var(--amber);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  opacity: .8;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
  background: var(--deep);
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: .65rem;
}

.footer-brand span {
  color: var(--amber);
}

.footer-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  max-width: 300px;
  line-height: 1.7;
}

footer h6 {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.62);
  margin-bottom: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: .55rem;
}

footer ul li a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}

footer ul li a:hover {
  color: var(--amber);
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 3rem;
  padding-top: 1.75rem;
}

.footer-divider p {
  font-size: .78rem;
  color: rgba(255,255,255,.66);
  margin: 0;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: .1s;
}

.reveal-d2 {
  transition-delay: .2s;
}

.reveal-d3 {
  transition-delay: .3s;
}

.reveal-d4 {
  transition-delay: .4s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 991px) {
  .hero-visual {
    margin-top: 3rem;
  }
}

@media (max-width: 991px) {
  .hero-maze-wrap {
    max-width: 380px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 5rem 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }
}

@media (max-width: 767px) {
  .hero-maze-wrap {
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .why-float {
    display: none;
  }
}

@media (max-width: 767px) {
  .contact-form-wrap {
    padding: 1.35rem 1.15rem;
  }
}

@media (max-width: 767px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: .75rem 0;
  }
}

@media (max-width: 767px) {
  .contact-form-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

