/* ============================================================
   RESET - Removes default browser spacing and sizing quirks
   box-sizing: border-box makes padding included in width/height
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #514b3e;
  --dark-text-color: #252220;
  --darkest-text-color: #000000;
  --background-color: #f7f7f3;
}

/* ============================================================
   BODY
   - display: flex + flex-direction: column helps push the 
     footer to the bottom of the page
   - min-height: 100vh makes the body at least the full 
     screen height
   ============================================================ */

body {
  display: flex;
  flex-direction: column;
  font-family: "Inter";
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--background-color);
  min-height: 100vh;
}

/* ============================================================
   LOGO
   
   ============================================================ */

h3.logo a {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

/* Top part of logo - "LUMIÈRE" */
h3.logo a span.top {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
}

/* Bottom part of logo - "SOUL" */
h3.logo a span.bottom {
  font-weight: 200;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  padding-left: 2px;
}

/* ============================================================
   GLOBAL STYLES
   These apply to elements across the whole website
   ============================================================ */

/* Removes underline from all links and sets default color */
a {
  text-decoration: none;
  color: #514b3e;
}

/* Removes bullet points from all lists */
ul {
  list-style: none;
}

/* Prevents images from overflowing their container */
img {
  max-width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */

/* Outer navbar bar - white background with a border */
.navbar {
  background-color: #fff;
  padding: 20px;
  border: 3px solid #514b3e;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Makes the nav links sit side by side in a row */
.navbar .menu ul {
  display: flex;
}

/* Styles each individual nav link */
.navbar ul li a {
  padding: 10px 20px;
  display: block;
  font-weight: 500;
  transition: 0.5s;
}

/* Nav link hover effect */
.navbar ul li a:hover {
  color: #514b3e;
}

/* Nav container - spaces logo and menu links apart (space-between)
   and centers them vertically */
.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   HAMBURGER MENU BUTTON
   Only visible on small screens (see media queries below)
   ============================================================ */
#menu-btn {
  display: inline-block;
  background: none;
  color: #514b3e;
  border: none;
  cursor: pointer;
  transition: 0.5s;
}

/* Slightly fades the button when hovered */
#menu-btn:hover {
  opacity: 0.7;
}

/* ============================================================
   CONTAINER UTILITY CLASSES
   These are reusable classes that center content and
   prevent it from stretching too wide on large screens
   ============================================================ */

/* Standard container - max width 1100px */
.container-normal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.projects-section.container-normal {
  background-color: #f7f7f3;
}

/* Smaller container - max width 900px */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Extra small container - max width 800px */
.container-xs {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   HAMBURGER ICON (SVG)
   ============================================================ */
svg#ham-menu {
  color: black;
  cursor: pointer;
}

/* ============================================================
     HAMBURGER BUTTON
     ============================================================ */
#menu-btn {
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================
     MOBILE SIDE MENU
    
     ============================================================ */
#side-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background-color: white;
  z-index: 1000;
  padding-top: 20px;
}

/* When JS adds the .active class, the menu becomes visible */
#side-menu.active {
  display: block;
}

/* Nav links stacked vertically and centered */
#side-menu ul {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  height: 100%;
}

#side-menu li {
  list-style: none;
}

#side-menu a {
  text-decoration: none;
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  color: #514b3e;
}

#side-menu a:hover {
  background: #514b3e;
  /* background: #948b76; */
  padding: 10px;
  color: #f7f7f3;
}

/* Used for the navbar - max width 1200px */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Prevents the page from scrolling when the side menu is open */
body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   MEDIA QUERIES - Responsive behaviour
   ============================================================ */

/* Desktop (769px and above) - hide hamburger, show nav links normally */
@media screen and (min-width: 769px) {
  #menu-btn {
    display: none;
  }
}

/* Mobile (768px and below) - show hamburger, hide nav links */
@media screen and (max-width: 768px) {
  #menu-btn {
    display: block;
  }

  .navbar-list,
  .menu {
    display: none;
  }
}

/* ============================================================
   EYEBROW TEXT (small tag)
   The small descriptive text that sits above main headings
   ============================================================ */
small {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 1.5rem;
  color: #252220;
}

/* ============================================================
   HERO SECTION HOME PAGE
   ============================================================ */
.hero-section {
  background-color: var(--background-color);
  color: #514b3e;
  padding: 100px 0;
  /* margin-bottom: 50px; */
}

/* Hero container - sets the background image on the right side */
.hero-section .container {
  background: url("./assets/main-1.jpg") no-repeat;
  background-size: contain;
  background-position: center right;
  height: 480px;
}

/* Hero text content - only takes up left 60% so image shows on the right */
.hero-section .hero-content {
  width: 60%;
}

/* Main large heading */
.main-hero-heading {
  font-family: "Instrument Serif", sans-serif;
  font-size: 80px;
}

/* Subtitle paragraph below the heading */
p.subtext {
  font-family: "Inter", sans-serif;
  line-height: 1.7;

  font-size: 18px;
}

/* ============================================================
   AVAILABILITY TAG
   The small "available" indicator with the pulsing dot
   ============================================================ */
.availability-tag {
  display: flex;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
  justify-content: start;
}

.availability-tag p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: #252220;
}

/* The small green pulsing circle */
.dot {
  width: 10px;
  height: 10px;
  background-color: #a3b18a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status {
  color: #252220;
}

/* Pulse animation - fades in and out repeatedly */
@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

.hero-mobile-image {
  display: none;
}

/* ============================================================
   HERO - MOBILE (768px and below)
   ============================================================ */
@media screen and (max-width: 768px) {
  /* Smaller heading on mobile */
  .main-hero-heading {
    font-size: 45px;
    line-height: 1.3;
    padding: 0 20px;
  }

  /* Center the subtext and eyebrow text on mobile */
  p.subtext,
  small {
    text-align: center;
  }

  /* Stack hero content in a column and center it on mobile */
  .hero-section .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 15px 10px;
  }

  /* Remove the background image on mobile - just show plain background */
  .hero-section .container {
    background: #f7f7f3;
    color: #514b3e;
  }

  .hero-section.about-section .container-normal {
    background: #f7f7f3;
    color: #514b3e;
  }
  .hero-mobile-image {
    display: block;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
  }

  .hero-mobile-image img {
    display: block;
    width: 100%;
    margin-top: 20px;
    object-fit: cover;
    object-position: top;
    display: block;
  }
}

/* Make sure desktop background image shows above 768px */
@media screen and (min-width: 769px) {
  .hero-section .container-xs {
    background: url("./assets/main-1.jpg") no-repeat;
    background-size: contain;
    background-position: center right;
    height: 480px;
  }

  /* Ensure mobile image is completely gone */
  .hero-mobile-image {
    display: none !important;
  }
}

/* ============================================================
   PHILOSOPHY SECTION
   ============================================================ */

.philosophy-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--background-color);
}

/* Centered eyebrow text above philosophy heading */
.eyebrow-center {
  display: block;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: #252220;
}

/* Large philosophy quote/statement */
.philosophy-text {
  font-family: "Instrument Serif", sans-serif;
  font-size: 60px;
  line-height: 1.3;
  color: #514b3e;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* General button style */
button {
  background-color: #4a4541;
  color: #f7f7f3;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

/* ============================================================
   PHILOSOPHY SECTION - MOBILE (768px and below)
   ============================================================ */
@media screen and (max-width: 768px) {
  .philosophy-text {
    font-size: 30px;
    line-height: 1.3;
    padding: 0 20px;
  }
}

/* ============================================================
   PROJECTS GRID
   3 equal columns on desktop, collapses to 1 on mobile
   ============================================================ */

.background{
   background: #f7f7f3;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

/* Utility class for italic text */
.italic {
  font-style: italic;
}

/* ============================================================
   PROJECT CARD
   ============================================================ */
.project-card {
  background-color: #f7f7f3;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease;
}

/* Card lifts up slightly when hovered */
.project-card:hover {
  transform: translateY(-10px);
}

/* Eyebrow text color above section titles */
.eyebrow {
  color: #514b3e;
}

/* Section title color */
.section-title {
  color: #252220;
}

/* Card heading */
.card-title {
  font-family: "Instrument Serif", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: #514b3e;
}

/* Short description below card title */
.card-brief {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #514b3e;
  margin-bottom: 25px;
}

/* Card image - square crop using aspect-ratio */
.card-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.case-study {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #514b3e;
  margin-bottom: 3px;
}

/* ============================================================
   PROJECTS GRID - TABLET/MOBILE (900px and below)
   Collapses from 3 columns to 1 column
   ============================================================ */
@media screen and (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT QUOTE SECTION
   
   ============================================================ */

.about-quote {
  padding: 180px 0 100px 0;
  text-align: center;
  margin-bottom: 40px;
}

/* Large italic quote text */
h2.quote {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  font-style: italic;
  font-weight: 200;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #514b3e;
}

/* Quote author credit  */
.quote-author {
  display: block;
  text-align: center;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
}

/* Centers the button below the quote */
.about-button {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 50px;
}

/* ============================================================
   ABOUT HERO - background image sits on the LEFT side
   Text content floats to the right 
   ============================================================ */

/* Sets the lavender background image on the left */
.about-section .container-normal {
  display: flex;
  justify-content: flex-end;
  background: url("./assets/lavender.jpg") no-repeat;
  background-size: contain;
  background-position: center left;
  height: 480px;
}

/* Floats the text content to the right so it sits
   next to the background image on the left */
.about-content {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .about-section .container-normal {
    background: #f7f7f3;
    justify-content: center;
    height: auto;
  }

  .about-content {
    width: 100%;
  }
}

/* ============================================================
   CAPABILITIES SECTION (Services page)
   Reuses .projects-section card styling 
   ============================================================ */

.capabilities {
  margin: 80px 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Adds breathing room above and below the contact section */
.main-contact {
  margin: 30px 0;
}

/* Heading and paragraph color for contact page */
.contact-content h1,
.contact-content p {
  color: #514b3e;
  margin-bottom: 20px;
}

.contact-content h1 {
  font-family: "Instrument Serif", sans-serif;
}

/* Spacing between each form field */
.form-group {
  margin: 18px 0;
}

/* Input and textarea styling
    */
.form input,
.form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #4a4541;
  padding: 10px 10px;
  color: #252220;
}

.case-hero-image {
  width: 50%;
  /* bring it down */
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

/* Back link at top of page */
.back-link {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #514b3e;
  margin-bottom: 40px;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.6;
}

/* ============================================================
   CASE HEADER
   The top section with back link, title and tagline
   ============================================================ */
.case-header {
  padding: 60px 0 40px 0;
}

/* Project category and year eyebrow */
.case-intro {
  margin-top: 20px;
}

/* Large project title */
.case-title {
  font-family: "Instrument Serif", sans-serif;
  font-size: 70px;
  color: #514b3e;
  line-height: 1;
  margin: 10px 0;
}

/* Short tagline below title */
.case-tagline {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #514b3e;
  max-width: 500px;
  line-height: 1.7;
  margin-top: 10px;
}

/* ============================================================
   CASE STUDY BODY
   Two column layout - image left, content right
   ============================================================ */
.case-body {
  padding: 60px 0;
  border-top: 1px solid #514b3e;
}

/* Two column wrapper */
.case-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* LEFT - image side takes up 50% */
.case-image-side {
  width: 50%;
  position: sticky;
  top: 100px;
}

/* Image fills its container and crops neatly */
.case-image-side img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

/* RIGHT - content side takes up 50% */
.case-content-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Each content block - problem, approach, outcome */
.case-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Body text */
.case-text {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #514b3e;
}

/* Large closing statement */
.outcome-statement {
  font-family: "Instrument Serif", sans-serif;
  font-size: 35px;
  color: #514b3e;
  line-height: 1.3;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid #514b3e;
}

/* ============================================================
   NEXT PROJECT
   ============================================================ */
.next-project {
  padding: 80px 0;
  border-top: 1px solid #514b3e;
}

/* Large clickable next project link */
.next-project-link {
  font-family: "Instrument Serif", sans-serif;
  font-size: 55px;
  color: #514b3e;
  display: inline-block;
  margin-top: 15px;
  transition: opacity 0.3s ease;
}

.next-project-link:hover {
  opacity: 0.6;
}

/* ============================================================
   CASE STUDY - MOBILE (768px and below)
   ============================================================ */
@media screen and (max-width: 768px) {
  /* Smaller title on mobile */
  .case-title {
    font-size: 40px;
  }

  /* Stack image and content on top of each other on mobile */
  .case-layout {
    flex-direction: column;
    gap: 30px;
  }

  /* Full width on mobile */
  .case-image-side {
    width: 100%;
    position: static;
  }

  /* Shorter image on mobile */
  .case-image-side img {
    height: 300px;
  }

  /* Full width on mobile */
  .case-content-side {
    width: 100%;
  }

  /* Smaller closing statement on mobile */
  .outcome-statement {
    font-size: 26px;
  }

  /* Smaller next project link on mobile */
  .next-project-link {
    font-size: 35px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Outer footer wrapper
   margin-top: auto pushes the footer 
   to the bottom of the page              */
.main-footer {
  margin-top: auto;
  padding: 100px 0 60px 0;
  background-color: #4a4541;
  border-top: 5px solid #252220;
  text-align: center;
}

/* Footer logo text */
.footer-logo h2 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.4em;
  color: #f7f7f3;
  font-weight: 200;
  font-size: 1.5rem;
  margin-bottom: 50px;
}

/* Footer navigation links */
.footer-nav {
  margin-bottom: 60px;
}

/* Lays footer nav links in a row, centered */
.footer-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer-nav a {
  font-family: "Inter", sans-serif;
  text-decoration: none;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.17em;
  color: #f7f7f3;
  margin: 0 20px;
  transition: opacity 0.3s;
}
/* Bottom strip of footer - socials and copyright stacked */
.footer-bottom {
  display: flex;
  flex-direction: column;

  align-items: center;
  padding-top: 40px;
  border-top: 4px solid #252220;
}

/* Social links laid out in a row */
.footer-socials ul {
  display: flex;
  flex-direction: row;
}

.footer-socials a {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  color: #f7f7f3;
  letter-spacing: 0.12em;
  padding: 4px;
  text-decoration: none;
}
/* Copyright text */
.copyright {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #f7f7f3;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin: 8px 0;
}

/* ============================================================
   FOOTER BOTTOM - MOBILE (768px and below)
   Stacks the social links and copyright on top of each other
   
   ============================================================ */
@media screen and (max-width: 768px) {
  /* Stack socials and copyright vertically */
  nav.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  /* Center the social links */
  .footer-socials ul {
    justify-content: center;
  }

  /* Center copyright text */
  .copyright {
    text-align: center;
  }
}
