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

:root {
  --dark: #111111;
  --mid: #1e1e1e;
  --light-bg: #f5f5f0;
  --accent: #c8a96e;
  --text-light: #ffffff;
  --text-dark: #222222;
  --text-muted: #888888;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Muli', sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  flex-wrap: wrap;
}

.nav-logo {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(72%) sepia(27%) saturate(582%) hue-rotate(4deg) brightness(101%);
}

.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Muli', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

@media (max-width: 1300px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/bg-homepage-sunset-001.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--text-light);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-family: 'Muli', sans-serif;
}

.hero-location {
  font-size: 0.8rem !important;
  letter-spacing: 4px !important;
  margin-bottom: 2.5rem !important;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: 'Muli', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-family: 'Muli', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 3.5rem;
  letter-spacing: 1px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #444;
}

/* Gallery – masonry */
.gallery {
  position: relative;
}

.gallery-item {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-family: 'Muli', sans-serif;
  font-size: 0.85rem;
}

.section:not(.section-dark) .img-placeholder {
  background: #ccc;
  color: #999;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
}

.overlay span {
  color: white;
  font-family: 'Muli', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.gallery-item:hover .overlay {
  background: rgba(0, 0, 0, 0.45);
}

.gallery-item:hover .overlay span {
  opacity: 1;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
  font-family: 'Muli', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 2px;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form textarea {
  resize: vertical;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-error {
  color: #e07070;
  font-family: 'Muli', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: none;
}

.field-error.visible,
.form-server-error.visible {
  display: block;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #e07070;
}

.form-success {
  color: var(--accent);
  font-family: 'Muli', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  display: none;
}

.form-success.visible {
  display: block;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Muli', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 999;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: none;
  border: none;
  color: #777;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-content img.loaded {
  opacity: 1;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.lightbox-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

#lightbox-caption {
  color: #aaa;
  font-family: 'Muli', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

#lightbox-category {
  color: #555;
  font-family: 'Muli', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

#lightbox-counter {
  color: #555;
  font-family: 'Muli', sans-serif;
  font-size: 0.8rem;
  white-space: nowrap;
}

.lightbox-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
  font-size: 2.5rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 2px;
}

.lightbox-arrow:hover {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

/* Web grid */
.web-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.web-card {
  display: block;
  text-decoration: none;
  flex: 0 0 340px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--mid);
}

.web-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.web-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.web-card:hover img {
  transform: scale(1.03);
}

.web-card-footer {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.web-card-title {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.web-card-url {
  display: block;
  font-family: 'Muli', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

@media (max-width: 560px) {
  .web-card {
    flex: 0 0 100%;
  }
}

/* Contact section divider */
#contact {
  border-top: 2px solid var(--accent);
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--dark);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

#back-to-top.visible {
  display: flex;
}

#back-to-top:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-family: 'Muli', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox {
    padding: 1rem 0.5rem;
  }

  .lightbox-content {
    max-width: 100%;
    width: 100%;
  }

  .lightbox-content img {
    max-height: 68vh;
  }

  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    z-index: 1000;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
