/* style.css */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 100;
  margin: 0;
  background-color: white;
  color: black;
}

/* put this near the top of style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;500;700&family=Noto+Sans+SC:wght@300;500;700&family=Noto+Sans+KR:wght@300;500;700&family=Noto+Sans+Tamil:wght@300;500;700&family=Noto+Sans+Sinhala:wght@300;500;700&display=swap');


#hello-text{
  font-family:
    'Noto Sans Tamil',   /* Tamil – has 100/400/700 cuts we loaded */
    'Helvetica Neue', Helvetica, Arial, sans-serif; /* fallback */
  font-weight:100;                 /* default – overwritten by JS */
  font-size:clamp(24px,4vw,72px);  /* fallback – overwritten by JS */
  color:#000;
  transition:opacity .15s ease;
}

/* HEADER STYLES */
header {
  position: relative;
  margin: 0;
  padding: 0;
}

.hero {
  display: block;
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center center;
}

.hero-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 32px;
  height: 32px;
  z-index: 10;
  animation: bounce 1.5s infinite;
  pointer-events: none;
}

.hero-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

.logo {
  position: absolute;
  top: 20px;
  left: 40px;
}

.logo img {
  height: 15px;
  width: auto;
  display: block;
}

.short-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.short-logo img {
  width: clamp(40px, 6vw, 120px);
  height: auto;
}

header nav {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  gap: 40px;
}

header nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

header nav a:hover { 
  opacity: 0.6; 
}

/* MAIN CONTENT */
main {
  min-height: 70vh;
}

.intro {
  padding: 80px 35vw 40px 5vw;
}

.intro h2 {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 150;
  margin: 0 0 70px;
  text-align: left;
  color: #000;
}

.section-title {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 150;
  margin: 0 0 40px;
  color: #000;
  text-align: left;
  padding-left: 5vw;
}

.intro-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 850px;
  width: 100%;
}

.intro-text p {
  margin: 0;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 150;
  line-height: 1.6;
  color: #000;
  text-align: justify;
}

.circle-spacer {
  text-align: center;
  margin: 10em 0 18em 0;
  font-size: 0.3rem;
  letter-spacing: 0.3rem;
  color: #000000;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}

/* GALLERY & CAROUSEL LAYOUT */
.gallery-block {
  width: 100%;
  max-width: none;
  padding: 0 5vw;
  box-sizing: border-box;
}

.gallery-columns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 120px);
  justify-content: space-between;
  max-width: 100%;
  overflow: hidden;
}

.gallery-left {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 0px;
  row-gap: clamp(150px, 15vw, 300px);
  flex-shrink: 0;
}

.gallery-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  max-width: 100%;
}

/* Carousel positioning */
#carousel-1-container {
  grid-column: 1 / -1;
}

#carousel-3-container {
  grid-column: 1;
  margin-bottom: 150px;
  margin-top: clamp(-50px, -5vw, -100px);
}

#carousel-4-container {
  grid-column: 2;
  margin-bottom: 150px;
  margin-top: clamp(-50px, -5vw, -100px);
}

/* Carousel containers - responsive sizing */
.carousel-container {
  width: clamp(300px, 25vw, 500px);
  max-width: 95vw;
  margin-bottom: 0;
}

.bottom-carousel-container {
  width: clamp(180px, 15vw, 300px);
  max-width: 95vw;
  margin-bottom: 0;
}

.right-carousel-container {
  width: clamp(400px, 35vw, 700px);
  max-width: 95vw;
}

.carousel-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.right-carousel-stack {
  align-items: flex-end;
}

/* Carousel styles */
.carousel {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 18px;
}

.bottom-carousel {
  width: 100%;
  height: 300px;
  background: #f5f5f5;
}

.right-carousel {
  width: 100%;
  height: 600px;
  background: #f5f5f5;

  
}

/* --- CAROUSEL CLEAN TRANSITIONS --- */
.carousel-image {
  opacity: 0;
  position: absolute; /* stack all images on top of each other */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: opacity;
  backface-visibility: hidden;
  transition: opacity 0.6s ease;
}

.carousel-image.active {
  opacity: 1;
  z-index: 2;
}

.carousel {
  position: relative; /* ensure absolutely-positioned images stay inside */
}


/* Individual carousel sizes */
#carousel-1 {
  width: clamp(240px, 20vw, 400px);
  height: clamp(300px, 25vw, 500px);
}

#carousel-2 {
  width: clamp(400px, 35vw, 700px);
  height: clamp(500px, 42vw, 850px);
}

#carousel-3 {
  width: clamp(160px, 12vw, 280px);
  height: clamp(200px, 18vw, 350px);
}

#carousel-4 {
  width: clamp(160px, 12vw, 280px);
  height: clamp(200px, 18vw, 350px);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

#carousel-1-container .carousel-controls {
  width: clamp(240px, 20vw, 400px);
}

#carousel-2-container .carousel-controls {
  width: clamp(400px, 35vw, 700px);
}

#carousel-3-container .carousel-controls,
#carousel-4-container .carousel-controls {
  width: clamp(160px, 12vw, 280px);
}

.carousel-arrow {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s;
  appearance: none;
}

.carousel-arrow:focus { outline: none; }
.carousel-arrow:hover,
.carousel-arrow:focus-visible { opacity: 0.6; }

.carousel-arrow svg { display: block; }
.carousel-arrow svg polyline {
  stroke: #000;
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: square;
  fill: none;
}

/* FOOTER STYLES */
footer {
  text-align: center;
  padding: 20px;
  background: white;
  border-top: 1px solid #ddd;
}

footer nav a {
  text-decoration: none;
  color: black;
  margin: 0 20px;
  font-size: 12px;
  font-weight: 150;
  transition: opacity 0.3s ease;
}

footer nav a:hover { opacity: 0.6; }

.footer-copyright {
  font-size: 11px;
  color: #888;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* MOBILE MENU */
.hamburger,
.mobile-menu {
  display: none;
}

/* RESPONSIVE DESIGN */
@media (min-aspect-ratio: 16/9) {
  .hero {
    height: 90vh;
  }
}

@media (max-width: 1200px) {
  .gallery-block {
    padding: 0 3vw;
  }
  .gallery-columns {
    gap: 40px;
  }
  .carousel-container {
    width: 300px;
  }
  .right-carousel-container {
    width: 400px;
  }
  .bottom-carousel-container {
    width: 200px;
  }
  #carousel-1 {
    width: 240px;
    height: 300px;
  }
  #carousel-2 {
    width: 400px;
    height: 500px;
  }
  #carousel-3,
  #carousel-4 {
    width: 160px;
    height: 200px;
  }
  #carousel-1-container .carousel-controls {
    width: 240px;
  }
  #carousel-2-container .carousel-controls {
    width: 400px;
  }
  #carousel-3-container .carousel-controls,
  #carousel-4-container .carousel-controls {
    width: 160px;
  }
}

/* NARROW-DESKTOP ADJUSTMENTS */
@media (max-width: 900px) {
  .gallery-block {
    padding: 0 5vw;
  }
  .gallery-columns {
    justify-content: space-between;
    gap: clamp(30px, 4vw, 80px);
  }
  .gallery-left {
    column-gap: clamp(30px, 4vw, 80px);
  }
  #carousel-4-container {
    margin-left: -3vw;
  }
  .carousel-container {
    width: clamp(255px, 21.25vw, 425px);
  }
  .bottom-carousel-container {
    width: clamp(153px, 12.75vw, 255px);
  }
  .right-carousel-container {
    width: clamp(340px, 29.75vw, 595px);
  }
  #carousel-1 {
    width: clamp(204px, 17vw, 340px);
    height: clamp(255px, 21.25vw, 425px);
  }
  #carousel-2 {
    width: clamp(340px, 29.75vw, 595px);
    height: clamp(425px, 35.7vw, 722px);
  }
  #carousel-3,
  #carousel-4 {
    width: clamp(136px, 10.2vw, 238px);
    height: clamp(170px, 15.3vw, 297px);
  }
  #carousel-1-container .carousel-controls {
    width: clamp(204px, 17vw, 340px);
  }
  #carousel-2-container .carousel-controls {
    width: clamp(340px, 29.75vw, 595px);
  }
  #carousel-3-container .carousel-controls,
  #carousel-4-container .carousel-controls {
    width: clamp(136px, 10.2vw, 238px);
  }
}

/* MOBILE CAROUSEL LAYOUT */
@media (max-width: 767px) {
  .hero {
    height: 50vh;
  }
  header .logo,
  header nav {
    display: none;
  }
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1000;
  }
  .hamburger .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: opacity 0.3s ease;
  }
  .hamburger:hover .bar {
    opacity: 0.6;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  .mobile-menu.active {
    transform: translateX(0);
  }
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
  }
  .close-menu::before,
  .close-menu::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: black;
    transform-origin: center;
    transition: opacity 0.3s ease;
  }
  .close-menu:hover::before,
  .close-menu:hover::after {
    opacity: 0.6;
  }
  .close-menu::before {
    transform: translateY(-50%) rotate(45deg);
  }
  .close-menu::after {
    transform: translateY(-50%) rotate(-45deg);
  }
  .mobile-nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .mobile-nav a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: 100;
    transition: opacity 0.3s ease;
  }
  .mobile-nav a:hover {
    opacity: 0.6;
  }
  main {
    padding: 10px 2vw;
  }
  .intro {
    padding: 50px 25px 30px 25px;
  }
  .intro h2 {
    margin-bottom: 38px;
  }
  .section-title {
    padding-left: 25px;
  }
  .circle-spacer {
    font-size: 0.2rem;
    letter-spacing: 0.15rem;
    margin: 7em 0 7em 0;
  }
  .gallery-columns {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .gallery-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
  }
  .gallery-right {
    display: flex; 
    flex-direction: column; 
    align-items: center;
  }
  .carousel-container,
  .bottom-carousel-container,
  .right-carousel-container {
    width: 82vw;
    max-width: 420px;
    margin-bottom: 100px;
  }
  #carousel-1,
  #carousel-2,
  #carousel-3,
  #carousel-4 {
    width: 82vw;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 200px;
  }
  .carousel-stack {
    align-items: center;
  }
  .carousel-controls {
    width: 100%;
    justify-content: center;
    margin-top: 0px;
  }
}

/* MOBILE: also zero padding (override any earlier rules) */
@media (max-width: 767px) {
  main.clients {
    padding: 0;
  }
}

/* DESKTOP & TABLET: give the clients grid some air above */
@media (min-width: 768px) {
  main.clients {
    padding-top: 60px !important;
  }
}

/* ─── CLIENTS PAGE VIDEO GRID ───────────────────────── */
main.clients {
  padding: 0;
}

main.clients .clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

main.clients .clients-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* MOBILE: single column, adjusted ratio */
@media (max-width: 767px) {
  main.clients .clients-grid {
    grid-template-columns: 1fr;
  }
  main.clients .clients-grid video {
    aspect-ratio: 2 / 3;
  }
}


/* force each <video> to fill its grid cell */
main.clients .clients-grid video {
  height: 100%;
}

/* ─── Position the restaurant names in top-right ───────────────────────── */
main.clients .clients-grid .video-wrapper {
  position: relative;
}

main.clients .clients-grid .video-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 101;                       /* above the scroll-fade (z-index:100) */ 
  color: #fff;
  padding: 4px 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
}

main.clients .clients-grid .video-wrapper {
  /* make each wrapper keep a 9:16 height:width ratio */
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0; /* your placeholder bg */
}

/* ─── PRE-LOADER ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* slide-up + fade-out */
@keyframes loader-exit {
  to { opacity: 0; }
}

#loader.exit {
  animation: loader-exit .6s cubic-bezier(.4,0,.2,1) forwards;
  pointer-events: none;
}

#hello-text {
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight:100;
  font-size:clamp(24px,4vw,72px);
  color:#612c2c;
  transition:opacity .15s ease;
}

/* Page transition container */
#page-wrapper {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#page-wrapper.fade-in {
  opacity: 1;
}
/* Make the hamburger bars black on contact.html and about.html */
body.contact-page header .hamburger .bar,
body.about-page   header .hamburger .bar {
  background-color: #000;
}

/* ─── Contact page styles ─────────────────────────────────────────────────── */

body.contact-page {
  /* let it fill at least the viewport, but grow & scroll if needed */
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}


/* Header */
body.contact-page header {
  position: relative;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.contact-page .logo {
  position: static;
  margin-left: 40px;
}
body.contact-page .logo img {
  height: 15px;
  width: auto;
  display: block;
}
body.contact-page header nav {
  position: static;
  margin-right: 40px;
  display: flex;
  gap: 40px;
}

body.contact-page header nav a:hover {
  opacity: 0.6;
}

/* Mobile hamburger */
body.contact-page .hamburger {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1000;
}
body.contact-page .hamburger .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #000;
  margin: 4px 0;
  transition: opacity 0.3s ease;
}
body.contact-page .hamburger:hover .bar {
  opacity: 0.6;
}

/* Mobile menu */
body.contact-page .mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}
body.contact-page .mobile-menu.active {
  transform: translateX(0);
}
body.contact-page .close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 15px;
  height: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}
body.contact-page .close-menu::before,
body.contact-page .close-menu::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: black;
  transform-origin: center;
  transition: opacity 0.3s ease;
}
body.contact-page .close-menu:hover::before,
body.contact-page .close-menu:hover::after {
  opacity: 0.6;
}
body.contact-page .close-menu::before {
  transform: translateY(-50%) rotate(45deg);
}
body.contact-page .close-menu::after {
  transform: translateY(-50%) rotate(-45deg);
}
body.contact-page .mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.contact-page .mobile-nav a {
  text-decoration: none;
  color: black;
  font-size: 14px;
  font-weight: 100;
  transition: opacity 0.3s ease;
}
body.contact-page .mobile-nav a:hover {
  opacity: 0.6;
}

/* Main content */
body.contact-page main {
  max-width: none;
  margin: 0;
  padding: 60px 40px 60px 40px;
  box-sizing: border-box;
}

/* Desktop two-column layout */
@media (min-width: 768px) {
  body.contact-page main {
    display: flex;
    align-items: center;
    gap: 8vw;
  }
  body.contact-page .contact-email {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.contact-page .contact-form {
    flex: 1;
    max-width: none;
  }
  body.contact-page .contact-form input,
  body.contact-page .contact-form textarea {
    padding: clamp(8px, 1vw, 16px) 12px;
    font-size: clamp(14px, 1.5vw, 18px);
  }
  body.contact-page .contact-form label {
    font-size: clamp(12px, 1.2vw, 16px);
    margin-bottom: clamp(6px, 0.8vw, 12px);
  }
  body.contact-page .contact-form button {
    padding: clamp(12px, 1.2vw, 18px) clamp(32px, 3vw, 48px);
    font-size: clamp(14px, 1.5vw, 18px);
  }
}

/* Email section */
body.contact-page .contact-email {
  margin-bottom: 60px;
}
body.contact-page .contact-email p:first-child {
  margin: 0 0 8px 0;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 100;
  color: #000;
}
body.contact-page .contact-email p:last-child {
  margin: 0;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 100;
  color: #000;
}

/* Contact form */
body.contact-page .contact-form {
  max-width: 600px;
}
body.contact-page .contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 100;
  color: #000;
}
body.contact-page .contact-form input,
body.contact-page .contact-form textarea {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 24px;
  border: 0.1px solid #000;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  font-family: inherit;
  font-weight: inherit;
  font-size: clamp(12px, 1vw, 16px);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
body.contact-page .contact-form input:focus,
body.contact-page .contact-form textarea:focus {
  outline: none;
  border-color: #666;
}
body.contact-page .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
body.contact-page .contact-form input::placeholder,
body.contact-page .contact-form textarea::placeholder {
  color: #888;
  font-size: 0.9em;
}
body.contact-page .contact-form button {
  display: inline-block;
  padding: 12px 32px;
  border: 0.5px solid #000;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  font-family: inherit;
  font-weight: inherit;
  font-size: clamp(12px, 1vw, 16px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}
body.contact-page .contact-form button:hover,
body.contact-page .contact-form button:active {
  opacity: 0.6;
}

/* Footer */
body.contact-page footer {
  text-align: center;
  padding: 20px;
  background: white;
  border-top: 1px solid #ddd;
  position: static;  /* (or just delete the position/bottom/left/right rules) */
}
body.contact-page footer nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}
body.contact-page footer nav a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  font-weight: 150;
  transition: opacity 0.3s ease;
}
body.contact-page footer nav a:hover {
  opacity: 0.6;
}
body.contact-page .footer-copyright {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.01em;
}

/* Mobile responsive */
@media (max-width: 767px) {
  body.contact-page header .logo,
  body.contact-page header nav {
    display: none;
  }
  body.contact-page .hamburger {
    display: block;
  }
  body.contact-page main {
    padding: 40px 48px 60px 48px;
    display: block;
  }
  body.contact-page .contact-email {
    margin-bottom: 80px;
  }
  body.contact-page footer nav {
    gap: 5px;
  }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  body.contact-page main {
    padding: 80px 48px 40px 48px;
  }
  body.contact-page .contact-email {
    margin-bottom: 80px;
  }
}

/* Fade-in wrapper (contact page override) */
body.contact-page #page-wrapper {
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.8s ease-in-out;
}
body.contact-page #page-wrapper.fade-in {
  opacity: 1;
}
body.contact-page header nav a {
  color: #000;
}


/* ABOUT PAGE STYLES */
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 2rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.about-text {
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.6;
  max-width: 530px;
  width: 100%;
  overflow: hidden;
}

.about-text p {
  text-align: justify;
  margin-bottom: 1.5em;
}

.dots {
  text-align: center;
  font-size: clamp(12px, 1vw, 16px);
  margin: 2em 0;
  letter-spacing: 0.5em;
}

.tagline {
  text-align: center;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 150;
  margin-bottom: 0 !important;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
  .about-content {
    justify-content: center;
    text-align: center;
    padding: 1rem 40px;
  }
  
  .about-text {
    text-align: center;
    max-width: 100%;
  }
}

/* Desktop styles - align with logo */
@media screen and (min-width: 768px) {
  .about-content {
    justify-content: flex-start;
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .about-text {
    text-align: left;
  }
}

/* Sticky‐footer flex layout for contact page */
body.contact-page {
  overflow-x: hidden;    /* prevent horizontal scroll */
}

body.contact-page #page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;     /* fill full viewport height */
}

body.contact-page main {
  flex: 1 0 auto;        /* grow/shrink to fill space */
}

body.contact-page footer {
  position: static;      /* let footer sit after main content */
}
/* ─── Enable scrolling on About page ───────────────────────────────── */

body.about-page {
  /* undo the earlier `overflow: hidden` */
  overflow-x: hidden;
  overflow-y: auto;
}

body.about-page #page-wrapper {
  /* undo the earlier fixed-height + hidden-overflow */
  height: auto;
  min-height: 100vh;     /* still fill viewport if content is short */
  display: flex;
  flex-direction: column;
  overflow: visible;
}

body.about-page main {
  /* let main grow and push footer down (or scroll if tall) */
  flex: 1 0 auto;
  min-height: 0;
  overflow: visible;
}

body.about-page footer {
  /* ensure footer sits after the content */
  position: static;
}

/* ─── Center About page content between header & footer ───────────────── */

body.about-page main {
  /* Make main a flex container so we can center its child vertically */
  display: flex;
  align-items: center;   /* vertical centering */
}

body.about-page .about-content {
  /* Override the old 100% height so it can size to its content */
  height: auto;
  /* Let it grow to fill the flex-main’s available space when content is short */
  flex: 1 0 auto;
}

/* Clients: hide the labels */
main.clients .clients-grid .video-label { 
  display: none; 
}

/* ─── Fix Carousels 3 & 4 to show full image (no crop) ─────────────────── */
#carousel-3 .carousel-image,
#carousel-4 .carousel-image {
  object-fit: contain;   /* show the entire photo without cropping */
  background: #f5f5f5;   /* fill empty space with a neutral background */
}

#carousel-3,
#carousel-4 {
  height: auto;          /* remove fixed height */
  aspect-ratio: 4 / 5;   /* keep a consistent shape */
}

.carousel.bottom-carousel {
  height: auto;          /* override original 300px fixed height */
}

/* --- SCROLL & LAYOUT SAFEGUARDS (site-wide) --- */
html, body {
  overflow-x: hidden;           /* prevent sideways scroll */
  overflow-y: auto !important;  /* always allow vertical scroll */
  min-height: 100%;             /* baseline */
}

/* Make the page wrapper control the vertical flow so the footer shows even on short pages */
#page-wrapper {
  min-height: 100svh;           /* better vh on mobile */
  display: flex;
  flex-direction: column;
}

/* Let main grow and push the footer down; footer always visible */
main { flex: 1 0 auto; }
footer { flex-shrink: 0; position: static !important; }

/* Slight zoom on client videos to fill white space */
.clients-grid .video-wrapper iframe {
  transform: scale(1.05);   /* 5% zoom in */
  transform-origin: center;
}
