/* ========================
   Base Reset & Typography
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lora", serif;
  color: #000;
  line-height: 1.6;
  padding-top: 0;
}

button, a {
  font-family: "Lora", serif;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-family: Georgia;
}

.sub-hero {
  text-align: center;
  font-family: 'Lora', sans-serif;
  color: #ffffff;
  font-size: clamp(1rem, 4vw, 2.rem);
  font-weight: 600;
  margin-top: 5rem;

}

h2 {
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  color: #990000;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-top: 5rem;

}


h3 {
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  color: #990000;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 600;
  margin-top: 5rem;
}

h4 {
  text-align: center;
  font-family: 'Lora', sans-serif;
  color: #990000;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 400;
  margin-top: 5rem;
}

h5 {
  text-align: center;
  font-family: 'Lora', sans-serif;
  color: #990000;
  font-size: clamp(0.5rem, 1.5vw, 1.5rem);
  font-weight: 400;
  margin-top: 5rem;
}

/* Gallery container */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
   
}

.book-cloth .gallery-item img {
  height: 100px;       /* or clamp(80px, 12vw, 120px) for responsive scaling */
  width: auto;
  object-fit: contain; /* keeps proportions like your main gallery */
}

.gallery-item {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
    
}

.gallery-item figure { 
  margin: 0; text-align: center; 
}
.gallery-item figcaption { 
  margin-top: 0.5rem; font-size: 0.95rem; 
}

.gallery-item:hover {
  transform: scale(1.05);
    
}

.gallery-item img {
  height: 200px;      /* Set a consistent height */
  width: auto;        /* Allow width to vary based on image ratio */
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  object-fit: contain; /* Ensures full image is visible */

}

.spacer-1 {
  height: 1rem;
}

#lightbox-img {
  width: clamp(150px, 40vw, 800px);
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 15px;
}

#lightbox-img-cloth {
  width: clamp(150px, 40vw, 400px);
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 15px;
}


.material-group p {
  text-align: center;
  padding-bottom: 2rem;
}

/* ========================
   Navbar
   ======================== */
.navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  border-radius: 70px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo img {
  height: clamp(36px, 5vw, 70px);
  display: block;
  margin: 0 auto;
}

.navbar .logo .logo-off-hero { display: none; }
/* Once past the hero: show dark logo, adjust link colors */
.navbar.scrolled .logo-on-hero { display: none; }
.navbar.scrolled .logo-off-hero { display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgb(255, 255, 255);
  font-weight: 200;
  font-size: 1.5em;
  padding: 5px;
  border-radius: 10px;
  display: inline-block;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0);
  color: rgb(129, 30, 10);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #044;
  cursor: pointer;
}

/* ON HERO (default at top) */
.navbar .nav-links a {
  color: #ffffff;               
  display: inline-block;
  padding: 5px 8px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.navbar .nav-links a:hover,
.navbar .nav-links a:focus {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

/* OFF HERO links (once .scrolled is on the navbar) */
.navbar.scrolled .nav-links a {
  color: #811e0a;
}
/* hover tone */
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a:focus {
  background: rgba(31,100,99,.12);
  color: #811e0a;               /* your hover tone */
}


/* ========================
   Hero Sections
   ======================== */
.hero {
  position: relative;
  height: 63vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  text-align: center;
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-about .hero-overlay,
.hero-services .hero-overlay,
.hero-contact .hero-overlay {
  background: rgba(30, 30, 30, 0.4); /* Darker or lighter as needed */
}


.hero .hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 3s ease-out both;
}

.hero-about .hero-text,
.hero-contact .hero-text,
.hero-services .hero-text {
  color: #ffffff;
}

.hero-index .hero-text {
  color: #ffffff;
}

.hero-heading h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.hero-subheading h2 {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 400;
  margin-top: 0;
}

.sub-hero-h2 {
  text-align: center;
  margin: 6rem 1rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: #1f6463;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================
   Intro & Content
   ======================== */
.intro {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}
.sub-intro {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.intro p {
  padding-top: 1.4rem;
  max-width: 1700px;
  text-align: left;
  word-break: normal;
  hyphens: auto;
  line-height: 1.6;
}

.sub-intro p {
  max-width: 1700px;
  text-align: center;
  word-break: normal;
  hyphens: auto;
  line-height: 1.6;
}


.content-description {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem 2rem;
  line-height: 1.6;
  font-size: 1rem;
}

.content-description-contact {
  padding: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
}

/* ========================
   Buttons
   ======================== */
.cta-button, .cta-button-services {
  padding: 1rem 1.8rem;
  border-radius: 25px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cta-button {
  background-color: #1f6463;
  color: white;
  display: block;
  margin: 2rem auto 0 auto;
  font-size: clamp(0.7rem, 1vw, 1rem);
  border: 0;
}

.cta-button:hover {
  background-color: #2f908e;
  
}

.cta-button-services {
  background-color: transparent;
  color: #9e8859;
  border: 0;
  display: inline-block;
  margin: 0.5rem;
  font-size: 1rem;
}

.cta-button-services:hover {
  background-color: #9e8859;
    color: white;

}

.cta-button-services.active {
  background-color: #9e8859;
  color: white;
}

/* Base state */
.cta-button-services.materials {
  background-color: transparent;
  color: #990000; /* Dark red text, example */
}

/* Hover state */
.cta-button-services.materials:hover {
  background-color: #990000; /* Tomato red hover */
  color: white;
}

/* Active state */
.cta-button-services.materials.active {
  background-color: #990000;
  color: white;
}

.service-container {
  text-align: center;
  margin-bottom: 1rem;
}

/* ========================
   Book images layout width
   ======================== */
.service-text {
  margin: 0 auto;
  width: 47.3%;
  display: none;
}

.service-text.wide {
  margin: 0 auto;
  width: 87.3%;
  display: none;
}

/* ========================
   Footer
   ======================== */
.site-footer {
  color: white;
  text-align: center;
  padding: 1rem 0.3rem;
  font-size: 0.9rem;
  margin-top: 3rem;
  font-family: "Lora", serif;
  border-top: 1px solid #ddd;
}

/* ========================
   Responsive Navbar
   ======================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 1rem;
    border-radius: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(195, 35, 35, 0.734);
  }

  .nav-links.show {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 10px;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 5px;
    color: #1f6463;
  }

  .menu-toggle {
    display: block;
  }

  .gallery-item {
    width: 45%;
  }

}




