﻿:root {
  --offwhite: #f7f6f3;
  --charcoal: #1f1f1f;
  --muted: #6e6a64;
  --line: #e4e1dc;
  --shadow: 0 16px 30px rgba(24, 24, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background-color: var(--offwhite);
  letter-spacing: 0.01em;
}

.bg-offwhite {
  background-color: var(--offwhite) !important;
}

.text-charcoal {
  color: var(--charcoal);
}

.container-xl {
  padding-left: 8rem;
  padding-right: 8rem;
}

.brand {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.navbar {
  padding-top: 7rem !important;
  padding: 1.2rem 0;
}

.navbar .nav-link {
  color: var(--charcoal);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--muted);
}

.section-space {
  padding: 5rem 0;
}

#work,
#about,
#contact,
#mailing-list {
  scroll-margin-top: 8rem;
}

.section-tint {
  background: #fbfaf7;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 32rem;
}

.mailing-section {
  background-image: url("../images/06.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.mailing-section .section-title,
.mailing-section .section-subtitle {
  color: #fff;
}

.mailing-form .form-control {
  border-radius: 0;
  border-color: var(--line);
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.mailing-form .form-control:focus {
  border-color: var(--charcoal);
  box-shadow: none;
}

.mailing-form .btn {
  border-radius: 0;
  padding: 0.9rem 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.mailing-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.mailing-section .mailing-note {
  color: #fff;
}

.gallery-accordion .accordion-button {
  background: #fff;
  color: var(--charcoal);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gallery-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--line);
}

.gallery-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.gallery-accordion .accordion-body {
  background: #fff;
}

.gallery-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0efec;
  height: 100%;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img,
.gallery-card:focus-within .gallery-img {
  transform: scale(1.02);
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #f3f2ee;
}

.gallery-card.is-missing .gallery-img {
  display: none;
}

.gallery-card.is-missing .gallery-placeholder {
  display: flex;
}

.gallery-button {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: block;
}

.gallery-message {
  border: 1px dashed var(--line);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.gallery-message h3 {
  color: var(--charcoal);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.gallery-message p {
  margin-bottom: 0.75rem;
}

.gallery-message ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-message li {
  margin-bottom: 0.4rem;
}

.about-title{
  background-image: url("../images/06.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-text,
.contact-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-text + .about-text {
  margin-top: 1rem;
}

.contact-text a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-text a:hover,
.contact-text a:focus {
  color: var(--muted);
  border-color: var(--muted);
}

.modal-content {
  border-radius: 0;
  overflow: hidden;
  border: none;
}

.modal-body {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.modal-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 31, 31, 0.25);
}

.modal-backdrop.show {
  opacity: 0.85;
}

.modal-figure {
  margin: 0;
  background: #fff;
  display: flex;
  align-items: stretch;
}

.modal-media {
  width: 60%;
  background: #f0efec;
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-caption {
  width: 40%;
  padding: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 1px solid var(--line);
}

.modal-title {
  color: var(--charcoal);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.modal-meta {
  margin: 1rem 0 2rem;
  display: grid;
  gap: 0.25rem;
}

.modal-description {
  margin: 0;
}

@media (max-width: 991px) {
  .section-space {
    padding: 4rem 0;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .modal-figure {
    flex-direction: column;
  }

  .modal-media,
  .modal-caption {
    width: 100%;
  }

  .modal-caption {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .container-xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-space {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}
