
/*
Theme Name: Yaffo Child
Theme URI: https://nebotheme.com/yaffo/
Author: NeboTheme
Author URI: https://themeforest.net/user/nebotheme/
Description: A child theme of Yaffo Theme
Template: yaffo
Version: 1.0.0
License:
License URI:
Text Domain: yaffo-child
*/



/* ===== HOMEPAGE FULL-WIDTH OVERRIDES ===== */
body.home #main.main,
body.home .site-content-sidebar,
body.home .nebotheme-var-blocks,
body.home .nebotheme-var-block,
body.home .grid-container,
body.home .site-content,
body.home .main.hdh-homepage {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
  float: none !important;
  flex: none !important;
}
body.home .site-content-sidebar .sidebar,
body.home .site-content-sidebar > aside {
  display: none !important;
}

/* ===== HOMEPAGE STYLES =====
/* ================================================================
   HOME DECO HARMONY — Homepage Styles
   Warm editorial aesthetic: terracotta / cream / warm taupe
   Font pairing: Playfair Display (display) + DM Sans (body)
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=DM+Sans:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --hdh-clay:     #c17c5a;
  --hdh-clay-dk:  #a05e3c;
  --hdh-cream:    #faf6f0;
  --hdh-warm:     #f2ebe0;
  --hdh-taupe:    #8b7355;
  --hdh-taupe-lt: #c4b49a;
  --hdh-dark:     #1e1a16;
  --hdh-mid:      #4a3f35;
  --hdh-white:    #ffffff;
  --hdh-font-display: 'Playfair Display', Georgia, serif;
  --hdh-font-body:    'DM Sans', sans-serif;
  --hdh-font-elegant: 'Cormorant Garamond', Georgia, serif;
  --hdh-radius:   12px;
  --hdh-radius-lg:20px;
  --hdh-shadow:   0 4px 24px rgba(30,26,22,.10);
  --hdh-shadow-lg:0 12px 48px rgba(30,26,22,.15);
  --hdh-max:      1200px;
  --hdh-transition: .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset for homepage ────────────────────────────────────── */
.hdh-homepage { font-family: var(--hdh-font-body); color: var(--hdh-dark); }
.hdh-homepage * { box-sizing: border-box; }
.hdh-container { max-width: var(--hdh-max); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ───────────────────────────────────────────────── */
.hdh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; border-radius: 100px; font-family: var(--hdh-font-body);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all var(--hdh-transition); cursor: pointer; border: 2px solid transparent;
}
.hdh-btn--primary  { background: var(--hdh-clay); color: #fff; border-color: var(--hdh-clay); }
.hdh-btn--primary:hover { background: var(--hdh-clay-dk); border-color: var(--hdh-clay-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(193,124,90,.35); }
.hdh-btn--ghost    { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.hdh-btn--ghost:hover { background: rgba(255,255,255,.25); border-color: #fff; transform: translateY(-2px); }
.hdh-btn--outline  { background: transparent; color: var(--hdh-clay); border-color: var(--hdh-clay); }
.hdh-btn--outline:hover { background: var(--hdh-clay); color: #fff; transform: translateY(-2px); }
.hdh-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ── Section base ──────────────────────────────────────────── */
.hdh-section { padding: 80px 0; }
.hdh-section__header { text-align: center; margin-bottom: 48px; }
.hdh-section__title { font-family: var(--hdh-font-display); font-size: clamp(28px,4vw,42px); color: var(--hdh-dark); margin: 0 0 12px; font-weight: 700; }
.hdh-section__sub { font-size: 17px; color: var(--hdh-taupe); margin: 0; font-weight: 300; }
.hdh-section__cta { text-align: center; margin-top: 48px; }

/* ────────────────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────────────── */
.hdh-hero {
  position: relative; min-height: 90vh; display: flex;
  align-items: center; overflow: hidden;
}
.hdh-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hdh-hero__grid {
  display: grid; width: 100%; height: 100%;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.hdh-hero__tile {
  background-size: cover; background-position: center;
  transition: transform 8s ease; transform: scale(1.08);
}
.hdh-hero__tile:hover { transform: scale(1); }
.hdh-hero__tile--0 { grid-area: 1/1/2/2; }
.hdh-hero__tile--1 { grid-area: 1/2/2/3; }
.hdh-hero__tile--2 { grid-area: 2/1/3/2; }
.hdh-hero__tile--3 { grid-area: 2/2/3/3; }
.hdh-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,26,22,.78) 0%, rgba(30,26,22,.5) 50%, rgba(30,26,22,.65) 100%);
}
.hdh-hero__content {
  position: relative; z-index: 1; max-width: 720px;
  padding: 60px 48px; margin: 0 auto; text-align: center;
  animation: hdh-fade-up .9s ease both;
}
.hdh-hero__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hdh-taupe-lt); margin-bottom: 20px;
}
.hdh-hero__title {
  font-family: var(--hdh-font-display); font-size: clamp(40px,7vw,74px);
  line-height: 1.08; color: #fff; margin: 0 0 24px; font-weight: 700;
}
.hdh-hero__title em { color: var(--hdh-clay); font-style: italic; }
.hdh-hero__sub {
  font-size: clamp(16px,2vw,19px); color: rgba(255,255,255,.82); line-height: 1.65;
  margin: 0 0 36px; font-weight: 300;
}
.hdh-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ────────────────────────────────────────────────────────────
   MARQUEE
──────────────────────────────────────────────────────────── */
.hdh-marquee {
  background: var(--hdh-clay); overflow: hidden;
  padding: 14px 0; white-space: nowrap;
}
.hdh-marquee__track {
  display: inline-block;
  animation: hdh-marquee 28s linear infinite;
}
.hdh-marquee__track span {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9);
  padding: 0 18px; font-family: var(--hdh-font-body);
}
.hdh-marquee__dot { color: rgba(255,255,255,.4) !important; padding: 0 4px !important; }

/* ────────────────────────────────────────────────────────────
   CATEGORIES
──────────────────────────────────────────────────────────── */
.hdh-categories { background: var(--hdh-cream); }
.hdh-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.hdh-cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 24px 22px; background: var(--hdh-white); border-radius: var(--hdh-radius-lg);
  text-decoration: none; border: 1.5px solid transparent;
  transition: all var(--hdh-transition); box-shadow: var(--hdh-shadow);
  position: relative; overflow: hidden;
}
.hdh-cat-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(193,124,90,.06), transparent);
  opacity: 0; transition: opacity var(--hdh-transition);
}
.hdh-cat-card:hover { border-color: var(--hdh-clay); transform: translateY(-4px); box-shadow: var(--hdh-shadow-lg); }
.hdh-cat-card:hover::before { opacity: 1; }
.hdh-cat-card__icon { font-size: 28px; margin-bottom: 4px; }
.hdh-cat-card__label { font-size: 16px; font-weight: 600; color: var(--hdh-dark); font-family: var(--hdh-font-body); }
.hdh-cat-card__desc { font-size: 13px; color: var(--hdh-taupe); line-height: 1.4; flex: 1; }
.hdh-cat-card__arrow { font-size: 18px; color: var(--hdh-clay); margin-top: 8px; transition: transform var(--hdh-transition); }
.hdh-cat-card:hover .hdh-cat-card__arrow { transform: translateX(4px); }

/* ────────────────────────────────────────────────────────────
   POSTS GRID
──────────────────────────────────────────────────────────── */
.hdh-featured { background: var(--hdh-warm); }
.hdh-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.hdh-post-card--hero {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}
.hdh-post-card {
  background: var(--hdh-white); border-radius: var(--hdh-radius-lg);
  overflow: hidden; box-shadow: var(--hdh-shadow);
  transition: transform var(--hdh-transition), box-shadow var(--hdh-transition);
  display: flex; flex-direction: column;
}
.hdh-post-card:hover { transform: translateY(-5px); box-shadow: var(--hdh-shadow-lg); }

.hdh-post-card__img-wrap {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 16/9; text-decoration: none;
}
.hdh-post-card--hero .hdh-post-card__img-wrap { aspect-ratio: 16/7; }
.hdh-post-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease; display: block;
}
.hdh-post-card:hover .hdh-post-card__img-wrap img { transform: scale(1.05); }
.hdh-post-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--hdh-clay); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
  font-family: var(--hdh-font-body);
}
.hdh-post-card__body {
  padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px;
}
.hdh-post-card__title {
  font-family: var(--hdh-font-display); font-size: 18px; line-height: 1.35;
  margin: 0; font-weight: 600;
}
.hdh-post-card--hero .hdh-post-card__title { font-size: 24px; }
.hdh-post-card__title a { color: var(--hdh-dark); text-decoration: none; }
.hdh-post-card__title a:hover { color: var(--hdh-clay); }
.hdh-post-card__excerpt { font-size: 15px; color: var(--hdh-taupe); line-height: 1.6; margin: 0; font-weight: 300; }
.hdh-post-card__read { font-size: 14px; font-weight: 600; color: var(--hdh-clay); text-decoration: none; margin-top: auto; }
.hdh-post-card__read:hover { text-decoration: underline; }

/* ────────────────────────────────────────────────────────────
   TOOLS
──────────────────────────────────────────────────────────── */
.hdh-tools {
  background: var(--hdh-dark); padding: 64px 0;
}
.hdh-tools__title {
  font-family: var(--hdh-font-elegant); font-size: clamp(28px,3.5vw,42px); font-weight: 300; letter-spacing: .02em;
  color: #fff; text-align: center; margin: 0 0 36px; font-weight: 700;
}
.hdh-tools__grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px;
}
.hdh-tool-card {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 26px; background: rgba(255,255,255,.06); border-radius: var(--hdh-radius-lg);
  border: 1.5px solid rgba(255,255,255,.1); text-decoration: none;
  transition: all var(--hdh-transition);
}
.hdh-tool-card:hover { background: rgba(193,124,90,.15); border-color: var(--hdh-clay); transform: translateY(-3px); }
.hdh-tool-card__icon { font-size: 32px; flex-shrink: 0; }
.hdh-tool-card div { flex: 1; }
.hdh-tool-card strong { display: block; color: #fff; font-size: 18px; font-weight: 400; margin-bottom: 4px; font-family: var(--hdh-font-elegant); letter-spacing: .01em; }
.hdh-tool-card span { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.4; }
.hdh-tool-card__cta { color: var(--hdh-clay); font-size: 14px; font-weight: 600; white-space: nowrap; font-family: var(--hdh-font-body); }

/* ────────────────────────────────────────────────────────────
   AUTHOR
──────────────────────────────────────────────────────────── */
.hdh-author { background: var(--hdh-cream); padding: 80px 0; }
.hdh-author__inner {
  display: flex; align-items: center; gap: 56px;
  max-width: 900px; margin: 0 auto;
  background: var(--hdh-white); border-radius: var(--hdh-radius-lg);
  padding: 52px 56px; box-shadow: var(--hdh-shadow-lg);
  border: 1.5px solid rgba(193,124,90,.12);
}
.hdh-author__img-wrap { flex-shrink: 0; }
.hdh-author__img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--hdh-clay); box-shadow: 0 8px 32px rgba(193,124,90,.25);
}
.hdh-author__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hdh-clay); display: block; margin-bottom: 8px; }
.hdh-author__name { font-family: var(--hdh-font-elegant); font-size: 38px; font-weight: 300; letter-spacing: .03em; color: var(--hdh-dark); margin: 0 0 14px; }
.hdh-author__bio { font-size: 16px; line-height: 1.7; color: var(--hdh-taupe); margin: 0 0 24px; font-weight: 300; }

/* ────────────────────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────────────────────── */
@keyframes hdh-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hdh-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hdh-posts-grid { grid-template-columns: 1fr 1fr; }
  .hdh-post-card--hero { grid-column: 1 / 3; }
  .hdh-hero__content { padding: 40px 24px; }
  .hdh-author__inner { flex-direction: column; text-align: center; gap: 32px; padding: 40px 32px; }
  .hdh-author__img { width: 120px; height: 120px; }
}
@media (max-width: 600px) {
  .hdh-posts-grid { grid-template-columns: 1fr; }
  .hdh-post-card--hero { grid-column: 1; }
  .hdh-cat-grid { grid-template-columns: 1fr 1fr; }
  .hdh-hero { min-height: 100svh; }
  .hdh-hero__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .hdh-section { padding: 56px 0; }
  .hdh-tools { padding: 48px 0; }
}
