/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-height: 72px;
}

.spectral-sc-extralight {
  font-family: "Spectral SC", serif;
  font-weight: 200;
  font-style: normal;
}

.spectral-sc-light {
  font-family: "Spectral SC", serif;
  font-weight: 300;
  font-style: normal;
}

.spectral-sc-regular {
  font-family: "Spectral SC", serif;
  font-weight: 400;
  font-style: normal;
}
.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


html, body {
  height: 100%;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  color: #333;
  overflow-x: hidden;
  background: #4C4233;
  background-image: linear-gradient(to bottom right, rgba(76, 66, 51, 1), rgba(76, 66, 51, 1) 30%, rgba(76, 66, 51, 0.85) 60%, rgba(76, 66, 51, 0.9) 90%, rgba(76, 66, 51, 1)), url('https://res.cloudinary.com/captive-audience-marketing/image/upload/f_auto,q_auto/v1770782395/wall4_xqvgsw.webp');
  background-repeat: repeat;
}

body {
  padding-top: var(--nav-height);
}

/* Logo Splash Screen - Homepage Only */
body.home #logo-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F2EBE3;
  background-image: linear-gradient(to bottom right, rgba(242, 235, 227, 0.2), rgba(242, 235, 227, 0.8)), url('https://res.cloudinary.com/captive-audience-marketing/image/upload/f_auto,q_auto/v1770782395/ep_naturalwhite_iokjph.webp');
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction:column;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

body.home #logo-splash::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

body.home #logo-splash.start img{
  opacity: .6;
}
body.home #logo-splash.start h1 {
  opacity: .7;
}

body.home #logo-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

body.home #logo-splash img {
  max-width: 500px;
  width: 20vw;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#logo-splash h1 {
  color: #826A56;
  font-family: "Spectral SC", serif;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Main Container */
.main-container {
  display: flex;
  height: calc(100vh - var(--nav-height));
  width: 100%;
}

.main-container.image-left {
  flex-direction: row-reverse;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  /* background-color: #4C4233; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
}

.top-nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.top-nav__links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.top-nav__links a {
  color: #F2EBE3;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.top-nav__links a:hover {
  opacity: 0.7;
}

.top-nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: #F2EBE3;
  opacity: .25;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #F2EBE3;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span {
  background: #4C4233;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Left Column - Navigation */
.left-column {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 100px;
  color: #F2EBE3;
  position: relative;
}

.left-column--content {
  justify-content: flex-start;
  padding-top: 3.5rem;
}

.page-content {
  color: #F2EBE3;
  max-width: 520px;
}

.page-content h1 {
  font-family: "Spectral SC", serif;
  font-size: 52px;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.page-content p {
  font-size: 22px;
  line-height: 1.6;
  color: #E9DFD3;
  margin-bottom: 1rem;
  font-weight: 300;
}

.small-divider {
  width: 60px;
  height: 1px;
  background-color: #F2EBE3;
  margin: 1.5rem 0;
  opacity: 0.3;
}

.side-nav {
  font-family: "Spectral SC", serif;
  font-size: 2.5rem;
  line-height: 1.6;
}

.side-nav ul {
  list-style: none;
}

.side-nav li {
  margin-bottom: 1.2rem;
}

.side-nav a {
  color: #F2EBE3;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.side-nav a:hover {
  opacity: 0.7;
}

/* Right Column - Images/Content */
.right-column {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  /* padding: 0 2em 1.5em 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area.image-panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-area h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #4C4233;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

.content-area p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4C4233;
  margin-bottom: 20px;
  font-weight: 300;
}

.content-area img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

div.contact-c {
  padding-top: 3.5rem;
  align-items:flex-start;
}

/* Contact Form */
.contact-form {
  width: 100%;
  max-width: 600px;
  padding: 3rem 2.5rem;
  background-color: rgba(249, 245, 240, 0.95);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-c {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}
.about-c h2 {
  font-family: "Spectral SC", serif;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 300;
  width: 80%;
  margin: 1rem auto 1.5rem auto;
}
.about-c .flex {
  display: flex;
  color: white;
}
.about-c .flex > div {
  flex: 1;
  padding: 0 1.5rem;
}
.about-c p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #60584D;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  background-color: #ECE5DC;
  border: none;
  border-bottom: 1px solid #D0C5B8;
  padding: 0.75rem 1rem;
  font-family: "Spectral SC", serif;
  font-size: 0.95rem;
  color: #4C4233;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #60584D;
  background-color: #E8E0D5;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A39A8E;
  opacity: 1;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #5A8B7E;
  color: #F2EBE3;
  border: none;
  font-family: "Spectral SC", serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.form-submit:hover {
  background-color: #4F7A6E;
}

/* Photo Pile (Homepage) */
.photo-pile {
  position: relative;
  width: min(62%, 520px);
  height: min(70vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pile-card {
  position: absolute;
  inset: 0;
  background-color: #F2EBE3;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: translate(var(--pile-x, 0px), var(--pile-y, 0px)) rotate(var(--pile-rot, 0deg));
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.pile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #E7DED4;
}

.pile-card.is-moving {
  opacity: 0.9;
  transform: translate(40px, 30px) rotate(8deg);
}

.pile-next {
  position: absolute;
  right: -44px;
  top: 50%;
  transform: translate(50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background-color: #F2EBE3;
  color: #4C4233;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.pile-next svg {
  width: 26px;
  height: 26px;
}

.pile-next:hover {
  transform: translate(50%, -50%) scale(1.05);
}

.design-studio-c {
  background-color: #F9F5F0;
}

.design-studio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  max-width: 90%;
  margin: 0 auto;
}

.design-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background-color: #FFF8F2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 1rem;
}

.design-section img {
  width: 100%;
  height: auto;
}
.design-section .image {
  width:100%;
  height: 34vh;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
}

.design-section-content {
  display: flex;
  flex-direction: column;
}

.design-section-content h2 {
  font-family: "Spectral SC", serif;
  font-size: 1.5rem;
  color: #4C4233;
  margin-bottom: 1rem;
}

.design-section-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.design-section-content .btn {
  font-family: "Spectral SC", serif;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #5A8B7E;
  color: #FFF;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.design-section-content .btn:hover {
  background-color: #6B5A4E;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  .top-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background-color: #F2EBE3;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .top-nav__links.active {
    transform: translateX(0);
  }

  .top-nav__links a {
    font-size: 1.5rem;
    color: #4C4233;
    font-family: "Spectral SC", serif;
    font-weight: 600;
  }

  .top-nav__links a:hover {
    opacity: 0.6;
  }

  .main-container {
    flex-direction: column;
  }
  
  .left-column,
  .right-column {
    width: 100%;
  }
  
  .left-column {
    padding: 2em;
  }
  
  .right-column {
    padding: 0 2em 2em;
  }

  .top-nav {
    padding: 0 1.2rem;
  }

  .side-nav {
    font-size: 1.5rem;
  }
  
  #logo-splash img {
    max-width: 300px;
  }

  .photo-pile {
    width: min(86%, 420px);
    height: min(60vh, 480px);
  }

  .pile-next {
    right: -28px;
    width: 44px;
    height: 44px;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  #carousel div img {
    height: 50vh;
  }

  .design-studio {
    grid-template-columns: repeat(1,1fr);
  }
  .design-section {
    grid-template-columns: repeat(1,1fr);
  }
  .about-c h2 {
    width: 95%;
    font-size: 1.8rem;
  }
  .about-c .flex {
    flex-direction: column;
  }
  .main-container {
    height: auto;
  }
  .page-content h1 {
    font-size: 42px;
  }
}

/* Carousel Styles */
#carousel {
  width: 100vw;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-grid > div {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -250px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  z-index: 8;
}

.carousel-grid > div:not(.active) {
  opacity: 0.4;
}

#carousel .carousel-grid > div.active {
  z-index: 10;
}

#carousel .carousel-grid > div.active img {
  transform: scale3d(1.15,1.15,1.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#carousel img {
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: all 0.6s ease;
  transform-origin: center;
}
#contact-thank-you {
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  text-align: center;
  &.show {
    display:block;
  }
  &.visible {
    opacity: 1;
    pointer-events: all;
  }
  h2 {
    font-size: 2rem;
    margin-top: 0;
    color: white;
  }
  p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: white;
  }
}