/* ==========================================================================
   1. CANDOR DESIGN VARIABLES & UTILITIES
   ========================================================================== */
:root {
  --candor-dark: #040404;
  --candor-orange: #EB6110;
  --candor-eggshell: #faf3dd;
  --candor-tea-green: #c8d5b9;
  --candor-muted-teal: #8fc0a9;
  --candor-tropical-teal: #68b0ab;
  --candor-jungle-teal: #4a7c59;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.candor-fade-up {
    will-change: transform, opacity;
}

.candor-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. CANDOR MAIN HEADER (FLOATING PILL & SMART SCROLL)
   ========================================================================== */
.candor-main-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* Centers the header */
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  z-index: 9999 !important; 
  padding: 20px 40px;
  /* Transitions to allow morphing into the pill shape */
  transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, width 0.4s ease, max-width 0.4s ease, border-radius 0.4s ease, top 0.4s ease;
}

/* Slide header completely out of view when scrolling down */
.candor-main-header.candor-header-hidden {
  transform: translate(-50%, -150%);
}

/* Scrolled State: The Floating Light Pill */
.candor-main-header.candor-header-scrolled {
  top: 20px;
  width: 90%; 
  max-width: 1200px;
  border-radius: 50px; 
  background-color: rgba(250, 243, 221, 0.95); /* Light eggshell */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 30px; 
}

.candor-header-inner, .candor-menu-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.candor-menu-toggle, .candor-menu-close { justify-self: start; }
.candor-logo-link, .candor-logo-link-overlay { justify-self: center; }
.candor-header-cta, .candor-menu-spacer { justify-self: end; }

/* SVG Logo Dimension Locks (Kept your 260px size) */
.candor-top-logo, .candor-overlay-logo, .candor-footer-logo { 
  width: 260px !important; 
  max-height: 80px !important; 
  height: auto !important;
  object-fit: contain; 
  display: block;
  transition: width 0.4s ease; /* Smooth shrink transition */
}

/* Shrink the logo to 160px when the header becomes a pill */
.candor-main-header.candor-header-scrolled .candor-top-logo {
  width: 160px !important; 
}

.candor-overlay-logo, .candor-footer-logo {
  filter: brightness(0) invert(1) !important; 
}

/* Custom Hamburger Button */
.candor-menu-toggle, .candor-menu-close {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--candor-dark);
  padding: 0 !important;
}

.candor-hamburger-text, .candor-close-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.candor-hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.candor-line {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--candor-dark);
  transition: transform 0.3s ease, width 0.3s ease;
}

.candor-menu-toggle:hover .candor-line:last-child { width: 18px; }

/* Call to Action Button */
.candor-header-cta {
  background-color: var(--candor-tropical-teal);
  color: var(--candor-eggshell) !important;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.candor-header-cta:hover {
  background-color: var(--candor-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. FULL-SCREEN OVERLAY MENU
   ========================================================================== */
.candor-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--candor-jungle-teal); 
  z-index: 10000;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  overflow-y: auto;
  color: var(--candor-eggshell);
}

.candor-menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.candor-menu-shape { position: absolute; border-radius: 50%; opacity: 0.2; }
.candor-menu-shape-1 { width: 100vw; height: 100vw; background-color: var(--candor-tropical-teal); top: -30%; right: -20%; }
.candor-menu-shape-2 { width: 80vw; height: 80vw; background-color: var(--candor-dark); bottom: -20%; left: -20%; }

.candor-menu-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.candor-menu-close { color: var(--candor-eggshell) !important; }
.candor-close-icon { font-size: 22px; }

.candor-menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  margin-top: 50px;
}

/* Resized Primary Links (Multi-Color Sequence) */
.candor-primary-nav { text-align: right; }
.candor-primary-nav ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.candor-primary-nav li { margin-bottom: 5px !important; overflow: visible !important; }

.candor-primary-nav a {
  display: inline-block;
  font-size: clamp(32px, 5vw, 56px) !important; 
  font-weight: 700;
  line-height: 1.2 !important; 
  padding: 5px 0 10px 0 !important; 
  color: var(--candor-eggshell) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  position: relative;
  box-shadow: none !important;
  transition: color 0.4s ease; 
}

.candor-primary-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0px; 
  left: 0;
  background-color: var(--candor-eggshell);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
}

.candor-primary-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

.candor-primary-nav li:nth-child(1) a:hover { color: var(--candor-tea-green) !important; }
.candor-primary-nav li:nth-child(1) a:hover::after { background-color: var(--candor-tea-green); }
.candor-primary-nav li:nth-child(2) a:hover { color: var(--candor-tropical-teal) !important; }
.candor-primary-nav li:nth-child(2) a:hover::after { background-color: var(--candor-tropical-teal); }
.candor-primary-nav li:nth-child(3) a:hover { color: var(--candor-muted-teal) !important; }
.candor-primary-nav li:nth-child(3) a:hover::after { background-color: var(--candor-muted-teal); }
.candor-primary-nav li:nth-child(4) a:hover { color: var(--candor-orange) !important; }
.candor-primary-nav li:nth-child(4) a:hover::after { background-color: var(--candor-orange); }
.candor-primary-nav li:nth-child(5) a:hover { color: var(--candor-tea-green) !important; }
.candor-primary-nav li:nth-child(5) a:hover::after { background-color: var(--candor-tea-green); }

/* Secondary Links */
.candor-secondary-nav { display: flex; flex-direction: column; gap: 40px; }
.candor-nav-block .candor-nav-title { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--candor-dark); margin-bottom: 15px; opacity: 0.6; }
.candor-nav-block ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.candor-nav-block a { color: var(--candor-eggshell) !important; text-decoration: none !important; font-size: 18px; font-weight: 500; line-height: 2; transition: color 0.3s ease; box-shadow: none !important; }
.candor-nav-block a:hover { color: var(--candor-dark) !important; }


/* ==========================================================================
   4. HERO SEQUENCE & CURVE TRANSITION
   ========================================================================== */
.candor-hero-sequence { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    background-color: var(--candor-dark); 
    overflow: hidden; 
    color: var(--candor-eggshell); 
}

.candor-hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.candor-hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.candor-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,4,4,0.3) 0%, rgba(4,4,4,0.8) 100%); z-index: 2; }

.candor-hero-text-wrapper { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; justify-content: center; }
.candor-hero-slide { position: absolute; text-align: center; width: 100%; padding: 0 20px; opacity: 0; visibility: hidden; }

.candor-massive-title { font-size: clamp(40px, 6vw, 90px); font-weight: 700; line-height: 1.05; margin-bottom: 20px; letter-spacing: -0.03em; }
.candor-hero-sub { font-size: clamp(18px, 2vw, 24px); font-weight: 400; opacity: 0.9; }

/* The Sweeping SVG Curve */
.candor-hero-curve { position: absolute; bottom: -2px; left: 0; width: 100%; height: 8vw; min-height: 50px; z-index: 10; pointer-events: none; }
.candor-hero-curve svg { width: 100%; height: 100%; display: block; }
.candor-hero-curve svg path { fill: var(--candor-tropical-teal); } /* Perfectly matches the gallery start color */


/* ==========================================================================
   5. SPATIAL STAGGER GALLERY
   ========================================================================== */
.candor-exp-wrap { 
    background-color: var(--candor-tropical-teal); /* Starts bold and colored */
    color: var(--candor-eggshell); /* Starts with light text */
}

.candor-exp-sticky { position: relative; width: 100%; height: 100vh; overflow: hidden; }

/* Top Layout - Labels start hidden */
.candor-gallery-label-left, .candor-gallery-label-right { 
    position: absolute; top: 40px; font-size: 12px; text-transform: uppercase; 
    letter-spacing: 1px; font-weight: 600; opacity: 0; z-index: 10; 
}
.candor-gallery-label-left { left: 40px; }
.candor-gallery-label-right { right: 40px; }

/* Title starts hidden */
.candor-exp-title { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: clamp(40px, 6vw, 80px); 
    font-weight: 700; 
    letter-spacing: -0.03em; 
    z-index: 10; 
    text-align: center; 
    width: 100%; 
    opacity: 0; 
    visibility: hidden; 
}

/* The Moving Images */
.candor-exp-images { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.c-img { position: absolute; overflow: hidden; transform: translate(-50%, -50%); will-change: top, left, width, height, border-radius; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.c-img img { width: 100%; height: 100%; object-fit: cover; }

/* The Crossfading Text */
.candor-exp-texts { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); width: 350px; z-index: 3; }
.c-txt { position: absolute; top: 50%; right: 0; transform: translateY(-50%); opacity: 0; visibility: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.c-num { font-size: 12px; font-weight: 700; border: 1px solid var(--candor-dark); padding: 4px 10px; border-radius: 20px; margin-bottom: 20px; }
.c-txt p { font-size: 20px; line-height: 1.5; margin-bottom: 20px; }
.c-txt strong { font-weight: 700; display: block; margin-bottom: 5px; }

.c-link { color: var(--candor-dark); text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--candor-dark); transition: color 0.3s, border-color 0.3s; padding-bottom: 2px; }
.c-link:hover { color: var(--candor-tropical-teal); border-color: var(--candor-tropical-teal); }

/* The Final Reveal Text */
.candor-exp-end { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 900px; text-align: center; z-index: 5; opacity: 0; visibility: hidden; }

/* Vertical Line-by-Line Gradient Fill */
.c-reveal-text { 
    font-size: clamp(28px, 4vw, 56px); 
    line-height: 1.2; 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    margin-bottom: 40px; 
    background: linear-gradient(to bottom, var(--candor-dark) 50%, rgba(4, 4, 4, 0.15) 50%);
    background-size: 100% 200%; /* Stretched vertically */
    background-position: 0 100%; /* Starts light gray at the bottom */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.c-end-cta { display: inline-block; margin: 0 auto; }


/* ==========================================================================
   6. FOOTER REVEAL & STYLING
   ========================================================================== */
#colophon { display: none !important; }
body { background-color: transparent !important; }

#wrapper {
  background-color: #ffffff !important; 
  position: relative;
  z-index: 10 !important; 
  min-height: 100vh; 
  box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.15); 
  transition: margin-bottom 0.3s ease; 
}

.candor-reveal-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  z-index: -1 !important; 
  background-color: var(--candor-jungle-teal); 
  color: var(--candor-eggshell);
  padding: 80px 40px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden; 
}

/* Footer Parallax Shapes */
.candor-footer-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.candor-shape { position: absolute; width: 150vw; height: 1000px; border-radius: 50%; left: -25vw; }
.candor-shape-1 { top: -750px; background-color: var(--candor-tea-green); opacity: 0.1; }
.candor-shape-2 { top: -650px; background-color: var(--candor-muted-teal); opacity: 0.2; }
.candor-shape-3 { top: -500px; background-color: var(--candor-tropical-teal); opacity: 0.3; }

/* Footer Layout */
.candor-reveal-footer .candor-footer-inner { max-width: 1290px; margin: 0 auto; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.candor-reveal-footer .candor-footer-logo { margin-bottom: 20px; }
.candor-reveal-footer .candor-footer-contact p { color: var(--candor-tea-green); font-size: 14px; line-height: 1.6; margin: 0 0 10px 0; }
.candor-reveal-footer .candor-footer-contact p strong { color: var(--candor-eggshell); font-weight: 600; }

.candor-reveal-footer .candor-footer-nav { display: flex !important; gap: 60px; flex-wrap: wrap; }
.candor-reveal-footer .candor-nav-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--candor-tea-green); margin-bottom: 15px; opacity: 0.8; font-weight: 600; }

.candor-reveal-footer .candor-nav-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.candor-reveal-footer .candor-nav-col a {
  color: var(--candor-eggshell);
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.2;
  box-shadow: none !important;
  display: inline-block;
  position: relative;
}

.candor-reveal-footer .candor-nav-col a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 4px;
  left: 0;
  background-color: var(--candor-eggshell);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.candor-reveal-footer .candor-nav-col a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Footer Newsletter */
.candor-reveal-footer .candor-footer-newsletter { max-width: 300px; width: 100%; }
.candor-reveal-footer .candor-newsletter-title { display: block; font-size: 24px; font-weight: 700; margin-bottom: 15px; color: var(--candor-eggshell); }
.candor-reveal-footer .candor-newsletter-form { display: flex; border-bottom: 1px solid var(--candor-muted-teal); padding-bottom: 5px; }
.candor-reveal-footer .candor-newsletter-form input { background: transparent !important; border: none !important; color: var(--candor-eggshell) !important; font-size: 16px; flex-grow: 1; outline: none !important; padding: 0 !important; box-shadow: none !important; }
.candor-reveal-footer .candor-newsletter-form input::placeholder { color: var(--candor-muted-teal); opacity: 1; }
.candor-reveal-footer .candor-newsletter-form button { background: transparent !important; border: none !important; color: var(--candor-eggshell) !important; font-size: 20px; cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; padding: 0 10px !important; }
.candor-reveal-footer .candor-newsletter-form button:hover { color: var(--candor-tea-green) !important; transform: translateX(5px); }


/* ==========================================================================
   7. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  /* Header Mobile */
  .candor-main-header { padding: 15px 20px; }
  .candor-menu-content { padding: 20px; }
  .candor-header-inner, .candor-menu-top { grid-template-columns: auto 1fr auto; gap: 15px; }
  .candor-menu-grid { flex-direction: column-reverse; align-items: flex-start; gap: 40px; margin-top: 30px; }
  .candor-primary-nav { text-align: left; }
  .candor-hamburger-text, .candor-close-text, .candor-header-cta { display: none; }
  
  /* Gallery Mobile */
  .candor-gallery-label-left, .candor-gallery-label-right { display: none; }
  .candor-exp-texts { right: 5%; width: 90%; top: 75%; text-align: center; }
  .c-txt { align-items: center; }

  /* Footer Mobile */
  .candor-reveal-footer { padding: 60px 20px 30px !important; }
  .candor-reveal-footer .candor-footer-inner { flex-direction: column; }
  .candor-reveal-footer .candor-footer-nav { flex-direction: column; gap: 10px !important; margin: 30px 0; }
  .candor-reveal-footer .candor-nav-col ul { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
  .candor-reveal-footer .candor-nav-label { cursor: pointer; position: relative; padding: 15px 0; margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
  .candor-reveal-footer .candor-nav-label::after { content: '+'; position: absolute; right: 0; font-size: 20px; font-weight: 300; transition: transform 0.3s ease; }
  .candor-reveal-footer .candor-nav-label.candor-active-accordion::after { transform: rotate(45deg); }
}