:root {
  --bg: #faf7f4;
  --text: #342d29;
  --gold: #a9864a;
  --gold-light: #bd9a61;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap {
  width: min(100%, 1024px);
  margin: 0 auto;
}

/* Header */
.site-header {
  height: 92px;
  background: #faf7f4;
  border-bottom: 1px solid #ded7cf;
}
.header-inner {
  height: 92px;
  display: grid;
  grid-template-columns: 300px 1fr 180px;
  align-items: center;
  padding: 0 28px 0 60px;
}
.logo img { width: 225px; height: auto; }
.nav { display: flex; justify-content: center; gap: 34px; font-size: 19px; }
.nav a { position: relative; padding-bottom: 13px; }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  width: 51px; height: 1px; background: #625d58; margin: auto;
}
.contact {
  justify-self: end;
  border: 1px solid var(--gold);
  padding: 12px 18px 10px;
  font-size: 18px;
  letter-spacing: .03em;
  color: #514841;
  transition: background .2s, color .2s;
}
.contact:hover, .contact.active-contact {
  background: var(--gold);
  color: #fff;
}

/* Hero (etusivu) */
.hero {
  height: 719px;
  background-image: url("assets/hero-complete.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Featured section (etusivu) */
.featured { background: #faf7f4; padding: 72px 0 0; }
.featured-copy-area { max-width: 735px; margin: 0 auto; text-align: center; }
.featured h1 {
  margin: 0; font-weight: 500; font-size: 58px; line-height: 1.08; letter-spacing: -0.015em;
}
.featured p {
  margin: 28px auto 0; max-width: 720px; font-size: 25px; line-height: 1.42; color: #4a413c;
}
.latest-link { display: inline-block; margin-top: 45px; font-size: 26px; color: #4e4642; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 37px 37px 0; }
.card img { width: 100%; height: 199px; object-fit: cover; }
.card h2 { margin: 23px 0 9px 4px; font-size: 31px; font-weight: 500; line-height: 1; }
.card .meta, .card .area { margin: 0 0 0 4px; font-size: 22px; line-height: 1.35; }
.card .area { margin-top: 8px; }
.gold-dot { color: var(--gold); font-size: 24px; padding-left: 10px; }
.bottom { text-align: center; padding: 31px 0 8px; }
.bottom a {
  display: inline-block; border: 1px solid var(--gold-light);
  min-width: 315px; padding: 14px 25px 12px; font-size: 21px;
  color: #584d45; background: rgba(255,255,255,.25);
}

/* ========== CONTACT PAGE ========== */
.contact-page { padding: 70px 0 90px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  padding: 0 28px;
  align-items: start;
}
.contact-copy h1 {
  margin: 0 0 28px;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.contact-copy p {
  font-size: 22px;
  line-height: 1.5;
  color: #4a413c;
  margin: 0 0 22px;
}
.contact-info {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid #ded7cf;
}
.contact-info p { margin: 4px 0; font-size: 20px; color: #4a413c; }
.contact-info a { color: var(--gold); }
.contact-info a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid #e6dfd6;
  padding: 38px 36px;
  box-shadow: 0 6px 22px rgba(80,60,30,.05);
}
.contact-form-wrap h2 {
  margin: 0 0 22px;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -.005em;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  position: relative;
}
.contact-form .lbl {
  display: block;
  font-size: 16px;
  color: #6b6058;
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
  background: #faf7f4;
  border: 1px solid #d9d1c6;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

.contact-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  color: #5b5249;
  margin: 8px 0 22px;
}
.contact-form .check input { margin-top: 4px; }

.btn-send {
  font-family: inherit;
  font-size: 19px;
  letter-spacing: .12em;
  color: #fff;
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 38px 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-send:hover { background: #8e6e3a; border-color: #8e6e3a; }

.form-msg {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 18px;
  border: 1px solid;
}
.form-ok  { border-color: #2f7d3e; color: #2f7d3e; background: #f3faf4; }
.form-err { border-color: #b54040; color: #b54040; background: #fdf3f3; }

/* Footer */
.site-footer {
  border-top: 1px solid #ded7cf;
  padding: 28px 0;
  margin-top: 60px;
  background: #f4f0ea;
}
.footer-inner { padding: 0 28px; text-align: center; }
.site-footer p { margin: 0; font-size: 17px; color: #6b6058; }

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-copy h1 { font-size: 38px; }
}
@media (max-width: 800px) {
  .site-header { height: auto; }
  .header-inner {
    height: auto; grid-template-columns: 1fr;
    justify-items: center; gap: 15px; padding: 18px 20px;
  }
  .contact { justify-self: center; }
  .hero { height: 70vw; min-height: 470px; background-size: cover; }
  .featured h1 { font-size: 44px; }
  .featured p, .latest-link { font-size: 22px; }
  .cards { grid-template-columns: 1fr; padding: 34px 28px 0; gap: 36px; }
  .card img { height: auto; }
  .contact-page { padding: 40px 0 60px; }
  .contact-form-wrap { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .nav { gap: 18px; flex-wrap: wrap; font-size: 17px; }
  .logo img { width: 205px; }
  .hero { min-height: 360px; }
  .featured { padding-top: 50px; }
  .featured-copy-area { padding: 0 20px; }
  .featured h1 { font-size: 38px; }
  .featured p, .latest-link { font-size: 20px; }
  .contact-copy h1 { font-size: 32px; }
  .contact-copy p { font-size: 19px; }
}
