:root {
  --ink: #00293F;
  --cloud: #F6F7EE;
  --sky: #C7E0E2;
  --chilli: #E62D32;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #F6F7EE; /* site-wide background */
}

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
@supports (height: 100dvh) {
  .hero { height: 100dvh; }
}
@supports (height: 100svh) {
  .hero { height: 100svh; }
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #00293F;
  z-index: -1;
  pointer-events: none;
}
.curve-overlay {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 1;
	pointer-events: none;
	
}

/* ─────────────── Header ─────────────── */
/* Header / Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: calc(20px + env(safe-area-inset-top)) 32px 12px;
  z-index: 50;
  background: transparent;
  box-shadow: none;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  will-change: background-color, box-shadow;  /* tiny perf hint */
}

.logo-wrap, .actions { flex: 0 1 auto; }  

/* When scrolled > 100px */
.topbar.scrolled {
  background: #00293F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease; /* smooth fade */
}
.logo {
  pointer-events: auto;
  height: 84px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  display: block;
}
.actions { pointer-events: auto; }


/* Logo wrapper stacks the two images */
.logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;                 /* tight hit area */
  transform-origin: center;
}

/* Shared logo image styles (match your previous .logo) */
.logo-img {
  height: auto;
  width: clamp(120px, 35vw, 300px); /* scales between 120px–300px depending on screen */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: opacity .18s ease, transform .18s ease;
  will-change: transform, opacity;
  display: block;
}

/* Layer the ON image on top, hidden by default */
.logo-on {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;           /* avoid double-hover weirdness */
}

/* Hover effect: cross-fade + quick pop wobble */
.logo-wrap:hover .logo-on {
  opacity: 1;
  transform: scale(1.04);
}
.logo-wrap:hover .logo-off {
  opacity: 0;
  transform: scale(1.02);
}

/* Subtle wobble on the wrapper to feel alive */
.logo-wrap:hover {
  animation: pop-wobble .6s ease both;  /* < 1s as requested */
}

/* Keyframes: quick grow with tiny tilt then settle */
@keyframes pop-wobble {
  0%   { transform: scale(1)    rotate(0deg);   }
  40%  { transform: scale(1.06) rotate(0.4deg); }
  70%  { transform: scale(1.03) rotate(-0.3deg);}
  100% { transform: scale(1.02) rotate(0deg);   }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-wrap:hover { animation: none; }
  .logo-img { transition: opacity .15s linear; } /* keep the swap, no wobble/scale */
}

/* ─────────────── Contact button ─────────────── */
.btn-contact {
  --padY: 10px; --padX: 16px;
  display: inline-block;
  padding: var(--padY) var(--padX);
  color: var(--ink);
  background: var(--cloud);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 25px;
  text-shadow: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: background-color .16s ease, transform .05s ease;
}
.btn-contact:hover {
  background: var(--sky);
  color: var(--ink);
}
.btn-contact:active {
  background: var(--chilli);
  color: #fff;
  transform: translateY(1px);
}

/* ─────────────── Content ─────────────── */

.content {
  position: relative;           /* create stacking context for overlay */
  background: #00293F;
  padding: 60px 20px 60px;
  color: #F6F7EE;
  text-align: center;
}

.text-block {
  font-size: 1.6rem;
  line-height: 1.75;
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
  color: #F6F7EE;
  text-align: center;
}
.text-block p { margin: 2rem 0; }
.text-block strong {
  font-weight: 600;
  color: #C7E0E2;
}

/* ─────────────── Doug character ─────────────── */
.doug-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
	margin-bottom: 4rem;
}

.doug-character {
  width: 500px;           /* adjust this size to taste */
  height: auto;
  max-width: 50%;
  image-rendering: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25)); /* gives subtle depth */
  transition: transform 0.3s ease;
}

.doug-character:hover {
  transform: scale(1.05);
}

/* ─────────────── Bottom curve transition ─────────────── */


/* Bottom curve sits ON the dark section */
.curve-bottom-overlay {
  position: absolute;
  left: 0; right: 0; bottom: -1px; /* tuck it 1px to hide any seam */
  width: 100%;
  height: 110px;                   /* tweak 130–180 to taste */
  pointer-events: none;
  z-index: 1;                      /* above the content background */
	 pointer-events: none;
}
.curve-bottom-overlay path { stroke: none; }




/* ─────────────── Footer ─────────────── */
.footer {
  background: #F6F7EE;
  text-align: center;
  padding: 20px;
  color: #00293F;
  font-size: 0.9rem;
  border-top: none;
}

/* Footer bottom row layout */
.footer-bottom {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;   /* centers copyright by default */
}

/* Logo on the left */
.footer-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;              /* small size – adjust as needed */
  width: auto;
  opacity: 0.9;
}

/* Privacy on the right */
.footer-privacy {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #00293F;
  text-decoration: none;
  font-weight: 400;          /* match copyright weight */
}

.footer-privacy:hover { text-decoration: underline; }


/* ─────────────── Social icons ─────────────── */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-icon img {
  width: 36px;
  height: 36px;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
  filter: invert(14%) sepia(6%) saturate(4642%) hue-rotate(165deg) brightness(94%) contrast(101%); /* #00293F */
}

.social-icon:hover img {
  opacity: 0.7;
  transform: scale(1.08);
}

.social-icon:active img {
  opacity: 0.5;
  transform: scale(0.95);
}




/* ─────────────── Responsive ─────────────── */
@media (max-width: 900px) {
  .text-block { font-size: 1.3rem; }
  .text-block p { margin: 1.6rem 0; }
}
@media (max-width: 480px) {
  .logo { height: 48px; }
  .btn-contact { --padY: 9px; --padX: 14px; }
}

@media (max-width: 768px) {
  .doug-character {
    width: 300px;        /* slightly smaller on mobile */
  }
}

/* Always show the light-on logo on mobile */
@media (max-width: 768px) {
  .logo-on  { opacity: 1; transform: none; }
  .logo-off { opacity: 0; }
  .logo-wrap:hover { animation: none; } /* disable wobble for touch devices */
}

/* Mobile: stack everything nicely */
@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer-logo {
    position: static;
    transform: none;
    margin-bottom: 6px;
    height: 28px;
  }
  .footer-privacy {
    position: static;
    transform: none;
    margin-top: 4px;
  }
}