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

:root {
  --ink: #16171b;
  --ink-soft: #2a2e37;
  --slate: #5f6673;
  --line: rgba(22, 23, 27, 0.1);
  --mist: #f4f6f8;
  --panel: #ffffff;
  --accent: #c89d60;
  --accent-dark: #9a7643;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
  --radius: 24px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  line-height: 1.7;
  font-size: 16px;
}

.dc-demo-return {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font: 14px/1.4 Arial, sans-serif;
}

.dc-demo-return a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  background-color: rgba(28, 30, 33, 0.96);
  color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  margin: 0;
}

.brand-block p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

nav {
  position: relative;
}

.nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, background-color 0.25s ease;
  padding: 10px 15px;
  display: inline-block;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  color: #fff;
  background-color: rgba(200, 157, 96, 0.25);
}

main {
  padding: 2rem 0 4rem;
}

section {
  padding: 0 0 2rem;
}

.hero {
  padding-top: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero img,
.feature-photo,
.contact-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero img {
  height: min(68vh, 720px);
}

.hero-copy h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.hero-copy p {
  color: var(--slate);
  max-width: 52ch;
}

.section-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(200, 157, 96, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.intro,
.preview,
.cta,
.about,
.contact,
.portfolio {
  text-align: left;
}

.intro h3,
.preview h3,
.cta h3,
.section-title,
.about h2,
.portfolio h2,
.contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.intro p,
.cta p,
.about p,
.contact p,
.section-copy {
  color: var(--slate);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  background-color: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  font-weight: 700;
}

.btn:hover {
  background-color: var(--ink-soft);
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(22, 23, 27, 0.08);
  color: var(--ink);
}

.preview .gallery,
.portfolio .gallery {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

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

.portfolio .gallery {
  grid-template-columns: repeat(3, 1fr);
}

.preview .gallery img,
.portfolio .gallery img {
  width: 100%;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.preview .gallery img:hover,
.portfolio .gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.feature-photo,
.contact-photo {
  height: 100%;
  min-height: 320px;
  border-radius: 22px;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin-top: 1.2rem;
}

.detail-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 24px auto 0;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  background-color: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  padding: 12px 24px;
  background-color: var(--ink);
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  align-self: start;
  transition: background 0.25s ease, transform 0.25s ease;
  font-weight: 700;
}

.contact-form button:hover {
  background-color: var(--ink-soft);
  transform: translateY(-1px);
}

.demo-alert {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #eef8f0;
  border: 1px solid rgba(78, 145, 96, 0.28);
  color: #255036;
}

.demo-alert.is-visible {
  display: block;
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
}

footer {
  background-color: #1c1e21;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  margin-top: 20px;
}

.demo-footer-note {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 0.45rem;
}

@media (max-width: 920px) {
  .header-shell,
  .split-layout,
  .hero-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-shell {
    gap: 16px;
  }

  .portfolio .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background-color: #1c1e21;
    padding: 15px 0;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    text-align: center;
    z-index: 999;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  nav ul.active {
    display: flex;
  }

  .hero img {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .portfolio .gallery,
  .preview .gallery {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }
}
