/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f5f0;
  color: #2f2a24;
  line-height: 1.7;
}

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

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

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

p {
  font-size: 0.95rem;
  color: #6a6256;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4ded4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
}

.logo a {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tagline {
  display: block;
  margin-top: 4px;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9a9184;
}

.main-nav a {
  margin-left: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9184;
  transition: color 0.2s ease;
}

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

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  background-color: #f7f5f0;
}

.contact-hero {
  padding: 90px 0 28px;
}

.contact-title {
  text-align: center;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  letter-spacing: 0.01em;
}

.contact-form-section {
  padding-bottom: 120px;
}

/* =========================
   SUCCESS PANEL (HIDDEN)
========================= */

.contact-success {
  max-width: 560px;
  margin: 0 auto 22px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  height: 0;
  overflow: hidden;
}

.contact-success.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  height: auto;
  overflow: visible;
  margin-bottom: 28px;
}

.success-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f2a24;
}

.success-subtitle {
  margin-top: 10px;
  color: #6a6256;
}

.success-small {
  margin-top: 12px;
  font-size: 0.86rem;
  color: #9a9184;
}

/* =========================
   FORM
========================= */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-form.is-sent {
  opacity: 0.15;
  transform: translateY(6px);
  pointer-events: none;
  user-select: none;
}

.field {
  padding: 26px 0;
}

.field-label {
  display: block;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: #6a6256;
  margin-bottom: 14px;
}

.field-input,
.field-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d8d0c3;
  background: transparent;
  padding: 10px 8px 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #2f2a24;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input {
  text-align: center;
}

.field-textarea {
  min-height: 140px;
  resize: vertical;
  text-align: left;
}

.field-input:focus,
.field-textarea:focus {
  border-bottom-color: #2f2a24;
}

/* =========================
   BUTTON
========================= */

.contact-button {
  display: block;
  margin: 30px auto 0;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid #2f2a24;
  background: transparent;
  color: #2f2a24;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
  background: #2f2a24;
  color: #f7f5f0;
  transform: translateY(-1px);
}

.contact-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   FORM STATUS
========================= */

.form-status {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #9a9184;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #6a6256;
}

.form-status.is-error {
  color: #7a5d55;
}

/* =========================
   CONTACT NOTE
========================= */

.contact-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #9a9184;
}

.contact-email-link {
  color: #2f2a24;
  border-bottom: 1px solid rgba(47, 42, 36, 0.3);
  padding-bottom: 2px;
}

.contact-email-link:hover {
  border-bottom-color: rgba(47, 42, 36, 0.55);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid #e4ded4;
  padding: 18px 0;
  font-size: 0.8rem;
  color: #9a9184;
  background-color: #f7f5f0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  color: #9a9184;
}

.footer-links a:hover {
  color: #2f2a24;
}

.footer-separator {
  margin: 0 8px;
  color: #c1b8aa;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
