:root {
  --primary-beige: #E6DED5;
  --charcoal: #2E2E2E;
  --taupe: #8C857C;
  --gold: #D6BFA3;
  --soft-white: #FAFAF8;
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--charcoal);
  background-color: var(--soft-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-unit);
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--taupe);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  background-color: var(--soft-white);
  border-bottom: 1px solid var(--primary-beige);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(250, 250, 248, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-menu span {
  width: 25px;
  height: 1px;
  background-color: var(--charcoal);
  transition: all 0.3s ease;
}

footer {
  background-color: var(--primary-beige);
  padding: 4rem 1.5rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--taupe);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: var(--taupe);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
  font-size: 0.875rem;
  color: var(--taupe);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--charcoal);
  color: var(--soft-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--taupe);
}

.back-to-top.visible {
  display: flex;
}

.hero {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--primary-beige);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--taupe);
  margin: 0 auto;
  max-width: 60ch;
}

.section {
  padding: 6rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--taupe);
  margin: 0 auto;
  font-size: 1.125rem;
}

.gallery-horizontal {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-horizontal::-webkit-scrollbar {
  height: 8px;
}

.gallery-horizontal::-webkit-scrollbar-track {
  background: var(--primary-beige);
}

.gallery-horizontal::-webkit-scrollbar-thumb {
  background: var(--taupe);
  border-radius: 4px;
}

.gallery-item {
  min-width: 400px;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-grid-item {
  overflow: hidden;
}

.gallery-grid-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.card {
  background-color: var(--soft-white);
  padding: 3rem;
  border: 1px solid var(--primary-beige);
  margin-bottom: 2rem;
}

.card h3 {
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.card p {
  color: var(--taupe);
  margin-bottom: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--primary-beige);
  background-color: var(--soft-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--taupe);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
}

.submit-btn {
  background-color: var(--charcoal);
  color: var(--soft-white);
  padding: 1rem 3rem;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: var(--taupe);
}

.thankyou-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.thankyou-content {
  max-width: 600px;
}

.thankyou-content h1 {
  margin-bottom: 2rem;
}

.thankyou-content p {
  margin-bottom: 2rem;
  color: var(--taupe);
  font-size: 1.125rem;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.legal-page p {
  margin-bottom: 1.5rem;
}

.legal-page ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--soft-white);
    border-bottom: 1px solid var(--primary-beige);
    padding: 2rem 1.5rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-item {
    min-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 1rem;
  }

  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .header-container {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1rem;
  }

  nav a {
    font-size: 0.8125rem;
  }

  .hero {
    min-height: 50vh;
    padding: 1.5rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .section {
    padding: 2.5rem 0.75rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.9375rem;
  }

  .gallery-item {
    min-width: 240px;
  }

  .gallery-item img {
    height: 400px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid-item img {
    height: 300px;
  }

  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.125rem;
  }

  .split-layout {
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.75rem;
  }

  .footer-section h3 {
    font-size: 0.9375rem;
  }

  .footer-section a,
  .footer-section p {
    font-size: 0.8125rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.875rem;
    font-size: 0.9375rem;
  }

  .form-group label {
    font-size: 0.8125rem;
  }

  .submit-btn {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }

  .legal-page {
    padding: 2.5rem 0.75rem;
  }

  .legal-page h1 {
    font-size: 1.75rem;
  }

  .legal-page h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .thankyou-content {
    padding: 0 0.75rem;
  }

  .thankyou-content h1 {
    font-size: 1.75rem;
  }

  .thankyou-content p {
    font-size: 0.9375rem;
  }
}