/* Thin - 100 */
@font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
  }
  
  /* Light - 300 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
  }
  
  /* Regular - 400 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
  }
  
  /* Medium - 500 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
  }
  
  /* Semibold - 600 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
  }
  
  /* Bold - 700 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
  }
  
  /* Black - 900 */
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
  }
  @font-face {
    font-family: 'Calibre';
    src: url('/assets/fonts/calibre/Calibre-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
  }

  /* Thin - 100 */
@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
  }
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
  }
  
  /* Extra Light - 200 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-XLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
  }
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-XLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
  }
  
  /* Light - 300 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
  }
  
  /* Book (Regular) - 400 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-BookItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
  }
  
  /* Medium - 500 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
  }
  
  /* Bold - 700 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }
  
  /* Black - 900 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
  }
  
  /* Ultra - 950 */
  @font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/Gotham-UltraItalic.otf') format('opentype');
    font-weight: 950;
    font-style: italic;
  }
/* Base Setup */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Calibre', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

html, body {
    height: 100%;
    overflow: hidden;
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

tb-header {
  display: block;
  width: 100%;
}
tb-sidebar {
  display: block;
}

h1, h2, h3, h4, h5 {
    font-weight: 500; 
    font-family: 'Gotham', sans-serif; 
    letter-spacing: -0.02em; 
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3.2rem, 10vw, 5.4rem); }
h2 { font-size: clamp(2.6rem, 8vw, 4.3rem); }
h3 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h4 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h5 { font-size: clamp(1.4rem, 4vw, 2.2rem); }

p, a, li, span {
    font-size: 1.8rem; /* Requested base size */
    font-weight: 300; /* Light weight for elegance */
    color: inherit; /* Links will now take the color of their parent */
}

a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.slide-footer p, .sidebar p {
    color: #FFF; 
    font-size: 1.28rem;
}

/* Scroll Snap Sections */
main {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

section:nth-child(1) { background: #1a1a1a; }
section:nth-child(2) { background: #ffffff; }
section:nth-child(3) { background: #11283B; }
section:nth-child(4) { background: #1a1a1a; }


/* Fixed Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 70px 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header .line {
  width: 28px;
  height: 3px;
  border-radius: 4px;
  background: white;
  transition: background 0.3s;
}

.line.line-navy {
  background-color: #11283B !important;
}

header .logo { 
    width: auto; 
    height: 120px; 
}

@media (max-width: 768px) {
  header .logo {
      height: 80px; /* Smaller header for mobile */
  }
  header .menu-btn{
    zoom: 0.9;
  }
  header .circle{
    zoom: 0.9;
  }
  .chapter-2 {
      /* Add a buffer at the top so the observer has time to fire */
      padding-top: 70px; 
  }
}

/* Main Toggle Assembly */
.menu-wrapper {
    position: relative;
    overflow: visible;
    transition: opacity 0.3s ease;
}

.menu-wrapper.active {
    opacity: 0;
    pointer-events: none;
}

.menu-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Solid Circle (Drop & Scale) */
.circle-fill {
    position: absolute;
    top: 5px; 
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #F5A9B8;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.hamburger {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



/* Interaction Logic */
.menu-btn:hover .circle-fill {
    top: 50%;
    transform: translate(-50%, -110%) scale(3);
}

.menu-btn:hover .hamburger {
    transform: translateY(-8px); /* Shifts up as circle drops */
}

.menu-btn:hover .line {
    opacity: 90%;
}

/* MacOS Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -480px;
  width: 450px;
  height: 100%;
  /* Gradient: 100% white to 80% white */
  background: linear-gradient(
      to bottom, 
      rgba(255, 255, 255, 0.95) 75%, 
      rgba(255, 255, 255, 0.7) 100%
  );
  /* Apply uniform blur */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  

  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  padding: 100px 40px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 600px) {
    .sidebar {
        right: -470px;
        width: 440px;
    }
  }
  
.sidebar.active {
    right: 0;
}

/* Close Button inside Sidebar (X Only) */
.close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-logo {
  /* Initial State */
  opacity: 0;
  transform: translateX(5px);
  transition: 
      opacity 0.4s ease-out 0.2s, 
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.sidebar.active .sidebar-logo {
  opacity: 1;
  transform: translateX(0);
}

.close-btn:hover {
    transform: scale(1.25);
}

.x-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #000;
}
.x-line:nth-child(1) { transform: rotate(45deg); }
.x-line:nth-child(2) { transform: rotate(-45deg); }

/* Sidebar UI Elements */
.sidebar img { width: 60px; margin-bottom: 40px; }
nav ul { list-style: none; }
nav .bold-links a { font-weight: 400; text-transform: uppercase; font-size: 1.5rem;}
nav .reg-links a { font-weight: 300; font-size: 1.25rem; letter-spacing: 0.4px;}
nav a { text-decoration: none; color: #11283b; }

.divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 30px 0;
}

@media (max-width: 600px) {
    header { padding: 20px; }
    section { font-size: 2rem; }
    .sidebar { width: 80%; }
}


/* Scrollbar Replacement */
::-webkit-scrollbar {
  width: 8px; 
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: #555;
  border: 2px solid #fff; /* Makes the bar look slimmer/cleaner */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* Firefox - slightly more subtle */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #fff;
}

/* Mobile Adjustments */
/* Mobile Adjustments (768px and below) */
@media (max-width: 768px) {
  html, body {
      /* Allow the document to scroll naturally */
      height: auto; 
      overflow-y: auto; 
      overflow-x: hidden;
      /* Fix for iOS Safari bounce and height issues */
      min-height: -webkit-fill-available;
  }

  main {
      /* Remove the scroll-container constraints from desktop */
      height: auto;
      width: 100%;
      overflow: visible; /* Let the body handle the scrolling */
      scroll-snap-type: none;
  }

  section {
      scroll-snap-align: none;
      /* 100dvh prevents the 'pushed down' look caused by Safari's UI */
      min-height: 100dvh; 
      height: auto;
      display: flex;
      flex-direction: column;
  }
}

/* Sidebar*/
/* --- Apple Clock Link Animation --- */
nav li {
    perspective: 1000px; /* Required for 3D rotation */
    overflow: hidden;
}

nav li a {
    display: block;
    /* The "Clock" Start Position: Below and tilted back 90 degrees */
    transform: translateY(100%) rotateX(-90deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}

/* Triggered when sidebar is active */
.sidebar.active nav li a {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}

.apple-link a {
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
    padding: 10px 0px 10px 0px;
    
}

.bold-links a{
  font-family: 'Gotham';
}

.reg-links a{
  font-family: 'Calibre';
}

.apple-link a:hover {
    background: rgba(0, 0, 0, 0.05); /* Soft macOS-style hover */
}


.social-wrapper {
    display: flex;
    align-items: center;
    margin-top: 70px;
    gap: 10px;
  }
  
  .social-box {
    position: relative; /* Necessary for absolute positioning of icons */
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    overflow: hidden;
  }
  
  /* Base styles for both icon containers */
  .icon-default, 
  .icon-hover {
    position: absolute;
    width: 32px; /* Size of the icon inside the 36px circle */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* --- DEFAULT STATE --- */
  .icon-default {
    opacity: 1;
    visibility: visible;
  }
  
  .icon-hover {
    opacity: 0;
    visibility: hidden;
  }
  
  .icon-inline {
    /* This forces the SVG to be exactly 20px tall */
    height: 20px; 
    width: auto; /* Keeps the aspect ratio correct */
    
    /* This prevents the "jumping up" */
    display: inline-block;
    vertical-align: -15%; /* Fine-tunes the icon to sit on the baseline */
    
    /* Makes it inherit text color */
    fill: currentColor;
  }
  
  .social-box:hover .icon-default {
    opacity: 0;
    visibility: hidden;
  }
  
  .social-box:hover .icon-hover {
    opacity: 1;
    visibility: visible;
  }
  
  /* Ensures any SVG inserted fills the container correctly */
  .social-box svg {
    width: 100%;
    height: 100%;
    display: block;
  }


/* Staggered delays for the "Rolling" effect */
.sidebar.active .bold-links li:nth-child(1) a { transition-delay: 0.1s; }
.sidebar.active .bold-links li:nth-child(2) a { transition-delay: 0.15s; }
.sidebar.active .bold-links li:nth-child(3) a { transition-delay: 0.2s; }
.sidebar.active .reg-links li:nth-child(1) a { transition-delay: 0.25s; }
.sidebar.active .reg-links li:nth-child(2) a { transition-delay: 0.3s; }


.sidebar.active {
    opacity: 1;
}
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1998; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.sidebar.active ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar {
  transition: all 0.4s ease;
}

.reg-links{
    padding-top: 100px;
}


/* --- Global Button Style --- */
.custom-btn {
    background: none;
    border: 2px solid #8bd4e5;
    color: #FFFFFF;
    padding: 12px 30px;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.custom-btn:hover {
    background: #8bd4e5;
}

/* --- Chapter 1: Video Layout --- */
.chapter-1 {
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay-left-bottom {
    position: absolute;
    left: 5rem;
    bottom: 50px;
    text-align: left;
    max-width: 550px;
}

@media (max-width: 768px) {
  .overlay-left-bottom {
    left:2.4rem;
    zoom: 0.9;
    max-width: 350px;
  }
}

.chapter-1 {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Slider logic */
.slider-container, .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Dots Navigation Style */
.slider-dots {
  position: absolute;
  bottom: 30px;
  right: 50px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px; 
  padding: 12px 24px;
  cursor: pointer;
}
.custom-btn.navy text {
  color: #11283B;
  font-weight: 400;
}

.custom-btn text {
  transform: translateY(3px); 
}

.btn-icon {
  height: auto;
}
/* --- Chapter 2: 50/50 Split --- */
.chapter-2 { display: flex;
    flex-direction: column; 
    width: 100%; 
    color: #11283B!important;
}

    @media (min-width: 769px) {
        .chapter-2 {
          flex-direction: row; /* Aligns them side-by-side */
          align-items: center; /* Vertically centers content if heights differ */
        }
    }
    @media (max-width: 768px) {
      .chapter-2 {
          flex-direction: column !important; 
      }
    }

.split-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding-left: 5rem;
}

@media (max-width: 768px) {
  .chapter-2 .split-left  {
    padding-left: 0rem!important;
    zoom: 0.8;
    max-width: 75%;
    padding-top: 1rem;
  }
}

.split-right {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.responsive-container {
  width: 100%; /* Occupies full width on mobile */
  padding: 0;
}

@media (min-width: 768px) {
    .responsive-container {
      float: right;       
      width: 100%;         
      padding-right: 40px; 
      box-sizing: border-box; 
    }
  }



/* --- Chapter 3: 3D Image Gallery --- */
.chapter-3 {
    display: flex;
    height: 100vh;
    width: 100%;
    perspective: 2000px; 
    overflow: hidden;
    background: #000; /* Solid black base */
}

.gal-col {
    flex: 1;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transform-style: preserve-3d;
    /* transition flex and transform together for smoothness */
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease;
    will-change: flex, transform;
}

/* 1. MASK: Unified to prevent cracks */
.gal-mask {
    position: absolute;
    inset: 0px; 
    background: rgba(0, 0, 0, 0.6); /* Darker default for better contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease;
    backface-visibility: hidden;
}

/* 2. TEXT: Unified 3D depth */
.gal-mask h3 {
    color: #fff;
    font-size: 1.2rem;
    padding-top: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    transform: translateZ(0); /* Default flat */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

@media (min-width:1024px){
  .gal-mask h3{font-size: 1.4rem;}
}
/* 3. DIMMING: Dim columns when the gallery is being interacted with */
.chapter-3:hover .gal-col,
.chapter-3.has-active .gal-col {
    opacity: 0.5;
}

/* 4. ACTIVE & HOVER STATE: Combined logic */
/* We use the same values for both manual hover and JS autoplay */
.gal-col:hover, 
.gal-col.active {
    flex: 2; /* Increased width */
    opacity: 1 !important;
    z-index: 10;
    transform: translateZ(100px) rotateY(2deg);
    box-shadow: 0 50px 100px 50px rgba(0,0,0,0.5);
}

/* 5. ACTIVE/HOVER MASK & TEXT POP */
.gal-col:hover .gal-mask,
.gal-col.active .gal-mask {
    background: rgba(0, 0, 0, 0.1); /* Clearer view */
}

.gal-col:hover .gal-mask h3,
.gal-col.active .gal-mask h3 {
    transform: translateZ(120px) scale(1.1); /* Pops toward user */
}

/* --- Mobile Stack --- */
@media (max-width: 1024px) {
    .chapter-3 {
        flex-direction: column;
        perspective: none;
        height: auto;
    }
    .gal-col {
        flex: none !important;
        width: 100%;
        height: 25vh;
        transform: none !important;
    }
    .gal-col.active, .gal-col:hover {
        flex: none !important;
        transform: none !important;
    }
}



/* --- Chapter 4: Responsive Layout --- */
.chapter-4 {
    display: flex;
    flex-direction: column; /* Mobile: Stacked vertically */
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.slide-left {
    flex: 0 0 75%;
    
    position: relative;
    width: 100%;

    /* Flexbox Alignment */
    display: flex;
    flex-direction: column;   /* Stack children vertically */
    justify-content: center;  /* Center content on the Y-axis */
    align-items: flex-start;  /* Align content to the left X-axis */
    
    /* Spacing */
    padding-left: 50px;        /* Creates the left alignment padding */
    box-sizing: border-box;
    text-align: left;         /* Ensures text itself doesn't center */
}
.sl-bg-1{
  background: url('assets/images/FooterImg1.jpg') center/cover no-repeat;
}
.sl-bg-2{
  background: url('assets/images/FooterImgC1.jpg') center/cover no-repeat;
}
/* Ensure the inner content doesn't stretch too wide */
.centered-content {
    max-width: 600px;
}

@media (max-width: 768px) {
  .centered-content {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 0rem!important;
    zoom: 0.8;
    max-width: 75%;
}
}


.slide-footer {
    flex: 1; /* Occupies remaining space */
    width: 100%;
    height: 100%;
    background: #11283b;
    color: #11283b;
    padding: 40px 20px; /* Smaller padding for mobile */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* --- Desktop Refinement --- */
@media (min-width: 1024px) {
    .chapter-4 {
        flex-direction: row; /* Desktop: Side-by-side */
        height: 100vh;
    }

    .slide-left {
        flex: 0 0 75%; /* Your original 75% width */
        height: 100%;
    }

    .slide-footer {
        flex: 0 0 25%; /* Your original 25% width */
        padding: 80px 40px;
        border-left: 1px solid rgba(0,0,0,0.05);
    }
}
@media (max-width: 768px){
  .slide-left{
    zoom: 0.9;
  }
}

@media (max-width: 768px){
  .chapter-4 {
    background-color: #11283B!important;
    padding-top: 70px;
}
}
@media (min-width: 769px) and (max-width: 1023px){
  .chapter-4 {
    background-color: #11283B!important;
    padding-top: 140px;
}
}
/* --- Footer Content Styling --- */
.footer-nav { list-style: none; margin: 20px 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { text-decoration: none; color: #11283b; font-weight: 600; font-size: 0.9rem; }
.copyright { font-size: 1rem!important; margin-top: auto; opacity: 0.6; }


  
  .responsive-img {
    width: 100%;
    max-height: calc(100vh - 120px); 
    
    margin-top: 70px; 
    
    object-fit: cover; 
    display: block;
}
  


.c-item {
    position: absolute;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.05);
}

.centered-content{
padding-left: 50px;
}

/* Interactive Hover state */
.c-item:hover {
    transform: scale(1.15) rotate(1deg);
    z-index: 100; /* Always bring hovered image to the very top */
    box-shadow: 0 40px 80px rgba(0,0,0,1);
    border: 1px solid #8bd4e5; /* Your requested accent color */
}

.highlight{
    color: #8bd4e5!important;
}

.content-box{
    max-width: 80%;
}


/*centred chapter for letter*/
.chapter-centered {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.centered-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  padding: 2rem;
}

.quote-context p {
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.vertical-bar {
  width: 2px;
  height: 80px;
  background-color: #ffffff;
}

.center-logo img {
  max-width: 150px;
  height: auto;
}

@media (max-width: 768px) {
  .quote-context p {
      font-size: 1.2rem;
  }
  .vertical-bar {
      height: 60px;
  }
}

/*macbook mockup*/
/* Ensure the parent allows 3D depth */
.responsive-container {
  perspective: 1000px;
}

.mockup-animation {
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform; /* Optimizes for smoother animation */
}

/* Subtle Desktop Hover */
@media (min-width: 769px) {
  .mockup-animation:hover {
      /* Subtle lift and very slight tilt */
      transform: translateY(-12px) scale(1.03) rotateX(2deg);
      filter: brightness(1.05); /* Slight "glow" effect */
  }
}

/* Mobile: No tilt, just a very slight press effect */
@media (max-width: 768px) {
  .mockup-animation:active {
      transform: scale(0.97);
      transition: transform 0.2s ease;
  }
}


/*contact*/
/* --- FORM LAYOUT --- */
.header-area{
  width: 90vw;
}
.contact-form-slide {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-top: 50px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 40px;
  width: 100%;
}

.field-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Space between label and input */
}

/* --- RESET & REMOVE BASIC STYLING --- */
.field-wrapper input, 
.field-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  padding: 10px 0;
  color: #ffffff;
  font-size: 1.1rem;
  outline: none;
  appearance: none; /* Removes mobile default styling */
  -webkit-appearance: none;
  border-radius: 0;
}

/* Remove the resize triangle from textarea */
.field-wrapper textarea {
  resize: none; 
  display: block;
  overflow: hidden; /* Keeps it as a clean line */
}

/* --- PERSISTENT LABELS --- */
.field-wrapper label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  letter-spacing: -0px;
  font-weight: 300;
}

/* --- FIXED BUTTON --- */
.custom-btn.fixed-width {
  width: 200px;
  min-width: 200px;
  justify-content: center;
  margin-top: 15px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .form-row {
      flex-direction: column;
      gap: 35px;
  }

  .contact-form-slide {
      align-items: flex-end;
  }

  .field-wrapper {
      text-align: left;
  }

  .field-wrapper input, 
  .field-wrapper textarea {
      text-align: left;
      width: 80vw;
  }

  .custom-btn.fixed-width {
      width: 100%;
  }
}

/* Ensure all inputs and textareas start from the exact same pixel */
.field-wrapper input, 
.field-wrapper textarea {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box; /* Forces padding to stay inside the width */
}

/* Specific fix for textareas which sometimes have a 1px-2px offset */
.field-wrapper textarea {
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Reset any inherited padding from global styles */
    padding: 10px 0; 
}

/* Ensure the wrapper doesn't have accidental padding */
.field-wrapper.full-width {
    width: 100%;
    padding: 0;
}

/*leadership*/
/* 1. SECTION: Unlimited height, no overflow */
.leadership-section {
  background-color: #fff;
  width: 100%;
  height: auto;           /* Allows section to grow with cards */
  min-height: 100vh;      /* Ensures it fills the screen at minimum */
  position: relative;
  display: block;         /* Reset flex to allow standard vertical scrolling */
  padding-top: 6rem;
}

@media (min-width: 1024px){
  .leadership-section{
    padding-top: 4rem;
  }
}

/* 2. CONTAINER: Limits width and centers content */
.leadership-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

/* 3. HEADER: Fixed at top of its container during scroll */
.leadership-header {
  position: absolute;
  position: relative; 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 100;
  background-color: #ffffff;
  padding: clamp(40px, 6vw, 80px) 0 30px 0;
  text-align: center;
}

.leadership-header .sub-heading {
  display: block;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 10px;
}

.leadership-header .main-heading {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #11283B;
  font-weight: 700;
  margin: 0;
}

/* 4. GRID: Standard flow, proportional gaps */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  padding-top: 20px;
  padding-bottom: 5rem;
  padding-left: 5rem;
  padding-right: 5rem;
  background-color: #ffffff;
}
@media (max-width:768px){
  .leadership-grid {
    padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-bottom: 50px;
  }
}
/* 5. CARDS: 3D Paper Style, Sharp Corners */
.leader-card {
  background: #ffffff;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid #f2f2f2;
  border-radius: 0; /* Strict square corners */
  /* Shadow concentrated at bottom for 3D depth */
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

/* Internal Card Details */
.leader-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 30px;
}

.leader-icon img {
  width: 100%;
  height: auto;
}

.leader-intro {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 8px;
}

.leader-name {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: #11283B;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.leader-title {
  font-size: 0.9rem;
  color: #11283B;
  opacity: 0.7;
  margin-bottom: 25px;
}

.leader-description p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: #444;
}

/* 6. MOBILE: Proportional zoom and grid collapsing */
@media (max-width: 1100px) {
  .leadership-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .leadership-grid {
      grid-template-columns: 1fr;
  }
  
  .leadership-header {
      padding-top: 30px;
  }
  
  .leadership-header .main-heading {
      font-size: 1.8rem;
  }
}

.legal-links{
  flex-direction: row;
}
.legal-links a{
  color: #FFF;
  font-size: 1rem!important;
}


.sitemap-container {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.sitemap-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #001f3f; /* Navy */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sitemap-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-column ul li {
  margin-bottom: 12px;
}

.sitemap-column ul li a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.sitemap-column ul li a:hover {
  color: #001f3f; /* Hover Navy */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sitemap-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sitemap-grid {
      grid-template-columns: 1fr;
  }
}


/*privacy*/
/* Privacy Section Main Container */
.leadership-section .privacy-dense-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Typography */
.privacy-dense-wrapper h1 {
  font-size: 1.6rem;
  color: #11283B;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
  margin-top:3rem;
}

.privacy-dense-wrapper .meta-text {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 40px;
  display: block;
}

/* Dense 2-Column Grid for Desktop/iPad */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
  row-gap: 30px;
}

/* Individual Policy Blocks */
.policy-block h3 {
  font-size: 13px;
  font-weight: 700;
  color: #11283B;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.policy-block p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
  text-align: justify; /* Keeps text dense and aligned */
}

/* Small Footer Back Link */
.privacy-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.privacy-footer a {
  font-size: 12px;
  color: #11283B;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile & Tablet Portrait Responsiveness */
@media (max-width: 768px) {
  .leadership-section .privacy-dense-wrapper {
      padding: 0 25px;
  }

  .policy-grid {
      grid-template-columns: 1fr; /* Stack vertically for density on phones */
      gap: 25px;
  }

  .privacy-dense-wrapper h1 {
      font-size: 1.3rem;
  }
}