/*
Theme Name: Havlora Child V2
Theme URI: https://havlora.com
Description: Premium Kadence child theme for Havlora homepage and global custom footer.
Author: OpenAI
Author URI: https://openai.com
Template: kadence
Version: 2.0.0
Text Domain: havlora-child-v2
*/

:root {
  --havlora-bg: #f6f1ea;
  --havlora-surface: #ffffff;
  --havlora-surface-soft: #e8dccd;
  --havlora-text: #20160f;
  --havlora-muted: #6c5b4c;
  --havlora-border: #e6d8c7;
  --havlora-accent: #5a3d25;
  --havlora-accent-2: #a9631f;
  --havlora-dark: #130d08;
}

/* base */
body {
  background: var(--havlora-bg);
  color: var(--havlora-text);
}

.havlora-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* use custom footer only */
#colophon.site-footer {
  display: none !important;
}

/* front page hero */
.home .entry-hero {
  display: none !important;
}

.havlora-homepage {
  background: var(--havlora-bg);
}

.havlora-homepage h1,
.havlora-homepage h2,
.havlora-homepage h3 {
  color: var(--havlora-text);
  letter-spacing: -0.03em;
}

.havlora-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.havlora-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 14, 0.36);
}

.havlora-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.havlora-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.havlora-hero h1 {
  margin: 0 auto 18px;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 1.02;
  color: #fff;
}

.havlora-hero p {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.havlora-button,
.havlora-homepage .button,
.havlora-homepage .wp-block-button__link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--havlora-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--havlora-accent);
  transition: all .2s ease;
}

.havlora-button:hover,
.havlora-homepage .button:hover,
.havlora-homepage .wp-block-button__link:hover {
  background: #412b19;
  border-color: #412b19;
  color: #fff !important;
}

.havlora-section {
  padding: 88px 0;
}

.havlora-section--compact {
  padding-top: 40px;
}

.havlora-section__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
}

.havlora-section__intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: var(--havlora-muted);
}

/* room cards */
.room-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.room-card {
  background: var(--havlora-surface);
  border: 1px solid var(--havlora-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(28, 20, 14, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 20, 14, 0.08);
}

.room-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--havlora-surface-soft);
  overflow: hidden;
}

.room-card__media img,
.room-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.room-card__media img {
  object-fit: cover;
}

.room-card__placeholder {
  background: linear-gradient(180deg, #e7dccf 0%, #d8cab8 100%);
}

.room-card__body {
  padding: 24px 22px 26px;
  text-align: center;
}

.room-card__body h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
}

.room-card__button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #d7c4ad;
  border-radius: 999px;
  color: var(--havlora-accent);
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.room-card__button:hover {
  background: var(--havlora-accent);
  color: #fff;
  border-color: var(--havlora-accent);
}

/* featured products */
.havlora-featured ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.havlora-featured ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--havlora-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(28, 20, 14, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.havlora-featured ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(28, 20, 14, 0.08);
}

.havlora-featured ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.havlora-featured ul.products li.product .woocommerce-loop-product__title {
  padding: 18px 18px 6px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--havlora-text);
}

.havlora-featured ul.products li.product .price {
  padding: 0 18px 22px;
  font-weight: 700;
  color: var(--havlora-text);
}

.havlora-featured .onsale,
.woocommerce .onsale {
  background: var(--havlora-accent-2) !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* story */
.havlora-story {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.havlora-story__media {
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: var(--havlora-surface-soft);
}

.havlora-story__media img,
.havlora-story__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.havlora-story__media img {
  object-fit: cover;
}

.havlora-story__placeholder {
  background: linear-gradient(135deg, #e7dccf 0%, #d2c2af 100%);
}

.havlora-story__content h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.havlora-story__content p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--havlora-muted);
}

/* benefits */
.havlora-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 30px auto 0;
}

.havlora-benefit {
  background: #fff;
  border: 1px solid var(--havlora-border);
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(28, 20, 14, 0.05);
}

.havlora-benefit h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.havlora-benefit p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--havlora-muted);
}

/* custom footer */
.havlora-footer {
  background: var(--havlora-dark);
  color: #f1e8dd;
  padding: 72px 0 24px;
}

.havlora-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 42px;
}

.havlora-footer h3,
.havlora-footer h4 {
  margin: 0 0 18px;
  color: #fff;
}

.havlora-footer h3 {
  font-size: 42px;
  letter-spacing: -0.03em;
}

.havlora-footer h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: .92;
}

.havlora-footer p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(241,232,221,.78);
}

.havlora-footer a {
  display: block;
  margin: 0 0 12px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
}

.havlora-footer a:hover {
  color: #fff;
}

.havlora-footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  color: rgba(255,255,255,.7);
}

/* general page polish */
.site-branding .site-title,
.site-branding .site-title a {
  font-size: 32px;
  font-weight: 700;
  color: var(--havlora-text);
}

.main-navigation a {
  font-size: 15px;
}

/* responsive */
@media (max-width: 1200px) {
  .room-categories,
  .havlora-featured ul.products,
  .havlora-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .havlora-story {
    grid-template-columns: 1fr;
  }

  .havlora-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .havlora-shell {
    width: min(1280px, calc(100% - 28px));
  }

  .havlora-hero {
    min-height: 62vh;
    padding: 60px 16px;
  }

  .havlora-section {
    padding: 64px 0;
  }

  .room-categories,
  .havlora-featured ul.products,
  .havlora-benefits,
  .havlora-footer__grid {
    grid-template-columns: 1fr;
  }

  .havlora-footer {
    padding: 54px 0 22px;
  }

  .havlora-footer h3 {
    font-size: 34px;
  }
}
