/*
Theme Name: Hearth & Hero
Theme URI: https://hearthandhero.com/
Author: Hearth & Hero
Description: A lightweight classic WordPress theme for the Hearth & Hero indie app studio.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hearthandhero
*/

:root {
    --hh-orange: #ef5b0c;
    --hh-orange-dark: #d94700;
    --hh-brown: #30271f;
    --hh-copy: #4b433c;
    --hh-cream: #faf7f0;
    --hh-cream-deep: #f3ecdf;
    --hh-border: #dfd4c5;
    --hh-stone: #cdbb9f;
    --hh-blue: #b9e1eb;
    --hh-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--hh-cream);
    color: var(--hh-brown);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.hh-wrap { width: min(calc(100% - 44px), var(--hh-max)); margin-inline: auto; }
.hh-narrow { width: min(calc(100% - 44px), 820px); margin-inline: auto; }

/* Header */
.hh-site-header {
    position: relative;
    z-index: 50;
    background: rgba(255,252,245,.98);
    border-bottom: 1px solid rgba(70,55,40,.13);
}
.hh-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.hh-brand { display: flex; align-items: center; min-width: 210px; }
.hh-brand .custom-logo-link { display: block; line-height: 0; }
.hh-brand .custom-logo { width: 205px; max-height: 62px; object-fit: contain; object-position: left center; }
.hh-brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-weight: 950;
    font-size: 22px;
    line-height: .9;
    letter-spacing: -.03em;
}
.hh-brand-fallback .hh-flame { font-size: 36px; }
.hh-brand-fallback strong { display: block; }
.hh-brand-fallback em { color: var(--hh-orange); font-style: normal; }
.hh-header-actions { display: flex; align-items: center; gap: 34px; }
.hh-main-nav ul { list-style: none; display: flex; align-items: center; gap: 34px; padding: 0; margin: 0; }
.hh-main-nav a { text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 900; letter-spacing: .035em; }
.hh-main-nav a:hover, .hh-main-nav .current-menu-item > a { color: var(--hh-orange); }
.hh-header-cta, .hh-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(#ff720f, #ed5700);
    color: #fff;
    text-decoration: none;
    border: 1px solid #ce4800;
    border-radius: 10px;
    box-shadow: 0 3px 0 #bd4300, 0 5px 12px rgba(83,43,15,.15);
    padding: 14px 22px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.hh-header-cta:hover, .hh-button-primary:hover { transform: translateY(-1px); }
.hh-menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: var(--hh-brown); }

/* Hero */
.hh-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 29% 22%, rgba(255,255,255,.70) 0 52px, transparent 55px),
        radial-gradient(circle at 45% 12%, rgba(255,255,255,.62) 0 35px, transparent 38px),
        radial-gradient(circle at 76% 11%, rgba(255,255,255,.72) 0 42px, transparent 45px),
        linear-gradient(90deg, #faf5ea 0%, #f9f4e9 37%, #d8edf0 58%, #a8d9e5 100%);
}
.hh-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(250,247,240,0), rgba(250,247,240,.20));
    pointer-events: none;
}
.hh-hero-inner {
    min-height: 410px;
    display: grid;
    grid-template-columns: 43% 57%;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hh-hero-copy { padding: 20px 0 26px; position: relative; z-index: 3; }
.hh-eyebrow { margin: 0 0 12px; color: var(--hh-orange); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hh-hero h1 {
    margin: 0 0 18px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: .94;
    letter-spacing: -.025em;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(255,255,255,.65);
}
.hh-hero h1 span { color: var(--hh-orange); }
.hh-hero-copy > p:not(.hh-eyebrow) { max-width: 430px; margin: 0; color: var(--hh-copy); font-size: 16px; }
.hh-hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hh-button-secondary { text-decoration: none; font-size: 12px; font-weight: 900; text-transform: uppercase; padding: 13px 6px; }
.hh-button-secondary:hover { color: var(--hh-orange); }
.hh-hero-art { height: 410px; position: relative; overflow: visible; }
.hh-hero-art img {
    position: absolute;
    height: 720px;
    width: auto;
    max-width: none;
    left: 50%;
    top: -145px;
    transform: translateX(-50%);
    filter: drop-shadow(0 16px 17px rgba(71,52,29,.15));
}

/* Stone divider */
.hh-stone-divider {
    height: 20px;
    border-top: 1px solid #ab9677;
    border-bottom: 1px solid #aa9679;
    background: linear-gradient(90deg,#c8b89e 0 35px,#eadfc9 35px 38px,#c3b095 38px 75px,#ede1cb 75px 78px);
    background-size: 78px 100%;
    box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 3px 7px rgba(83,63,40,.18);
    position: relative;
    z-index: 5;
}

/* Shared sections */
.hh-section { padding: 58px 0; background: var(--hh-cream); }
.hh-section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.hh-section-kicker::before, .hh-section-kicker::after { content: ""; width: 30px; height: 2px; background: var(--hh-orange); }
.hh-section-title {
    margin: 0 0 34px;
    text-align: center;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.015em;
    text-transform: uppercase;
}

/* Apps */
.hh-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.hh-app-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) 150px;
    gap: 18px;
    min-height: 310px;
    padding: 25px 22px 18px;
    background: rgba(255,255,255,.74);
    border: 2px solid #e2d8ca;
    border-radius: 22px;
    box-shadow: 0 7px 20px rgba(82,62,38,.08), inset 0 1px 0 #fff;
    overflow: hidden;
}
.hh-app-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hh-app-icon {
    width: 70px; height: 70px; flex: 0 0 70px;
    border: 1px solid #d9c5a1; border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(145deg,#f6e1ad,#f8f2df);
    font-size: 38px;
}
.hh-app-icon--image {
    overflow: hidden;
    padding: 0;
    background: #fff8eb;
}
.hh-app-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hh-app-heading h3 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.hh-app-heading h3 span { color: var(--hh-orange); }
.hh-app-copy > p { margin: 8px 0 14px; font-size: 14px; color: var(--hh-copy); }
.hh-features { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; line-height: 1.9; }
.hh-card-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.hh-small-button { display: inline-flex; align-items:center; justify-content:center; border: 1px solid #cdbfae; background:#fffaf1; border-radius:7px; padding:9px 12px; text-decoration:none; font-size:10px; font-weight:900; text-transform:uppercase; }
.hh-store-badge { display:inline-flex; align-items:center; justify-content:center; border-radius:7px; background:#090909; color:#fff; padding:9px 11px; text-decoration:none; font-size:10px; font-weight:800; }
.hh-phone {
    align-self: end;
    justify-self: center;
    width: 128px;
    height: 258px;
    margin-bottom: -20px;
    border: 5px solid #26221f;
    border-radius: 23px;
    background: linear-gradient(180deg,#e9f2f0 0%,#fff9ec 12%,#f4e9d5 100%);
    box-shadow: 0 7px 12px rgba(28,22,17,.22), inset 0 0 0 2px #5d554c;
    display: grid;
    place-items: center;
    text-align: center;
    color: #817366;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    position: relative;
}
.hh-phone::before { content:""; position:absolute; width:44px; height:9px; border-radius:9px; top:7px; background:#1e1b19; }
.hh-phone--image {
    width: 155px;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin-bottom: -28px;
    overflow: visible;
    display: block;
}
.hh-phone--image::before {
    display: none;
}
.hh-phone--image img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(28,22,17,.22));
}
.hh-dev-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 7px;
    background: #ebe5d8;
    color: #6b5f52;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
    border: 1px solid #d5c8b4;
}
.hh-app-preview {
    align-self: center;
    justify-self: center;
}
.hh-app-preview-card {
    width: 150px;
    min-height: 190px;
    padding: 12px 12px 10px;
    border-radius: 24px;
    background: linear-gradient(180deg,#fffdf8 0%,#f4ecdd 100%);
    box-shadow: 0 8px 16px rgba(52,38,24,.10), inset 0 1px 0 rgba(255,255,255,.8);
    border: 2px solid #e6dac8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hh-app-preview-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}
.hh-app-preview-card span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #7b6f62;
    letter-spacing: .04em;
}

/* Benefits */
.hh-benefits-title { margin-top: 48px; }
.hh-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.hh-benefit { text-align:center; padding: 12px 26px; border-right: 1px solid #e6ddd1; }
.hh-benefit:last-child { border-right:0; }
.hh-benefit-icon { font-size: 48px; line-height: 1; filter: drop-shadow(0 3px 2px rgba(62,45,27,.13)); }
.hh-benefit h3 { font-size: 15px; margin: 11px 0 6px; }
.hh-benefit p { margin:0; font-size:12px; color:#5d554e; }

/* Tim the Turtle */
.hh-tim-section {
    padding: 10px 0 52px;
    background: var(--hh-cream);
}
.hh-tim-inner {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 42px;
    padding: 28px;
    border: 2px solid #dfd4c5;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(239,246,229,.78));
    box-shadow: 0 8px 22px rgba(82,62,38,.08), inset 0 1px 0 #fff;
    overflow: hidden;
}
.hh-tim-image {
    border-radius: 20px;
    overflow: hidden;
    background: #edf1ed;
    min-height: 250px;
}
.hh-tim-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}
.hh-tim-kicker {
    margin: 0 0 8px;
    color: #6f8744;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hh-tim-copy h2 {
    margin: 0 0 12px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1;
    letter-spacing: -.015em;
    text-transform: uppercase;
}
.hh-tim-copy > p:not(.hh-tim-kicker) {
    margin: 0 0 18px;
    color: var(--hh-copy);
    font-size: 14px;
    line-height: 1.65;
}
.hh-tim-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8efcf;
    border: 1px solid #cfd9a4;
    color: #53652f;
    font-size: 11px;
    font-weight: 900;
}
.hh-tim-action { margin-top: 18px; }

/* Blog cards */
.hh-blog-section { padding-top: 30px; }
.hh-post-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:18px; }
.hh-post-card { background:rgba(255,255,255,.72); border:2px solid #e0d7ca; border-radius:20px; overflow:hidden; box-shadow:0 6px 15px rgba(74,55,35,.07); }
.hh-post-thumb { display:block; aspect-ratio: 16/9; overflow:hidden; background: linear-gradient(145deg,#d6e5d2,#f0d4a0); }
.hh-post-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.hh-post-card:hover .hh-post-thumb img { transform:scale(1.025); }
.hh-post-body { padding:15px 17px 17px; }
.hh-post-body h3 { margin:0 0 8px; font-size:17px; line-height:1.25; }
.hh-post-body h3 a { text-decoration:none; }
.hh-post-body p { margin:0 0 12px; color:#615950; font-size:12px; }
.hh-post-meta { font-size:10px; color:#756d65; }
.hh-blog-more { text-align:center; margin-top:22px; }

/* CTA */
.hh-bottom-cta {
    width:min(calc(100% - 44px),var(--hh-max));
    margin: 15px auto 28px;
    padding: 22px 28px;
    border:3px solid #a08a67;
    border-radius:18px;
    background: linear-gradient(rgba(223,208,180,.93),rgba(205,184,148,.93)), repeating-linear-gradient(90deg,transparent 0 65px,rgba(95,74,48,.08) 65px 68px);
    box-shadow:inset 0 3px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(83,62,37,.14), 0 8px 14px rgba(71,53,34,.14);
    display:grid;
    grid-template-columns: 120px 1fr 120px;
    align-items:center;
    gap:20px;
    text-align:center;
}
.hh-cta-art { font-size:62px; filter:drop-shadow(0 4px 2px rgba(72,48,25,.2)); }
.hh-bottom-cta h2 { margin:0; font-family:Impact,"Arial Narrow",sans-serif; font-size:clamp(28px,3vw,40px); line-height:1; }
.hh-bottom-cta p { margin:7px 0 10px; font-size:14px; }
.hh-bottom-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }

/* Footer */
.hh-site-footer { padding: 20px 0 24px; border-top:1px solid #eee5d9; background:var(--hh-cream); }
.hh-footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:55px; }
.hh-footer-brand .custom-logo { width:145px; max-height:50px; object-fit:contain; object-position:left center; }
.hh-footer-brand p, .hh-site-footer li, .hh-site-footer a, .hh-site-footer p { font-size:11px; color:#514b44; }
.hh-site-footer h3 { font-size:10px; letter-spacing:.05em; text-transform:uppercase; margin:0 0 9px; }
.hh-site-footer ul { list-style:none; padding:0; margin:0; }
.hh-site-footer a { text-decoration:none; }
.hh-site-footer a:hover { color:var(--hh-orange); }
.hh-copyright { text-align:center; margin:20px 0 0; color:#8b8177 !important; font-size:10px !important; }

/* Standard pages */
.hh-page-hero { background: linear-gradient(180deg,#fffaf2,#f3ecdf); border-bottom:1px solid var(--hh-border); padding:55px 0 48px; text-align:center; }
.hh-page-hero h1 { margin:0; font-family:Impact,"Arial Narrow",sans-serif; font-size:clamp(38px,5vw,64px); text-transform:uppercase; letter-spacing:-.02em; }
.hh-page-main { padding:50px 0 70px; }
.hh-entry-content { background:rgba(255,255,255,.58); border:1px solid var(--hh-border); border-radius:16px; padding:30px; }
.hh-entry-content h2, .hh-entry-content h3 { line-height:1.2; }
.hh-entry-content a { color:var(--hh-orange-dark); }

/* Blog archive */
.hh-blog-header { padding:55px 0 20px; text-align:center; }
.hh-blog-header h1 { margin:0; font-family:Impact,"Arial Narrow",sans-serif; font-size:clamp(42px,5vw,66px); text-transform:uppercase; }
.hh-blog-list { padding:20px 0 70px; }
.hh-pagination { margin-top:30px; display:flex; justify-content:center; }
.hh-pagination .nav-links { display:flex; gap:8px; }
.hh-pagination a, .hh-pagination span { border:1px solid var(--hh-border); border-radius:7px; background:#fffaf1; padding:8px 12px; text-decoration:none; font-size:12px; }

/* Single post */
.hh-article { padding:50px 0 75px; }
.hh-article-header { text-align:center; margin-bottom:28px; }
.hh-article-header h1 { margin:0 0 10px; font-size:clamp(36px,5vw,58px); line-height:1.05; }
.hh-article-header .hh-post-meta { font-size:12px; }
.hh-article-featured { margin:0 auto 30px; width:min(100%,980px); overflow:hidden; border-radius:18px; border:2px solid var(--hh-border); }
.hh-article-featured img { width:100%; display:block; }

/* Responsive */
@media (max-width: 1000px) {
    .hh-header-actions { gap:18px; }
    .hh-main-nav ul { gap:18px; }
    .hh-main-nav a { font-size:11px; }
    .hh-hero-art img { height:650px; top:-110px; }
    .hh-app-card { grid-template-columns: 1fr; }
    .hh-phone { margin-top:8px; }
    .hh-phone--image { width: 165px; margin-bottom: -18px; }
    .hh-app-preview-card { width: 165px; min-height: 180px; }
}

@media (max-width: 780px) {
    .hh-tim-inner { grid-template-columns:1fr; gap:22px; padding:20px; }
    .hh-tim-image { min-height:0; }
    .hh-tim-image img { min-height:0; max-height:360px; object-position:center; }
    .hh-wrap, .hh-narrow { width:min(calc(100% - 30px), var(--hh-max)); }
    .hh-header-inner { min-height:72px; }
    .hh-brand .custom-logo { width:155px; max-height:50px; }
    .hh-brand { min-width:0; }
    .hh-menu-toggle { display:block; }
    .hh-header-cta { display:none; }
    .hh-main-nav { display:none; position:absolute; left:0; right:0; top:72px; background:#fffaf3; border-top:1px solid var(--hh-border); border-bottom:1px solid var(--hh-border); padding:12px 20px; }
    .hh-main-nav.is-open { display:block; }
    .hh-main-nav ul { flex-direction:column; align-items:stretch; gap:0; }
    .hh-main-nav a { display:block; padding:12px 0; font-size:13px; }
    .hh-hero { background:linear-gradient(180deg,#f9f4e9 0%,#f9f4e9 45%,#c4e4eb 100%); }
    .hh-hero-inner { min-height:0; grid-template-columns:1fr; padding-top:34px; }
    .hh-hero-copy { padding:0; }
    .hh-hero h1 { font-size:clamp(44px,13vw,62px); }
    .hh-hero-art { height:auto; min-height:300px; overflow:hidden; margin-top:8px; }
    .hh-hero-art img { position:relative; height:auto; width:100%; max-width:620px; left:50%; top:auto; transform:translateX(-50%); margin:-80px 0 -85px; }
    .hh-app-grid, .hh-post-grid { grid-template-columns:1fr; }
    .hh-app-card { grid-template-columns:minmax(0,1fr) 120px; }
    .hh-phone--image { width: 120px; margin-bottom: -16px; }
    .hh-app-preview-card { width: 120px; min-height: 150px; padding: 10px 8px; }
    .hh-app-preview-card img { width: 94px; height: 94px; }
    .hh-app-preview-card span { font-size: 9px; }
    .hh-benefits { grid-template-columns:1fr 1fr; }
    .hh-benefit:nth-child(2) { border-right:0; }
    .hh-benefit:nth-child(-n+2) { border-bottom:1px solid #e6ddd1; }
    .hh-bottom-cta { grid-template-columns:1fr; }
    .hh-bottom-cta .hh-cta-art { display:none; }
    .hh-footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
}

@media (max-width: 520px) {
    .hh-hero-buttons { align-items:flex-start; flex-direction:column; gap:3px; }
    .hh-app-card { grid-template-columns:1fr; }
    .hh-phone { width:130px; height:255px; }
    .hh-phone--image { width: 140px; margin: 18px auto -12px; }
    .hh-app-preview-card { width: 150px; min-height: 180px; margin: 18px auto 0; }
    .hh-benefits { grid-template-columns:1fr; }
    .hh-benefit { border-right:0; border-bottom:1px solid #e6ddd1; }
    .hh-benefit:last-child { border-bottom:0; }
    .hh-footer-grid { grid-template-columns:1fr; }
}
