/*
Theme Name: Kaoconka
Description: Portada de cuadros y carcasas personalizadas para Kaoconka.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: kaoconka
*/

@font-face {
  font-family: "Kaoconka Condensed";
  src: url("assets/open-sans-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

.kao-site {
  --kao-heading: "Kaoconka Condensed", Impact, "Arial Narrow", sans-serif;
  --kao-cream: #f6efe6;
  --kao-ink: #191715;
  --kao-lime: #d7fa50;
  --kao-gutter: clamp(18px, 4vw, 66px);
  background: var(--kao-cream);
  color: var(--kao-ink);
  font-family: system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.kao-site :is(h1, h2, .kao-brand-name, .kao-menu, .wp-block-button__link) {
  font-family: var(--kao-heading);
  font-weight: 700;
}

.kao-site a:focus-visible {
  outline: 3px solid #78512d;
  outline-offset: 4px;
}

.kao-site :is(h1, h2, p, figure) { margin: 0; }

.kao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 10px var(--kao-gutter);
  min-height: 70px;
  box-sizing: border-box;
}

.kao-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kao-logo {
  flex: 0 0 auto;
  width: 112px;
  height: 61px;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.kao-logo img {
  display: block;
  width: 126px;
  max-width: none;
  margin-top: -32px;
  margin-left: -7px;
}

.kao-brand-name {
  padding-left: 16px;
  border-left: 1px solid currentColor;
  font-size: 1.35rem;
  line-height: 1.2;
}

.kao-menu {
  font-size: 1.15rem;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 3vw, 42px);
}

.kao-menu a { color: inherit; text-decoration: none; }
.kao-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }

.kao-hero {
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
}

.kao-hero-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 80px) 14px clamp(32px, 5vw, 80px) var(--kao-gutter);
}

.kao-site h1 {
  font-size: clamp(3.5rem, 7.7vw, 8rem);
  line-height: .88;
  letter-spacing: -.042em;
}

.kao-hero-copy p {
  margin-top: 19px;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.kao-hero-copy .wp-block-buttons { margin-top: 23px; }
.kao-site .wp-block-button__link {
  display: inline-block;
  background: var(--kao-lime);
  color: var(--kao-ink);
  font-size: 1.3rem;
  border-radius: 3px;
  padding: .65em 1.18em;
  text-decoration: none;
}
.kao-site .wp-block-button__link:hover { background: #c5e83d; }

.kao-hero-image { height: 100%; min-height: 390px; }
.kao-hero-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.kao-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px var(--kao-gutter) 0;
}

.kao-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 190px;
  overflow: hidden;
  background: #e8d9c8;
  border-radius: 5px;
}

.kao-site .kao-card h2 {
  align-self: center;
  padding: 18px 6px 18px clamp(12px, 2.5vw, 30px);
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: .97;
}

.kao-card-image { position: relative; min-height: 190px; overflow: hidden; }
.kao-card-image img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
}
.kao-case img { object-position: 73% center; }

.kao-video, .kao-contact {
  padding: clamp(24px, 4vw, 50px) var(--kao-gutter);
}
.kao-video { max-width: 850px; }
.kao-video p, .kao-contact p { margin-top: 8px; }
.kao-video figure { margin-top: 14px; }
.kao-video video { width: 100%; height: auto; border-radius: 5px; }
.kao-site :is(.kao-video, .kao-contact) h2 {
  line-height: 1;
  font-size: clamp(1.85rem, 4vw, 3rem);
}
.kao-contact { border-top: 1px solid #d4c8bb; }
.kao-general { max-width: 780px; margin: 2rem auto; padding: 0 1.2rem; }

@media (max-width: 720px) {
  .kao-header { flex-wrap: wrap; gap: 4px 22px; padding-block: 8px 14px; }
  .kao-hero { grid-template-columns: minmax(0, 1fr); }
  .kao-hero-copy { padding: 28px var(--kao-gutter) 30px; }
  .kao-site h1 { font-size: clamp(3.4rem, 12.6vw, 5.8rem); }
  .kao-hero-image { height: auto; min-height: 0; }
  .kao-hero-image img { aspect-ratio: 16 / 10; height: auto; }
  .kao-products { grid-template-columns: minmax(0, 1fr); }
  .kao-card, .kao-card-image { min-height: 140px; }
}
