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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.homepage {
  --logo-size: clamp(11rem, 28vw, 15rem);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr 1fr;
  min-height: 100dvh;
  position: relative;
  font-family: "Outfit", system-ui, sans-serif;
  color: #2a2a2a;
}
@media (min-width: 881px) {
  .homepage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

.logo {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem 1rem;
  background: #fff;
  box-shadow: 0 0.25rem 2rem rgba(0, 0, 0, 0.06);
}
.logo img {
  width: min(220px, 72vw);
  height: auto;
}
@media (min-width: 881px) {
  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: clamp(1.75rem, 2.5vw, 2.5rem);
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(188, 142, 50, 0.18), 0 1rem 3rem rgba(0, 0, 0, 0.12);
  }
  .logo img {
    width: 78%;
  }
}

.panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(50dvh, 28rem);
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
  overflow: hidden;
  isolation: isolate;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
@media (min-width: 881px) {
  .panel {
    min-height: 100dvh;
    padding: clamp(3rem, 6vw, 5rem);
  }
}

.panel__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 22rem);
  text-align: center;
}
@media (min-width: 881px) {
  .vaftisi .panel__inner {
    margin-right: calc(var(--logo-size) * 0.35);
    text-align: right;
  }
  .gamos .panel__inner {
    margin-left: calc(var(--logo-size) * 0.35);
    text-align: left;
  }
}

.panel__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #58595b;
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
}
.panel__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.85rem auto 0;
  background: #bc8e32;
}
@media (min-width: 881px) {
  .vaftisi .panel__title::after {
    margin-left: auto;
    margin-right: 0;
  }
  .gamos .panel__title::after {
    margin-left: 0;
    margin-right: auto;
  }
}

.vaftisi::before {
  background-image: url("images/vaftisi-bg.jpg");
}
.vaftisi::after {
  background: linear-gradient(165deg, rgba(247, 243, 235, 0.92) 0%, rgba(247, 243, 235, 0.78) 45%, rgba(188, 142, 50, 0.22) 100%);
}
@media (min-width: 881px) {
  .vaftisi {
    border-right: 1px solid rgba(188, 142, 50, 0.25);
  }
}

.gamos::before {
  background-image: url("images/gamos-bg.jpg");
}
.gamos::after {
  background: linear-gradient(195deg, rgba(88, 89, 91, 0.08) 0%, rgba(247, 243, 235, 0.85) 50%, rgba(42, 42, 42, 0.12) 100%);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-details__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}
@media (min-width: 881px) {
  .vaftisi .contact-details__item {
    justify-content: flex-end;
  }
  .gamos .contact-details__item {
    justify-content: flex-start;
  }
}

.contact-details__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bc8e32;
}

.contact-details__link {
  transition: color 0.2s ease;
}
.contact-details__link:hover, .contact-details__link:focus-visible {
  color: #bc8e32;
  outline: none;
}

.panel__website {
  display: inline-block;
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #58595b;
  border: 1px solid rgba(188, 142, 50, 0.45);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.panel__website:hover, .panel__website:focus-visible {
  color: #fff;
  background-color: #bc8e32;
  border-color: #bc8e32;
  outline: none;
}
@media (min-width: 881px) {
  .gamos .panel__website {
    margin-left: 0;
  }
}

@media (min-width: 881px) {
  .homepage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 1px;
    height: min(70%, 32rem);
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, transparent, rgba(188, 142, 50, 0.55) 20%, rgba(188, 142, 50, 0.55) 80%, transparent);
    pointer-events: none;
  }
}
