/*
Theme Name: Kavos pertrauka
Theme URI: https://kavospertrauka.lt
Description: kavospertrauka.lt svetainė
Author: Darius Eberson
Author URI: www.eberson.lt
Version: 1.0
*/

html,
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9f7f2;
  color: #1d2b21;
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

.site-header {
  height: 86px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(249, 247, 242, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ddd8cc;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand span {
  color: #997347;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  margin-top: 7px;
  color: #6b746d;
}
.brand img {
  width: 160px;
  height: auto;
}
footer .footer-logo img,
.footer-widget img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.site-header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}

.site-header nav a:hover {
  color: #997347;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #254a37;
  color: white;
  border: 0;
  padding: 14px 24px;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #173626;
  transform: translateY(-1px);
}

.btn-small {
  padding: 11px 18px;
  font-size: 13px;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 46% 54%;
  background: #efe9df;
}

.hero-copy {
  padding: 110px 7vw 70px;
}

.eyebrow {
  color: #997347;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  line-height: 1.04;
  margin: 18px 0 24px;
  max-width: 620px;
  font-weight: 500;
}

.hero h1 em {
  display: block;
  color: #997347;
  font-weight: 500;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 18px;
  color: #566158;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid;
}

.trust {
  display: flex;
  gap: 22px;
  margin-top: 48px;
  font-size: 12px;
  color: #647067;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  height: 100%;
  min-height: 680px;
}

.floating {
  position: absolute;
  right: 40px;
  bottom: 40px;
  background: #f9f7f2;
  padding: 18px 22px;
  font-family: "Playfair Display", serif;
  font-size: 16px;
}

.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 95px 24px 45px;
}

.intro h1,
.intro h2,
.split h2,
.about h2,
.inquiry h2 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1.15;
  margin: 8px 0 16px;
  font-weight: 500;
}

.intro > p:last-child,
.intro-content,
.intro-content p {
  color: #69736c;
}

.page-content {
  text-align: left;
  color: #69736c;
}

.page-main .btn {
  margin-top: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 6vw 100px;
}

.cards article {
  background: #fff;
  border: 1px solid #e2ddd3;
}

.cards img {
  height: 270px;
}

.cards article > div {
  padding: 28px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #997347;
  font-weight: 600;
}

.cards h3 {
  font-family: "Playfair Display", serif;
  font-size: 27px;
  margin: 4px 0;
}

.cards p {
  color: #69736c;
}

.cards a,
.card-more {
  font-weight: 600;
  font-size: 14px;
}

.card-lead {
  margin: 8px 0 14px;
  overflow: hidden;
  max-height: 8em;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-more {
  padding: 0;
  border: 0;
  background: none;
  color: #254a37;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.card-more:hover,
.card-more:focus,
.card-inquire:hover {
  color: #997347;
}

.card-inquire {
  margin-left: auto;
  color: #254a37;
  white-space: nowrap;
}

.card-extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.card-extra-inner {
  overflow: hidden;
  min-height: 0;
}

.cards article.is-open .card-lead {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.cards article.is-open .card-extra {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .card-lead,
  .card-extra {
    transition: none;
  }
}

.card-full {
  color: #69736c;
}

.card-full p:first-child {
  margin-top: 0;
}

.card-price {
  margin-top: 18px;
  margin-bottom: 0;
  color: #997347 !important;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eae3d8;
  min-height: 690px;
}

.split-image img {
  height: 100%;
}

.split-copy {
  padding: 90px 9vw;
}

.feature {
  display: flex;
  gap: 22px;
  border-top: 1px solid #cfc5b6;
  padding: 20px 0;
}

.feature b {
  color: #997347;
}

.feature span {
  display: flex;
  flex-direction: column;
}

.feature small {
  color: #69736c;
  margin-top: 4px;
}

.split-copy .btn {
  margin-top: 20px;
}

.gallery-section {
  background: #f9f7f2;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 10px;
  padding: 0 3vw 90px;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.about {
  background: #254a37;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 80px 10vw;
  align-items: center;
}

.about p {
  font-size: 18px;
  color: #d9e0da;
}

.process {
  padding-bottom: 100px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d9d4c9;
  margin: 0 7vw;
}

.steps > div {
  background: #f9f7f2;
  padding: 40px;
}

.steps b {
  font-family: "Playfair Display", serif;
  color: #997347;
  font-size: 34px;
}

.steps h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.steps p {
  color: #69736c;
}

.inquiry {
  display: grid;
  grid-template-columns: 42% 58%;
  background: #eee7dc;
}

.inquiry > div {
  padding: 75px 6vw;
}

.inquiry > div img {
  height: 270px;
  margin-top: 35px;
}

.inquiry form {
  position: relative;
  background: #fff;
  margin: 50px 6vw 50px 0;
  padding: 40px;
  box-shadow: 0 14px 45px rgba(25, 40, 30, 0.08);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-status {
  margin: 12px 0 0;
  font-size: 14px;
}

.inquiry-status.is-success {
  color: #254a37;
}

.inquiry-status.is-error {
  color: #9a3b2f;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 17px;
}

input,
select,
textarea {
  margin-top: 7px;
  padding: 13px;
  border: 1px solid #cfcfc7;
  background: #fcfbf8;
  font: inherit;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.inquiry form .btn {
  width: 100%;
}

.privacy {
  display: block;
  text-align: center;
  color: #7b817d;
  margin-top: 12px;
}

footer {
  background: #172c20;
  color: white;
  padding: 55px 6vw 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid #3b4c41;
}

footer > .footer-widget:not(.footer-copyright) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

footer > .footer-widget b {
  margin-bottom: 5px;
}

footer .footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .textwidget p {
  margin: 0;
}

footer > .footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #3b4c41;
  padding-top: 22px;
  color: #aeb8b1;
  font-size: 12px;
}

footer > .footer-copyright p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header nav,
  .site-header > .btn {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .site-header.open nav {
    display: flex;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #f9f7f2;
    flex-direction: column;
    padding: 25px 6vw;
    border-bottom: 1px solid #ddd;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 80px 7vw;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-image img {
    min-height: 480px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards img {
    height: 360px;
  }

  .split,
  .inquiry,
  .about {
    grid-template-columns: 1fr;
  }

  .split-image img {
    height: 500px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 230px;
  }

  .gallery img:first-child {
    grid-row: auto;
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .inquiry form {
    margin: 0 6vw 60px;
  }

  .inquiry > div {
    padding-bottom: 30px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 74px;
  }

  .site-header.open nav {
    top: 74px;
  }

  .hero-copy {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-actions,
  .trust {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-image img {
    min-height: 380px;
  }

  .intro h1,
  .intro h2,
  .split h2,
  .about h2,
  .inquiry h2 {
    font-size: 35px;
  }

  .cards {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cards img {
    height: 250px;
  }

  .split-copy {
    padding: 65px 25px;
  }

  .split-image img {
    height: 360px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    padding: 0 14px 60px;
  }

  .gallery img:first-child {
    grid-column: auto;
  }

  .about {
    padding: 60px 25px;
    gap: 20px;
  }

  .steps {
    margin: 0 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inquiry form {
    margin: 0 18px 40px;
    padding: 25px;
  }

  .inquiry > div {
    padding: 60px 25px 25px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .floating {
    right: 15px;
    bottom: 15px;
  }
}
