*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header like Sophie Kahn */
.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 40px;
  border-bottom:1px solid #e5e5e5;
  background:#fff;
}
/* site title with icon */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;                /* spacing between icon and text */
  font-size: 2.2rem;          /* same as your current title */
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: #111;                /* ensure text stays black */
}

/* logo icon */
.site-logo {
  height: 80px;               /* adjust if needed — this fits your icon nicely */
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav { font-size:1.1rem; font-weight: 700}
.nav-list {
  list-style:none;
  display:flex;
  gap:2rem;
  margin:0;
  padding:0;
}
.nav-item { position:relative; }

.has-children {
  position: relative;
}

.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.3rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  list-style: none;
  padding: 0.4rem 0;
  min-width: 150px;
  z-index: 1000; /* Prevents hiding behind other elements */
}

.sub-nav li a {
  display: block;
  padding: 0.35rem 1rem;
  white-space: nowrap;
}

.has-children:hover .sub-nav {
  display: block;
}

/* Parent needs to own the hover state */
.nav-item.has-children {
  position: relative;
}

/* Hidden by default */
.sub-nav {
  position: absolute;
  top: 100%;          /* directly under the Work link */
  left: 0;
  margin-top: 0;      /* IMPORTANT: remove gaps */
  padding: 0.4rem 0;
  min-width: 160px;

  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);

  display: none;
  z-index: 1000;
}

/* Items inside the dropdown */
.sub-nav li a {
  display: block;
  padding: 0.35rem 1rem;
  white-space: nowrap;
  text-decoration: none;
}

.sub-nav li a:hover {
  background: #f4f4f4;
}

/* Show dropdown when the li OR its children are hovered/focused */
.nav-item.has-children:hover .sub-nav,
.nav-item.has-children:focus-within .sub-nav {
  display: block;
}

/* Layout */
.page-main {
  max-width:1400px;
  margin:2rem auto 3rem auto;
  padding:0 40px;
}
.text-page { max-width:720px; }

/* Footer */
.site-footer {
  border-top:1px solid #e5e5e5;
  padding:1rem 40px 1.5rem;
  font-size:0.85rem;
  color:#555;
}

/* Carousel */
.carousel {
  position:relative;
  overflow:hidden;
}
.carousel-inner {
  position:relative;
}
.carousel-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 0.9s ease-in-out;
}
.carousel-slide.is-active {
  opacity:1;
  position:relative;
}
.carousel-slide img {
  width:100%;
  height:auto;
  display:block;
}
.carousel-caption {
  position:absolute;
  left:1.5rem;
  bottom:1.5rem;
  background:rgba(255,255,255,0.85);
  padding:0.3rem 0.7rem;
  font-size:0.9rem;
}

/* arrows */
.carousel-control {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:rgba(255,255,255,0.85);
  padding:0.3rem 0.8rem;
  cursor:pointer;
  font-size:1.5rem;
}
.carousel-control.prev { left:0.5rem; }
.carousel-control.next { right:0.5rem; }

/* dots */
.carousel-dots {
  display:flex;
  justify-content:center;
  gap:0.4rem;
  margin-top:0.6rem;
}
.carousel-dots .dot {
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid #333;
  background:transparent;
  cursor:pointer;
  padding:0;
}
.carousel-dots .dot.is-active { background:#333; }

/* Mobile */
.menu-toggle {
  display:none;
  background:none;
  border:1px solid #111;
  border-radius:999px;
  padding:0.2rem 0.9rem;
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.16em;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-logo {
    height: 32px;   /* smaller logo on mobile */
  }

  /* Mobile nav: hidden by default, drops down below header when open */
  .main-nav {
    position: absolute;
    top: 64px;      /* roughly header height */
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    padding: 1.5rem 0 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1100;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
  }

  .page-main {
    padding: 1.5rem;
  }

  .site-footer {
    padding: 0.8rem 1.5rem 1.3rem;
  }
}


.main-nav {
  z-index: 1100;           /* higher than header, just to be safe */
}

/* Make sure the carousel stays underneath */
.carousel {
  position: relative;
  z-index: 1;
}
.contact-form {
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

.contact-form button {
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #333;
}

