:root {
  --bg: #f7d9f1;
  --text: #000;
  --muted: #777;
  --border: #cfcfcf;
  --maxw: 980px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Playfair Display", serif;
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}

#fade-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px; 
  flex-grow: 1;
}

.narrow {
  max-width: 820px;
}

.center-content {
  flex-grow: 1;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  color: var(--muted);
  margin-top: auto;
}

.quote {
  text-align: center;
  padding: 20px;
}

.quote blockquote {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 10px;
}

.quote figcaption {
  color: var(--muted);
  font-size: 1rem;
}

.contact-form {
  width: min(80%, 900px); 
  margin-top: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}

.row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  background: var(--text);
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  opacity: 0.85;
}

.narrow p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.2em;
}

@media (max-width: 900px) {
  .contact-form {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .row.two-col {
    grid-template-columns: 1fr;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
}

#logo-screen {
  position: fixed;
  inset: 0;
  background-color: #f7d9f1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1s ease 3s forwards; 
}

#logo {
  width: 200px;
  opacity: 0;
  animation: logoFade 3s ease forwards;
}

@keyframes logoFade {
  0% { opacity: 0; }
  35% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

#fade-wrapper {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.page-loaded #fade-wrapper {
  opacity: 1;
}
