/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 0.75rem;
  color: var(--fg);
}

.section-divider {
  width: 4rem;
  height: 1px;
  background: var(--accent);
  margin-top: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
.anim-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-hidden-fade {
  opacity: 0;
  transition: opacity 0.8s ease-out 0.3s;
}

.anim-visible-fade {
  opacity: 1;
}

/* ===== NAVIGATION ===== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s, box-shadow 0.5s;
}

.nav-header.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--bg);
  transition: color 0.3s;
}

.nav-header.scrolled .nav-logo {
  color: var(--fg);
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg);
  transition: color 0.3s;
}

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

.nav-header.scrolled .nav-links a {
  color: var(--fg);
}

.nav-header.scrolled .nav-links a:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--bg);
  transition: color 0.3s;
}

.nav-header.scrolled .mobile-toggle {
  color: var(--fg);
}

.mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background-color: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--fg);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--fg);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .nav-logo {
    font-size: 2rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44, 36, 32, 0.12) 0%, rgba(44, 36, 32, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--bg);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(250, 248, 245, 0.8);
  max-width: 32rem;
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(250, 248, 245, 0.6);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--bg);
  transition: background-color 0.3s, color 0.3s;
}

.hero-cta:hover {
  background-color: var(--bg);
  color: var(--fg);
}

/* Hero controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: rgba(250, 248, 245, 0.7);
  transition: color 0.3s;
  padding: 0.5rem;
}

.hero-arrow:hover {
  color: var(--bg);
}

.hero-arrow svg {
  width: 2rem;
  height: 2rem;
}

.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }

@media (min-width: 768px) {
  .hero-arrow.prev { left: 2rem; }
  .hero-arrow.next { right: 2rem; }
  .hero-arrow svg { width: 2.5rem; height: 2.5rem; }
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: width 0.3s, background-color 0.3s;
  width: 0.5rem;
  background-color: rgba(250, 248, 245, 0.5);
}

.hero-dot.active {
  width: 2rem;
  background-color: var(--bg);
}

/* ===== FEATURED GALLERY ===== */
.featured-gallery {
  background-color: var(--bg);
  padding: 5rem 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: default;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0);
  transition: background 0.5s;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(44, 36, 32, 0.2);
}

.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s;
}

.gallery-item:hover .gallery-item-label {
  transform: translateY(0);
}

.gallery-item-label span {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-gallery { padding: 7rem 2rem; }
}

/* ===== SERVICES ===== */
.services {
  background-color: var(--secondary);
  padding: 5rem 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.service-card:hover .service-icon {
  border-color: var(--accent);
  background-color: rgba(201, 168, 124, 0.1);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  stroke-width: 1.2;
}

.service-card h3 {
  font-size: 1.5rem;
}

.service-card p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0.75rem;
  text-wrap: pretty;
}

.service-price {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .services { padding: 7rem 2rem; }
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--bg);
  padding: 5rem 1.5rem;
}

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

.about-image {
  position: relative;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
  text-wrap: pretty;
}

.about-text p:first-of-type {
  margin-top: 2rem;
}

.btn-outline {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--fg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg);
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  background-color: var(--fg);
  color: var(--bg);
}

@media (min-width: 1024px) {
  .about-inner {
    flex-direction: row;
    gap: 5rem;
  }
  .about-image {
    width: 50%;
    max-width: none;
  }
  .about-text {
    width: 50%;
  }
  .about { padding: 7rem 2rem; }
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background-color: var(--secondary);
  padding: 5rem 1.5rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
}

.filter-btn:hover {
  color: var(--fg);
}

.filter-btn.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0);
  transition: background 0.5s;
}

.portfolio-item:hover .gallery-item-overlay {
  background: rgba(44, 36, 32, 0.2);
}

.portfolio-item .gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.5s;
}

.portfolio-item:hover .gallery-item-label {
  transform: translateY(0);
}

.portfolio-empty {
  text-align: center;
  padding: 4rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio { padding: 7rem 2rem; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 32, 0.92);
  backdrop-filter: blur(4px);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg);
  transition: color 0.3s;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox img {
  max-height: 85vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== CONTACT ===== */
.contact {
  background-color: var(--bg);
  padding: 5rem 1.5rem;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
}

.contact-info > p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-details-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.contact-details-item span,
.contact-details-item a {
  font-size: 0.875rem;
  transition: color 0.3s;
}

.contact-details-item a:hover {
  color: var(--accent);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-group label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
}

.form-group input,
.form-group textarea,
.form-group select {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  transition: border-color 0.3s;
}

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

.form-group textarea {
  resize: none;
  min-height: 5rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7e76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--fg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg);
  background: transparent;
  transition: background-color 0.3s, color 0.3s;
}

.btn-submit:hover {
  background-color: var(--fg);
  color: var(--bg);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
}

.form-success h3 {
  font-size: 1.75rem;
}

.form-success p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .contact-inner {
    flex-direction: row;
    gap: 5rem;
  }
  .contact-info { width: 33.333%; }
  .contact-form-wrap { width: 66.667%; }
  .contact { padding: 7rem 2rem; }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--fg);
  padding: 3rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--bg);
}

.footer-desc {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.6);
  max-width: 28rem;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-socials a {
  color: rgba(250, 248, 245, 0.6);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-socials svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.5;
}

.footer-rule {
  width: 100%;
  max-width: 16rem;
  height: 1px;
  background: rgba(250, 248, 245, 0.1);
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(250, 248, 245, 0.4);
}