/* THEME: SERENE STUDIO (High-Contrast Minimalist) */

:root {
  /* Stark, graphic contrast palette */
  --color-primary: #1A1A1A; /* Deep Charcoal */
  --color-bg: #FFFFFF;      /* Pure Gallery White */
  --color-accent: #E5E5E5;  /* Soft Grey border */
  
  /* Retaining the existing elegant fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

/* --- HAMBURGER ---*/
.theme-serene .hamburger {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  outline: none;
}

/* --- HERO SECTION STRUCTURE --- */
.theme-serene .hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg); /* Use pure white bg */
  
  /* The image is a background applied only to the RIGHT side */
  background-image: url('/assets/serene/serene-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50% cover; /* Crucial: image takes up only 50% of the width */
}

/* Placing the text in the 50% safe zone */
.theme-serene .hero-text-block {
  max-width: 500px;
  /* Centering it within the left 50% container */
  margin-left: 10%; 
  padding: 0;
  text-align: left; /* Left-aligned for cleaner hierarchy */
}

/* Refined Typography scale */
.theme-serene .hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem; /* Larger 'Display' size */
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.theme-serene .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 420px;
  color: #555;
  margin-bottom: 3rem;
}

/* GALLERY GRID STRUCTURE */
.theme-serene .gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12-column grid for maximum flexibility */
  gap: 3rem;
  margin-top: 4rem;
}

/* INDIVIDUAL GALLERY ITEMS */
.theme-serene .gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* MASONRY SIZING */
.theme-serene .gallery-item.large {
  grid-column: span 8; /* Takes up 2/3 of the width */
  aspect-ratio: 16 / 9;
}

.theme-serene .gallery-item.small {
  grid-column: span 4; /* Takes up 1/3 of the width */
  aspect-ratio: 4 / 5; /* Vertical orientation for contrast */
}

/* IMAGE PLACEHOLDER BEHAVIOR */
.theme-serene .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(26, 26, 26, 0.3);
  background-size: cover;
  background-position: center;
}

/* GALLERY IMAGE REPLACEMENT */
/* Use your high-res dark botanical or architectural assets here */
.gallery-item.large .img-placeholder { background-image: url('/assets/serene/project-01.jpg'); }
.gallery-item.small:nth-child(2) .img-placeholder { background-image: url('/assets/serene/project-02.jpg'); }
.gallery-item.small:nth-child(3) .img-placeholder { background-image: url('/assets/serene/project-03.jpg'); }


/* HOVER OVERLAY */
.theme-serene .item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.theme-serene .gallery-item:hover .item-overlay {
  opacity: 1;
}

.theme-serene .item-overlay h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.theme-serene .gallery-item:hover .item-overlay h3 {
  transform: translateY(0);
}

/* --- CONTACT SECTION REFINEMENT --- */

.theme-serene .contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center; 
}

.theme-serene .contact-form input,
.theme-serene .contact-form textarea {
  width: 100%;
  display: block;
  margin: 0;
  box-sizing: border-box; 
  border: 1px solid var(--color-accent);
  padding: 1rem;
  background-color: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0 !important;
}

.theme-serene .form-group {
  width: 100%;
  margin: 0;
  padding: 0;
}

.theme-serene textarea {
  min-height: 150px;
  resize: vertical; /
}

.theme-serene .form-group,
.theme-serene .contact-form textarea {
  width: 100%;
}

.theme-serene .contact-form .btn-primary {
  margin-top: 1rem;
  min-width: 200px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  cursor: pointer;
}

.theme-serene .btn-primary:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* SCROLL TO TOP */
#scrollToTopBtn {
  display: none; /* Controlled by JS */
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .theme-serene .hero-section {
    background-position: left 100% !important;
    background-size: cover; 
  }

  .theme-serene .gallery-grid {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
  }
  
  .theme-serene .gallery-item.large,
  .theme-serene .gallery-item.small {
    grid-column: span 1;
  }
}