/* =====================
   ROOT & RESET
   ===================== */
:root {
  --cream:       #F0EDE6;
  --cream-dark:  #E8E3D9;
  --teal:        #507B7B;
  --teal-light:  #7FA8A8;
  --teal-pale:   #D4E4E4;
  --dark:        #2C2C2C;
  --mid:         #6B6B6B;
  --light:       #9A9A9A;
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  --nav-height:  72px;
  --max-width:   1100px;
  --narrow:      680px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   NAVIGATION
   ===================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background: rgba(240, 237, 230, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(80, 123, 123, 0.12);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--teal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--teal);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dark);
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: rgba(240, 237, 230, 0.97);
  padding: 1.5rem 2rem 2rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dark);
  text-decoration: none;
}

/* =====================
   HERO
   ===================== */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 6rem;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-logo {
  width: min(540px, 82vw);
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--mid);
  line-height: 2;
  letter-spacing: 0.05em;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  cursor: pointer;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--teal-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =====================
   SECTIONS COMMON
   ===================== */
section {
  padding: 7rem 2rem;
}

#works, #contact {
  background: var(--cream-dark);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: var(--narrow);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--teal-light);
  margin-bottom: 4rem;
}

/* =====================
   WORKS
   ===================== */

/* Tabs */
.works-tabs {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.works-tab {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  padding: 0 0 4px;
  position: relative;
  transition: color 0.3s;
}

.works-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.35s ease;
}

.works-tab.active {
  color: var(--teal);
}

.works-tab.active::after {
  width: 100%;
}

/* Container */
.works-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

/* Card sizes */
.work-card {
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
  position: relative;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0);
  transition: background 0.45s ease;
  pointer-events: none;
}

.work-card[data-size="full"] {
  grid-column: 1 / -1;
}

.work-card[data-size="wide"] {
  grid-column: span 2;
}

/* Hide/Show for filtering */
.work-card.hidden {
  display: none;
}

/* Video */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--dark);
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Images */
.work-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.work-img--contain {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--cream);
  padding: 2rem;
}

.work-card:hover .work-img {
  transform: scale(1.06);
}

.work-card:hover::after {
  background: rgba(20, 20, 20, 0.18);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: white;
}

@media (max-width: 768px) {
  .works-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-card[data-size="full"] {
    grid-column: 1 / -1;
  }
  .work-card[data-size="wide"] {
    grid-column: 1 / -1;
  }
}

/* =====================
   SERVICES
   ===================== */
.services-block {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-category {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--teal-pale);
}

.service-list li:first-child {
  border-top: 1px solid var(--teal-pale);
}

.service-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--dark);
}

.service-detail {
  font-size: 0.72rem;
  color: var(--light);
  letter-spacing: 0.05em;
}

.service-price {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.services-note {
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 2;
  text-align: center;
  letter-spacing: 0.05em;
}

/* =====================
   ABOUT
   ===================== */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.about-text p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 2.2;
  color: var(--dark);
  letter-spacing: 0.03em;
}

/* =====================
   CONTACT
   ===================== */
.contact-lead {
  font-size: 0.8rem;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

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

.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--teal-pale);
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.submit-btn {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.8rem 3rem;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.submit-btn:hover {
  background: var(--teal);
  color: var(--cream);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-result {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.form-result--success {
  color: var(--teal);
}

.form-result--error {
  color: #c0392b;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--dark);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--cream-dark);
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--light);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 5rem 1.5rem;
  }

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .service-detail {
    display: none;
  }

  .service-price {
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: min(220px, 70vw);
  }
}
