/*
Theme Name: Irfomous (Astra Child)
Theme URI: https://irfomous.co.id/
Description: Child theme tampilan mirip mertani.co.id — header/footer/beranda. Tidak menghapus halaman produk.
Author: Irfomous
Template: astra
Version: 1.0.0
Text Domain: astra-irfomous
*/

:root {
  --irfo-orange: #ff6b35;
  --irfo-orange-dark: #e85d04;
  --irfo-ink: #222222;
  --irfo-muted: #5c5c5c;
  --irfo-line: #ececec;
  --irfo-footer: #1b1b1b;
  --irfo-max: 1180px;
}

/* ---- Header (Mertani-like: white bar, logo left, nav right) ---- */
.site-header,
#masthead,
.ast-primary-header-bar,
.ast-main-header-wrap {
  background: #fff !important;
  box-shadow: 0 1px 0 var(--irfo-line);
}

.ast-primary-header-bar {
  min-height: 78px;
}

header .custom-logo-link img {
  max-width: 48px !important;
  width: 48px !important;
  height: auto !important;
}

.site-title {
  display: block !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase !important;
  margin: 0;
}

.site-title a,
.site-title a:hover {
  color: var(--irfo-ink) !important;
  text-decoration: none !important;
}

.ast-builder-menu-1 .menu-item > .menu-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--irfo-ink) !important;
  padding: 10px 14px !important;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link:hover {
  color: var(--irfo-orange) !important;
}

.ast-header-button-1 .ast-custom-button {
  border-color: var(--irfo-orange) !important;
  color: var(--irfo-orange) !important;
  background: transparent !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
}

.ast-header-button-1 .ast-custom-button:hover {
  background: var(--irfo-orange) !important;
  color: #fff !important;
  border-color: var(--irfo-orange) !important;
}

/* ---- Home: full-bleed, no Astra page title / extra margin ---- */
.home.page .entry-header,
.home .ast-single-entry-banner,
.home .page-header {
  display: none !important;
}

.home #content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home .site-content,
.home #primary,
.home.ast-plain-container.ast-no-sidebar #primary {
  margin: 0 !important;
  padding: 0 !important;
}

.irfo-home {
  overflow: hidden;
  color: var(--irfo-ink);
  font-family: "Lato", "Montserrat", sans-serif;
}

.irfo-home img {
  max-width: 100%;
  height: auto;
}

.irfo-wrap {
  width: min(var(--irfo-max), calc(100% - 40px));
  margin: 0 auto;
}

/* Hero slider — kotak 16:9, cocok foto 1920×1080 */
.irfo-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 220px;
  background: #111;
}

.irfo-hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: #111;
}

.irfo-hero .slide.is-active {
  opacity: 1;
  z-index: 1;
}

.irfo-hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.irfo-hero .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.irfo-hero-nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.irfo-hero-nav .irfo-prev,
.irfo-hero-nav .irfo-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.irfo-hero-nav .irfo-prev {
  left: 16px;
}

.irfo-hero-nav .irfo-next {
  right: 16px;
}

.irfo-hero-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.irfo-hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.irfo-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.irfo-hero-dots button.is-active {
  background: #fff;
}

.irfo-hero-caption {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 18%;
  color: #fff;
  max-width: 520px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.irfo-hero-caption h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  color: #fff !important;
  text-transform: none !important;
}

.irfo-hero-caption p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Intro */
.irfo-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.irfo-hex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: rotate(-2deg);
}

.irfo-hex figure {
  margin: 0;
  aspect-ratio: 1;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  overflow: hidden;
  background: #ddd;
}

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

.irfo-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  text-transform: none !important;
  color: var(--irfo-ink) !important;
}

.irfo-intro p {
  color: var(--irfo-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.irfo-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 28px;
}

.irfo-pillars div strong {
  display: block;
  font-size: 28px;
  color: var(--irfo-orange);
  line-height: 1;
  margin-bottom: 6px;
}

.irfo-pillars div span {
  font-size: 14px;
  color: var(--irfo-muted);
}

/* News / activity */
.irfo-section {
  padding: 24px 0 64px;
}

.irfo-section h2 {
  font-size: clamp(26px, 3vw, 36px);
  text-transform: none !important;
  margin: 0 0 8px;
}

.irfo-kicker {
  color: var(--irfo-orange);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}

.irfo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.irfo-card {
  background: #fff;
  border: 1px solid var(--irfo-line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.irfo-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.irfo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.irfo-card .body {
  padding: 18px 18px 22px;
}

.irfo-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-transform: none !important;
}

.irfo-card p {
  margin: 0;
  color: var(--irfo-muted);
  font-size: 14px;
  line-height: 1.55;
}

.irfo-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--irfo-orange) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Products */
.irfo-products {
  background: #f7f7f7;
  padding: 64px 0;
}

.irfo-products .irfo-cards {
  grid-template-columns: repeat(4, 1fr);
}

.irfo-card.product img {
  height: 150px;
}

.irfo-card.product .tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--irfo-orange);
  font-weight: 700;
}

/* CTA */
.irfo-cta {
  background: linear-gradient(120deg, #1c1b1b, #3a241c);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.irfo-cta h2 {
  color: #fff !important;
  text-transform: none !important;
  margin: 0 0 10px;
}

.irfo-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.8);
}

.irfo-btn {
  display: inline-block;
  background: var(--irfo-orange);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.irfo-btn:hover {
  background: var(--irfo-orange-dark);
}

/* Custom footer */
.irfo-footer {
  background: var(--irfo-footer);
  color: #d8d8d8;
  padding: 48px 0 24px;
}

.irfo-footer a {
  color: #fff !important;
  text-decoration: none !important;
}

.irfo-footer a:hover {
  color: var(--irfo-orange) !important;
}

.irfo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333;
}

.irfo-footer h3 {
  color: #fff !important;
  font-size: 15px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
  margin: 0 0 14px;
}

.irfo-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.irfo-footer li {
  margin: 0 0 8px;
  font-size: 14px;
}

.irfo-footer .brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 20px;
  color: #fff;
  margin: 0 0 10px;
}

.irfo-copy {
  padding-top: 18px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.site-footer {
  display: none !important;
}

@media (max-width: 921px) {
  .irfo-intro,
  .irfo-cards,
  .irfo-products .irfo-cards,
  .irfo-footer-grid,
  .irfo-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .irfo-hero {
    height: 52vh;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .irfo-intro,
  .irfo-cards,
  .irfo-products .irfo-cards,
  .irfo-footer-grid,
  .irfo-pillars {
    grid-template-columns: 1fr;
  }

  .irfo-hero-caption {
    left: 20px;
    right: 20px;
    bottom: 48px;
  }
}
