@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@400;500;600&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --cream: #f6cf92;
  --cream-dark: #f3b35d;
  --charcoal: #1c3123;
  --warm-gray: #293d33;
  --accent: #b6571a;
  --accent-dark: #8c4a15;
  --border: #d4c4a8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
}

img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.hero img,
.hero-image,
.hero-logo {
  border-radius: 0 !important;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin: 0 0 0.6em;
  letter-spacing: 0.5px;
}

p {
  line-height: 1.7;
  margin: 0 0 1.2em;
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.site-header {
  background: #1c3123;
  backdrop-filter: blur(6px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-mark img {
  width: auto;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 11;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #5a250d;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #d4c4a8;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

nav a.active,
nav a:hover {
  color: #f6cf92;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  margin-top: -93px;
  padding-top: 93px;
  margin-bottom: 0;
  overflow: hidden;
  display: block;
  z-index: 0;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-wrapper img,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 49, 35, 0.3);
  z-index: 2;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  left: 4rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  max-width: 40%;
  height: auto;
  max-height: 60%;
  z-index: 3;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 0.95rem;
}

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

.link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: #293d33;
  letter-spacing: 0.03em;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.hero + main .section:first-of-type {
  margin-top: 0;
}

.section:last-of-type {
  border-bottom: none;
}

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

.featured-piece {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.featured-piece .details {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(52, 42, 31, 0.08);
}

.featured-piece ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.featured-piece li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.badge {
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.preview-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.preview-card img {
  margin-bottom: 1.5rem;
  height: 220px;
  object-fit: cover;
}

.preview-card a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.process-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.process-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cta-block {
  text-align: center;
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.site-footer {
  padding: 3rem 0;
  background: var(--charcoal);
  color: #fff;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

main {
  padding-top: 2rem;
}

.hero + main {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.split .gallery-image-wrapper {
  max-width: 100%;
}

.note {
  font-size: 0.9rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

.gallery-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-card-link h3 {
  margin-top: 1rem;
}

.gallery-image-wrapper {
  position: relative;
}

.gallery-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: none;
}

.gallery-image-wrapper img.active {
  display: block;
}

/* Product page specific - larger image display */
.split .gallery-image-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-arrow.prev {
  left: 8px;
}

.gallery-arrow.next {
  right: 8px;
}

.price {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-step {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.inquiries-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

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

.inquiry-form-top {
  margin: 0;
}

form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1c3123;
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 5rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    color: #d4c4a8;
  }

  .main-nav a.active,
  .main-nav a:hover {
    color: #f6cf92;
  }

  .site-header .inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero {
    width: 100%;
    height: calc(100vh - 93px);
    margin-top: 0;
    padding-top: 0;
  }

  .hero-image-wrapper {
    width: 100%;
    height: 100%;
  }

  .hero-image-wrapper img,
  .hero-image {
    width: 100vw;
    height: 100%;
    min-width: 100vw;
    min-height: 100%;
    max-width: 100vw;
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    background: rgba(28, 49, 35, 0.4);
  }

  .hero-logo {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: 90%;
    max-height: 75%;
    width: auto;
  }

  .logo-mark img {
    height: 90px;
  }

  .gallery-card {
    max-width: 100%;
  }

  .gallery-grid {
    max-width: 100%;
  }

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

  .process-card {
    text-align: center;
  }

  .container {
    width: 95%;
  }

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

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