/*
Theme Name: Altech Warm Minimal Child
Template: altech-warm-minimal
Version: 1.0.0
Description: Child theme for Altech Warm Minimal with custom logo support.
Text Domain: altech-warm-minimal-child
*/

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 52px;
  width: auto;
}

body.home .site-main,
body.front-page .site-main {
  position: relative;
  isolation: isolate;
}

body.home .site-main::before,
body.front-page .site-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 20%, rgba(111, 115, 82, 0.24), rgba(111, 115, 82, 0) 42%),
    radial-gradient(circle at 84% 12%, rgba(43, 30, 22, 0.12), rgba(43, 30, 22, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(
      135deg,
      rgba(111, 115, 82, 0.06) 0 2px,
      rgba(255, 255, 255, 0) 2px 16px
    );
  border-radius: 24px;
}

.hero-rich {
  position: relative;
  border: 1px solid #d9d0c2;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(111, 115, 82, 0.09));
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero-rich::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 115, 82, 0.22), rgba(111, 115, 82, 0));
}

.hero-rich__eyebrow {
  display: inline-block;
  border: 1px solid rgba(43, 30, 22, 0.15);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-rich h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.4rem;
}

.hero-rich p {
  font-size: 1.12rem;
}

.hero-rich__actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  color: #2b1e16;
  border-color: rgba(43, 30, 22, 0.28);
}

.btn-ghost:hover {
  color: #fff;
  border-color: #59603f;
  background: #59603f;
}

.hero-rich__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-rich__metrics article {
  border: 1px solid rgba(43, 30, 22, 0.13);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.45);
}

.hero-rich__metrics strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.hero-rich__metrics span {
  display: block;
  font-size: 0.9rem;
}

.home-split {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.home-note {
  border: 1px solid #d9d0c2;
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.45);
  align-self: stretch;
}

.home-note h3 {
  margin-bottom: 0.5rem;
}

.home-products {
  margin-top: 1.6rem;
}

.home-products__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background: rgba(255, 255, 255, 0.55);
  border-color: #6f7352;
  color: #2b1e16;
}

@media (max-width: 900px) {
  .home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero-rich__metrics {
    grid-template-columns: 1fr;
  }
}
