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

:root {
    --header-height: 90px; /* adjust if needed */
}

@font-face {
    font-family: Inter;
    src: url(../fonts/InterTight-VariableFont_wght.ttf);
}

@font-face {
    font-family: Zen Kurenaido;
    src: url(../fonts/ZenKurenaido-Regular.ttf);
}

@font-face {
    font-family: Coromant;
    src: url(../fonts/Cormorant-VariableFont_wght.ttf);
}

@font-face {
    font-family: Optima;
    src: url(../fonts/Optima.ttf);
}

.site-header {
    position: fixed;  /* must be fixed for hide-on-scroll */
    top: 0;
    width: 100%;
    text-align: center;
    background-color: #F4ECE5;
    z-index: 1001;
    transition: transform 0.3s ease; /* smooth hide/show */
}

.site-header.header-hidden {
    transform: translateY(-100%); /* moves header completely out of view */
}

.site-title {
    font-family: 'Zen Kurenaido';
    font-size: 28px;
    font-weight: 400;
    padding: 20px 0 10px 0; /* much less top padding */
    margin: 0;
    color: #DE2720;
}

body {
    background-color: #F4ECE5;
    color: #DE2720;
    margin: 0;
    padding-top: 20px; /* space for title + nav */
    font-family: 'Coromant';
}

/* Center the nav and site-title */
nav {
    display: flex;
    align-items: center;  /* Vertically center the items */
    justify-content: center;  /* Center the nav and site title horizontally */
    width: 100%;
    padding: 10px 30px; /* Add some padding to the sides for breathing room */
}

.site-header nav {
    display: flex;
    align-items: center;  /* Vertically align the title and nav */
    justify-content: center;  /* Center everything horizontally */
    gap: 30px; /* Space between the site title and the navigation items */
}

ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center the nav items horizontally */
    gap: 40px;
    margin: 0;
    padding: 0;
}

ul li a {
    font-family: 'Zen Kurenaido';
    font-size: 16px;
    font-weight: 400;
    color: #DE2720;
    text-decoration: none;
    padding: 10px 0;
    letter-spacing: 0.03em;
}

ul li a span {
    position: relative;
}

ul li a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.5px;
    background-color: #DE2720;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

ul li a:hover span::after {
    transform: scaleX(1);
}

/* Tablet and Mobile Styles */

/* Tablet view: 1024px and below */
@media (max-width: 1024px) {
    .site-header {
        padding-top: 10px; /* Adjust for smaller screens */
    }

    nav {
        padding: 10px 20px;  /* Reduce space on the sides */
        gap: 20px;  /* Add some spacing between the title and nav */
    }

    .site-title {
        font-size: 24px; /* Smaller title on tablets */
    }

    ul {
        gap: 30px; /* Less space between nav items */
    }

    ul li a {
        font-size: 14px; /* Smaller font for mobile */
    }
}

/* Mobile view: 768px and below */
@media (max-width: 768px) {
    nav {
        padding: 15px 15px;  /* Add padding for mobile */
        justify-content: center; /* Ensure title and nav items stay centered */
    }

    .site-title {
        font-size: 20px; /* Even smaller font size for mobile */
    }

    ul {
        gap: 20px; /* Less space between nav items */
    }

    ul li a {
        font-size: 14px; /* Smaller font size */
    }
}

/* ============================= */
/* JOHNNY CLEGG PROJECT PAGE */
/* ============================= */

.clegg-page {
  padding-top: 100px; /* clears fixed header */
}

/* Hero Section */
.clegg-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.clegg-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.clegg-hero-title {
  position: absolute;
  bottom: 40px;
  left: 60px;
  font-family: 'Optima';
  font-size: clamp(32px, 6vw, 72px);
  color: #F4ECE5;
  letter-spacing: 0.05em;
}

/* Intro Section */
.clegg-intro {
  max-width: 760px;
  margin: 120px auto;
  padding: 0 20px;
  text-align: left;
  color: #DE2720;
}

.clegg-label {
  font-family: 'Cormorant';
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.clegg-description {
  font-family: 'Coromant';
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
}

/* Media Sections */
.clegg-media {
  max-width: 1000px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.clegg-media img,
.clegg-media video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Visit Button */

.clegg-visit {
  margin-top: 60px;
  text-align: center;
}

.clegg-link {
  position: relative;
  font-family: 'Zen Kurenaido';
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #DE2720;
  text-decoration: none;
  display: inline-block;
}

/* animated underline */
.clegg-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background-color: #DE2720;
  transition: width 0.4s ease;
}

.clegg-link:hover::after {
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .clegg-hero-title {
    left: 20px;
    bottom: 20px;
  }

  .clegg-media {
    padding: 0 20px;
  }

  .clegg-description {
    font-size: 18px;
  }
}

.site-footer {
  width: 100%;
  background-color: #F4ECE5;
  padding: 40px 0;
}

.footer-inner {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertical centering */
}

.footer-left p {
  font-family: 'Zen Kurenaido';
  font-size: 20px;
  font-weight: 400;
  color: #DE2720;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 30px;
}

.footer-right a {
  font-family: 'Zen Kurenaido';
  font-size: 14px;
  font-weight: 400;
  color: #DE2720;
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
}

/* underline hover, same language as nav */
.footer-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background-color: #DE2720;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.footer-right a:hover::after {
  transform: scaleX(1);
}

/* ============================= */
/* RESPONSIVE REFINEMENTS */
/* ============================= */

/* Large Screens (1400px+) */
@media (min-width: 1400px) {
  .clegg-intro {
    margin: 160px auto;
  }

  .clegg-media {
    max-width: 1100px;
  }
}


/* Tablet (1024px and below) */
@media (max-width: 1024px) {

  .clegg-hero {
    height: 60vh;
  }

  .clegg-hero-title {
    left: 40px;
    bottom: 30px;
  }

  .clegg-intro {
    margin: 100px auto;
  }

  .clegg-media {
    padding: 0 30px;
    margin-bottom: 100px;
  }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}


/* Mobile (768px and below) */
@media (max-width: 768px) {

  .clegg-hero {
    height: 55vh;
  }

  .clegg-hero-title {
    left: 20px;
    bottom: 20px;
    font-size: clamp(26px, 8vw, 42px);
  }

  .clegg-intro {
    margin: 80px auto;
    padding: 0 20px;
  }

  .clegg-description {
    font-size: 18px;
    line-height: 1.6;
  }

  .clegg-media {
    padding: 0 20px;
    margin-bottom: 80px;
  }

  .clegg-link::after {
    bottom: -4px;
  }

}


/* Small Mobile (480px and below) */
@media (max-width: 480px) {

  .clegg-hero {
    height: 50vh;
  }

  .clegg-hero-title {
    font-size: 24px;
    letter-spacing: 0.03em;
  }

  .clegg-description {
    font-size: 17px;
  }

  .clegg-media {
    margin-bottom: 60px;
  }
}