/* Global styles */
:root {
  --bg: #f7f1ea;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #5a5049;
  --accent: #b28a56;
  --accent-dark: #8b6a42;
  --border: rgba(31, 26, 23, 0.08);
  --shadow: 0 24px 60px rgba(31, 26, 23, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-wrapper {
  min-height: 100vh;
  position: relative;
  padding-top: 96px;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  isolation: isolate;
}

.brand img.logo-image {
  max-height: 42px;
  width: auto;
  display: block;
  background-color: transparent;
  mix-blend-mode: multiply;
}

.brand span {
  color: var(--accent-dark);
}

.nav-links {
  display: grid;
  gap: 20px;
  grid-auto-flow: column;
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-links button {
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 210px;
  pointer-events: auto;
}

.nav-links > li {
  position: relative;
  z-index: 1;
}

.submenu a {
  padding: 10px 0;
  display: block;
  color: var(--muted);
}

.nav-links li:hover .submenu,
.nav-links li:focus-within .submenu,
.nav-links .submenu.open {
  display: flex;
}

.cta-nav {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s ease;
}

.cta-nav:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 999px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.mobile-nav {
  display: none;
  position: absolute;
  inset: 84px 24px 0;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31,26,23,0.08);
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 18px 22px;
}

.hero-copy h1,
.hero-copy p,
.hero-copy .eyebrow {
  text-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  margin: 0;
  line-height: 1.02;
}

.hero p {
  margin: 24px auto 0;
  max-width: 680px;
  color: rgba(31, 26, 23, 0.86);
  font-size: 1.05rem;
}

.section {
  padding: 80px 24px;
}

.section--small {
  padding-top: 56px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.grid {
  display: grid;
  gap: 28px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.project-card,
.info-card,
.team-card,
.filter-button {
  background: var(--surface);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,26,23,0.06);
}

.service-card {
  display: grid;
  gap: 18px;
}

.service-card .service-icon,
.project-card .project-thumb,
.team-card .team-photo,
.image-block {
  background: linear-gradient(135deg, rgba(178,138,86,.12), rgba(31,26,23,.06));
  border-radius: 22px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.service-card .service-icon img,
.project-card .project-thumb img,
.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3,
.project-card h3,
.info-card h3,
.team-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.service-card p,
.info-card p,
.team-card p,
.hero-subtitle {
  margin: 0;
  color: var(--muted);
}

.service-card a,
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.cta-button {
  margin-top: 16px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-card {
  padding: 0;
  cursor: pointer;
}

.project-card .project-thumb {
  min-height: 260px;
}

.project-card .project-label {
  padding: 24px;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-card {
  display: grid;
  gap: 18px;
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(178,138,86,0.14);
  color: var(--accent-dark);
  font-size: 1.4rem;
}

.cta-panel {
  background: var(--surface);
  border-radius: 36px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.footer {
  background: #1f1a17;
  color: #f3eee8;
  padding: 60px 24px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.footer p,
.footer a {
  color: rgba(243,238,232,0.8);
}

.footer a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}

.footer-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: rgba(243,238,232,0.68);
}

.placeholder {
  display: grid;
  place-items: center;
  color: rgba(31, 26, 23, 0.45);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.feature-columns {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.team-highlight .team-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
}

.team-highlight .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-highlight .team-copy {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .team-highlight {
    grid-template-columns: minmax(280px, 48%) minmax(320px, 52%);
  }
}

.text-block,
.form-panel {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid rgba(31,26,23,0.06);
}

.form-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31,26,23,0.12);
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #fff;
  outline: none;
}

.form-panel textarea {
  resize: vertical;
  min-height: 160px;
}

.form-panel button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-button {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(31,26,23,0.08);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(31,26,23,0.88);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 24px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(178,138,86,0.08);
  box-shadow: var(--shadow);
  padding: 24px;
}

.photo-carousel .carousel-track {
  position: relative;
  min-height: 340px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: 22px;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--accent-dark);
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.carousel-button.prev {
  left: 16px;
}

.carousel-button.next {
  right: 16px;
}

.carousel-button:hover {
  background: #fff;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(31,26,23,0.22);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(178,138,86,0.12);
}

@media (max-width: 720px) {
  .photo-carousel {
    padding: 18px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-indicators {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 18px 20px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 140px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 18px;
  }

  .hero {
    padding: 120px 18px 80px;
  }

  .service-card,
  .info-card,
  .team-card,
  .text-block,
  .form-panel,
  .cta-panel {
    padding: 24px;
  }

  .cta-panel {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .hero .hero-image {
    opacity: 0.45;
    z-index: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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