/*
Theme Name: HouseCare Notes
Theme URI: https://example.com/
Author: Ehyperlink
Description: Cozy Habitat — warm lifestyle home-improvement editorial theme for HouseCare Notes.
Version: 1.0.1
Text Domain: housecare-notes
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{
  --hcn-peach:#f6d6c7;
  --hcn-peach2:#fff0e7;
  --hcn-terracotta:#d95e35;
  --hcn-terracotta2:#b84d2d;
  --hcn-cream:#fff9f3;
  --hcn-beige:#f3e5d8;
  --hcn-brown:#5b382b;
  --hcn-ink:#34251e;
  --hcn-muted:#7d7068;
  --hcn-green:#667a61;
  --hcn-line:#e3cfc0;
  --hcn-white:#fffdfa;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hcn-cream);color:var(--hcn-ink);font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(1240px,calc(100% - 32px));margin:auto}

/* Header */
.hcn-header{
  position:sticky;top:0;z-index:999;
  background:rgba(255,250,245,.98);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #ead7c9;
  box-shadow:0 8px 22px rgba(80,54,38,.05)
}
.admin-bar .hcn-header{top:32px}
.hcn-head{min-height:80px;display:grid;grid-template-columns:260px 1fr 220px;gap:18px;align-items:center}
.hcn-logo img{display:block;width:250px;max-height:62px;object-fit:contain}
.hcn-nav ul{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hcn-nav a{display:block;padding:10px 10px;border-radius:999px;color:#4f362d;font-size:11px;font-weight:700}
.hcn-nav a:hover,.hcn-nav .current-menu-item>a{background:#f2ded0;color:#c55231}
.hcn-search{height:40px;display:grid;grid-template-columns:1fr 40px;border:1px solid #e0cdbf;border-radius:999px;overflow:hidden;background:#fff}
.hcn-search input{border:0;outline:0;padding:0 13px;background:transparent;color:#5f5149;font-size:12px}
.hcn-search button{border:0;background:#d95e35;color:#fff;font-weight:900}

/* Hero */
.hcn-hero{padding:34px 0 42px;background:linear-gradient(180deg,#fff6ef,#f7e4d8);border-bottom:1px solid #e6d2c4}
.hcn-hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:30px;align-items:center}
.hcn-kicker{color:#c95232;font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.hcn-hero h1{margin:12px 0 18px;font:700 clamp(3.4rem,5.4vw,5.8rem)/.94 Georgia,serif;letter-spacing:-.045em;color:#3c2a22}
.hcn-hero p{max-width:560px;margin:0;color:#756961;font-size:15px;line-height:1.65}
.hcn-actions{display:flex;gap:12px;margin-top:24px}
.hcn-btn{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:999px;font-size:11px;font-weight:900;border:1px solid #d35c37}
.hcn-btn.primary{background:#d95e35;color:#fff;border-color:#d95e35}
.hcn-btn.secondary{background:#fffaf6;color:#6a3b2b}

.hcn-visual{position:relative;min-height:455px}
.hcn-visual-main{position:absolute;inset:0 0 0 70px;border-radius:46% 12% 12% 46%;overflow:hidden;border:1px solid #dfc8b8;box-shadow:0 18px 36px rgba(83,58,39,.10)}
.hcn-visual-main img{width:100%;height:100%;object-fit:cover}
.hcn-floating-note{
  position:absolute;left:0;bottom:42px;width:245px;background:#fff9f4;border:1px solid #dfcaba;border-radius:18px;
  padding:18px;box-shadow:0 16px 34px rgba(88,59,40,.10)
}
.hcn-floating-note small{display:block;color:#d35e38;font-size:8px;font-weight:900;text-transform:uppercase}
.hcn-floating-note strong{display:block;margin-top:7px;font:700 1.25rem/1.1 Georgia,serif}
.hcn-floating-badge{
  position:absolute;right:14px;top:22px;background:#fff6ef;border:1px solid #dfcabb;border-radius:50%;
  width:118px;height:118px;display:grid;place-items:center;text-align:center;padding:12px;
  color:#754532;font:700 13px/1.1 Georgia,serif
}

/* Categories */
.hcn-section{padding:52px 0}
.hcn-section.alt{background:#f9eee5;border-top:1px solid #e5d1c4;border-bottom:1px solid #e5d1c4}
.hcn-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}
.hcn-section-head h2{margin:0;font:700 2.35rem/1 Georgia,serif;color:#3c2a22}
.hcn-section-head p{margin:6px 0 0;color:#82756d;font-size:12px}
.hcn-section-head>a{color:#c85534;font-size:10px;font-weight:900;text-transform:uppercase}

.hcn-cat-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
.hcn-cat-card{min-height:110px;padding:15px;border-radius:18px;border:1px solid #e2cfc0;background:#fff9f4;display:flex;flex-direction:column;justify-content:space-between}
.hcn-cat-card b{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f5dfd2;color:#cc5937;font-size:15px}
.hcn-cat-card span{font-size:10px;font-weight:800;line-height:1.15}
.hcn-cat-card:hover{background:#f4e2d5}

/* Featured */
.hcn-feature-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}
.hcn-feature-main{position:relative;min-height:430px;overflow:hidden;border-radius:22px;border:1px solid #dbc7b6;background:#fff}
.hcn-feature-main img{width:100%;height:430px;object-fit:cover}
.hcn-feature-main:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(62,40,28,.90))}
.hcn-feature-copy{position:absolute;z-index:2;left:20px;right:20px;bottom:18px}
.hcn-feature-copy small{color:#ffd5c4;font-size:8px;font-weight:900;text-transform:uppercase}
.hcn-feature-copy h3{margin:6px 0 0;font:700 2rem/1.07 Georgia,serif;color:#fff}
.hcn-side-guides{background:#fffaf6;border:1px solid #e0cdbd;border-radius:22px;padding:16px}
.hcn-side-guides h3{margin:0 0 12px;font:700 1.35rem Georgia,serif}
.hcn-side-item{display:grid;grid-template-columns:74px 1fr 18px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #ead9cc}
.hcn-side-item:last-child{border-bottom:0}
.hcn-side-item img{width:74px;height:58px;object-fit:cover;border-radius:12px}
.hcn-side-item strong{font-size:.94rem;line-height:1.18}
.hcn-side-item span{color:#d95e35}

/* Article cards */
.hcn-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hcn-card{background:#fffaf5;border:1px solid #e1cfbf;border-radius:18px;overflow:hidden;box-shadow:0 9px 22px rgba(77,57,42,.05)}
.hcn-card-img{height:210px;display:block;overflow:hidden}
.hcn-card-img img{width:100%;height:100%;object-fit:cover}
.hcn-card-body{padding:15px 16px 17px}
.hcn-card-body>small{color:#cc5938;font-size:8px;font-weight:900;text-transform:uppercase}
.hcn-card h3{margin:7px 0 8px;font:700 1.17rem/1.17 Georgia,serif;color:#3a2b23}
.hcn-card p{margin:0;color:#7b726b;font-size:11px;line-height:1.5}
.hcn-meta{display:flex;justify-content:space-between;margin-top:12px;color:#999088;font-size:9px}

/* Single post */
.hcn-post-hero{background:#f6e6da;padding:42px 0 28px;border-bottom:1px solid #e0cdbf}
.hcn-post-hero h1{max-width:920px;margin:8px 0 10px;font:700 clamp(2.6rem,5vw,4.4rem)/.98 Georgia,serif;color:#3b2b22}
.hcn-post-meta{display:flex;gap:8px;color:#80746c;font-size:10px}
.hcn-post-wrap{width:min(1080px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.hcn-article{background:#fffaf5;border:1px solid #ddc9b9;border-radius:18px;box-shadow:0 16px 34px rgba(74,54,39,.08);padding:34px 38px;overflow:hidden}
.hcn-featured img{display:block;width:100%;height:520px;object-fit:cover;border-radius:14px;border:1px solid #cfbcab;box-shadow:0 14px 30px rgba(73,55,39,.11);margin-bottom:28px}
.hcn-entry{font:16px/1.8 Georgia,"Times New Roman",serif;color:#473a32}
.hcn-entry>*{max-width:100%;box-sizing:border-box}
.hcn-entry h2,.hcn-entry h3{color:#3a2a22}
.hcn-entry img{display:block;width:100%;max-width:100%;height:auto;border-radius:12px;border:1px solid #d5c4b4;box-shadow:0 10px 22px rgba(73,58,35,.08)}
.hcn-entry a{color:#b94f2f;text-decoration:underline}
.hcn-entry p,.hcn-entry li,.hcn-entry a,.hcn-entry span,.hcn-entry strong{overflow-wrap:anywhere;white-space:normal}

/* Contextual links */
.hcn-context-link{margin:28px 0;padding:14px 16px;background:#f3e1d5;border:1px solid #dcc7b7;border-left:4px solid #d95e35;border-radius:10px}
.hcn-context-link small{display:block;margin-bottom:6px;color:#b76042;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}
.hcn-context-link a{display:flex;justify-content:space-between;gap:12px;color:#3f3128!important;text-decoration:none!important;font-weight:700}
.hcn-context-link b{color:#d95e35}

/* Related */
.hcn-related{margin-top:38px;padding-top:24px;border-top:1px solid #dccbbb}
.hcn-related h2{margin:0 0 16px;font:700 2rem Georgia,serif}
.hcn-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hcn-related-card{background:#fff;border:1px solid #dfcebe;border-radius:14px;overflow:hidden}
.hcn-related-card img{width:100%;height:170px;object-fit:cover}
.hcn-related-card div{padding:12px}
.hcn-related-card h3{margin:0;font:700 1rem/1.15 Georgia,serif}

/* Modern classy footer */
.hcn-footer{
  position:relative;
  background:
    radial-gradient(circle at 15% 10%,rgba(217,94,53,.16),transparent 26%),
    radial-gradient(circle at 88% 82%,rgba(246,214,199,.10),transparent 24%),
    #2f211c;
  color:#f7eee7;
  border-top:1px solid #6a4536;
  overflow:hidden
}
.hcn-footer:before{
  content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#d95e35,#f2b18e,#d95e35)
}
.hcn-footer-main{padding:46px 0 26px}
.hcn-footer-grid{
  display:grid;grid-template-columns:1.5fr .8fr .9fr .9fr;gap:36px;
  padding-bottom:28px
}
.hcn-footer-brand img{width:270px;max-height:62px;filter:brightness(1.35)}
.hcn-footer-brand p{max-width:370px;margin:14px 0 0;color:#d6c7bd;font-size:11px;line-height:1.7}
.hcn-footer-social{display:flex;gap:8px;margin-top:18px}
.hcn-footer-social a{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid #7a5140;background:#3b2922;color:#f6d8ca;
  font-size:11px;font-weight:800
}
.hcn-footer-social a:hover{background:#d95e35;color:#fff;border-color:#d95e35}
.hcn-footer-col{display:flex;flex-direction:column;gap:9px}
.hcn-footer h3{margin:0 0 10px;font:700 1rem Georgia,serif;color:#fff}
.hcn-footer a{color:#d9cbc1;font-size:10px}
.hcn-footer a:hover{color:#ffc2a7}
.hcn-footer-cta{
  display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;
  margin:0 0 28px;padding:18px 20px;
  background:linear-gradient(135deg,#3d2b23,#4d3025);
  border:1px solid #714d3c;border-radius:18px
}
.hcn-footer-cta strong{font:700 1.15rem Georgia,serif}
.hcn-footer-cta span{display:block;margin-top:4px;color:#cdbdb2;font-size:10px}
.hcn-footer-cta a{
  display:inline-flex;align-items:center;min-height:40px;padding:0 16px;
  border-radius:999px;background:#d95e35;color:#fff!important;font-weight:800
}
.hcn-footer-bottom{
  display:flex;justify-content:space-between;gap:20px;padding:16px 0 20px;
  border-top:1px solid #53382e;color:#a99589;font-size:9px
}

@media(max-width:1100px){
  .hcn-head{grid-template-columns:220px 1fr}.hcn-search{grid-column:1/-1}
  .hcn-cat-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:820px){
  .admin-bar .hcn-header{top:46px}
  .hcn-header{position:relative}
  .hcn-head{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .hcn-nav ul{justify-content:flex-start}
  .hcn-hero-grid,.hcn-feature-layout{grid-template-columns:1fr}
  .hcn-visual{min-height:400px}
  .hcn-article-grid{grid-template-columns:repeat(2,1fr)}
  .hcn-footer-grid{grid-template-columns:1fr 1fr}
  .hcn-footer-cta{grid-template-columns:1fr}
  .hcn-featured img{height:360px}
}
@media(max-width:560px){
  .hcn-cat-grid,.hcn-article-grid,.hcn-related-grid,.hcn-footer-grid{grid-template-columns:1fr}
  .hcn-visual-main{inset:0;border-radius:24px}
  .hcn-floating-note{left:12px;bottom:12px;width:min(250px,calc(100% - 24px))}
  .hcn-floating-badge{display:none}
  .hcn-hero h1{font-size:3rem}
  .hcn-actions{flex-direction:column;align-items:flex-start}
  .hcn-article{padding:20px 16px}
  .hcn-featured img{height:260px}
  .hcn-footer-bottom{flex-direction:column}
}
