/*
Theme Name: Schluepfer – Salbei & Stroh
Theme URI: https://schluepfer.de/
Author: schluepfer.de
Description: Schluepfer HivePress theme based strictly on the supplied reference layout.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: schluepfer
*/

:root{
  --sage:#8aa79b;
  --sage-dark:#16453d;
  --sage-deep:#103e37;
  --sage-pale:#e8eee9;
  --straw:#f4e9d7;
  --straw-pale:#fbf5ea;
  --cream:#fbf9f5;
  --white:#fff;
  --ink:#163f37;
  --muted:#6c7772;
  --line:#e7e7e1;
  --peach:#f8d9bd;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
.wrap{width:min(1100px,calc(100% - 60px));margin:0 auto}

/* Header */
.site-header{height:48px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;position:relative;z-index:50}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{display:flex;align-items:center;gap:8px;min-width:max-content}
.brand-mark{width:24px;height:27px;position:relative;display:inline-block;flex:none}
.brand-mark:before,.brand-mark:after{content:"";position:absolute;width:12px;height:22px;border-radius:12px 12px 2px 12px;top:3px;left:4px;background:#d5e1da;transform:rotate(-28deg)}
.brand-mark:after{width:11px;height:21px;top:1px;left:10px;background:var(--sage);transform:rotate(28deg)}
.brand-copy{display:flex;flex-direction:column;line-height:1}
.brand-name{font-size:16px;font-weight:800;letter-spacing:-.04em}
.brand-sub{font-size:7px;font-weight:400;color:var(--muted);margin-top:4px;white-space:nowrap}
.main-nav{display:flex;align-items:center;justify-content:center;gap:25px;font-size:11px;flex:1}
.main-nav a{white-space:nowrap}
.main-nav a:hover,.footer-nav a:hover{color:var(--sage-dark)}
.header-actions{display:flex;align-items:center;gap:14px;min-width:max-content}
.header-icon{font-size:18px;line-height:1}
.header-actions .hp-menu{display:flex;align-items:center;gap:13px;list-style:none;margin:0;padding:0}
.header-actions .hp-menu__item{white-space:nowrap}
.header-actions .hp-menu__item--listing-submit a,.header-actions .hp-menu__item--user a{display:inline-flex;align-items:center}
.header-actions .hp-menu__item--listing-submit a{padding:8px 14px;border-radius:20px;background:var(--sage);color:#fff;font-size:10px;font-weight:700}

/* Hero */
.hero{height:275px;background:linear-gradient(90deg,rgba(251,249,245,1) 0%,rgba(251,249,245,.98) 48%,rgba(251,249,245,.18) 70%),url('assets/hero.jpg') right center/auto 100% no-repeat}
.hero-inner{height:100%;display:flex;align-items:center}
.hero-copy{width:58%;padding:7px 0 0}
.eyebrow{font-size:8px;text-transform:uppercase;letter-spacing:.22em;color:var(--sage);font-weight:800}
.hero h1{font-size:31px;line-height:1.02;letter-spacing:-.045em;margin:8px 0 13px;max-width:420px;color:var(--sage-deep)}
.hero p{max-width:390px;color:#55635d;font-size:11px;line-height:1.55;margin:0 0 18px}
.searchbox{width:min(570px,100%);height:39px;background:#fff;border:1px solid #e5e7e3;border-radius:13px;padding:4px 5px 4px 13px;display:flex;align-items:center;box-shadow:0 5px 16px rgba(36,55,47,.06)}
.search-symbol{font-size:15px;color:#73837c;margin-right:7px}
.searchbox input{border:0;outline:0;background:transparent;padding:7px 5px;flex:1;min-width:0;color:var(--ink);font-size:10px}
.searchbox button{width:31px;height:31px;border:0;border-radius:11px;background:var(--sage);color:#fff;font-size:16px;display:grid;place-items:center;cursor:pointer}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.chip{background:#e8eee9;border-radius:13px;padding:5px 10px;font-size:8px;color:#53645d;line-height:1}

/* Stats */
.stats{background:#fff;padding:18px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}
.stat-icon{font-size:18px;color:var(--sage);height:24px;line-height:24px}
.stat strong{display:block;font-size:15px;line-height:1.1;letter-spacing:-.03em;color:var(--ink)}
.stat span{display:block;font-size:8px;color:var(--muted);margin-top:3px}

/* Sections */
.section{padding:27px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}
.section h2{font-size:19px;line-height:1.08;margin:0;letter-spacing:-.035em;color:var(--sage-deep)}
.section-intro{margin:5px 0 0;color:#64716b;font-size:8px}
.more{font-size:8px;font-weight:700;white-space:nowrap}
.more:hover{color:var(--sage-dark)}

/* Categories */
.categories{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.cat-card{background:#fff;border:1px solid #e7e8e4;border-radius:10px;overflow:hidden;box-shadow:0 4px 12px rgba(32,49,43,.05)}
.cat-card img{width:100%;aspect-ratio:1.42;object-fit:cover}
.cat-body{text-align:center;padding:9px 4px 10px}
.cat-body strong{display:block;font-size:9px;line-height:1.2;color:var(--ink)}
.cat-body span{display:block;font-size:7px;color:var(--muted);margin-top:3px}

/* Listings */
.listings{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.listing-card{position:relative;background:#fff;border:1px solid #e7e8e4;border-radius:10px;overflow:hidden;box-shadow:0 4px 12px rgba(32,49,43,.05);min-width:0}
.listing-thumb{width:100%;aspect-ratio:1.13;object-fit:cover;background:#eee}
.listing-body{padding:8px 10px 10px}
.badge{display:inline-block;border-radius:7px;background:var(--straw);font-size:6px;line-height:1;padding:4px 5px;margin-bottom:5px}
.listing-body h3{font-size:10px;line-height:1.25;margin:0 0 3px;color:var(--ink)}
.meta{font-size:7px;color:var(--muted);line-height:1.35}
.price{font-weight:800;font-size:8px;margin-top:5px;color:var(--sage-dark)}
.heart{position:absolute;right:7px;top:7px;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.94);display:grid;place-items:center;font-size:12px;color:var(--sage-dark);z-index:2}

/* Trust */
.trust{background:#edf2ec;padding:17px 0}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.trust-item{display:flex;gap:8px;align-items:center}
.trust-icon{width:28px;height:28px;border-radius:50%;background:#dce9df;display:grid;place-items:center;color:var(--sage-dark);font-size:13px;flex:none}
.trust-item strong{display:block;font-size:8px;line-height:1.2}
.trust-item span{display:block;font-size:6px;color:var(--muted);line-height:1.35;margin-top:3px}

/* Process + community */
.process-section{padding-top:47px;padding-bottom:37px}
.community-section{padding-top:34px;padding-bottom:35px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.split h2{font-size:23px;margin-top:5px}
.steps{margin-top:17px}
.step{display:grid;grid-template-columns:28px 1fr;gap:10px;margin-bottom:9px}
.num{width:28px;height:28px;border-radius:50%;background:#b8cbc0;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}
.step strong{font-size:9px;line-height:1.2}
.step p{margin:2px 0 0;font-size:7px;color:var(--muted);line-height:1.35}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:20px;padding:9px 15px;background:var(--sage);color:#fff;font-size:8px;font-weight:700;cursor:pointer}
.split-image{border-radius:15px;overflow:hidden;background:#f5f1e9}
.split-image img{width:100%;aspect-ratio:1.5;object-fit:cover}
.community-section .split-image img{aspect-ratio:1.42}
.community-section p{font-size:9px;line-height:1.55;color:#4f615a;margin:12px 0}
.checks{margin:13px 0 15px}
.checks div{font-size:8px;margin:7px 0;line-height:1.3}
.checks div:before{content:"✓";display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#bdd0c5;color:#fff;margin-right:7px;font-size:8px}

/* Quote */
.quote{padding:35px 0;background:linear-gradient(90deg,#fff9ef,#faf9f2);position:relative}
.quote p{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:18px;line-height:1.35;text-align:center;max-width:650px;margin:auto;color:#557268}
.quote:before{content:'“';position:absolute;left:6%;top:12px;font-family:Georgia,serif;font-size:55px;color:var(--peach)}

/* Newsletter */
.newsletter{padding:25px 0 30px;background:var(--cream)}
.newsletter-box{background:#87a99d;border-radius:13px;padding:18px 21px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff}
.newsletter .eyebrow{color:#eaf1ec;font-size:7px}
.newsletter-title{font-size:13px;font-weight:800;line-height:1.2;margin-top:2px}
.newsletter-sub{font-size:7px;opacity:.9;margin-top:3px}
.newsletter-form{display:flex;align-items:center;background:#fff;border-radius:18px;padding:3px;width:min(355px,100%)}
.newsletter-form input{border:0;outline:0;flex:1;min-width:0;padding:7px 9px;font-size:8px;color:var(--ink);background:transparent}
.newsletter-form button{border:0;border-radius:15px;background:var(--sage);color:#fff;padding:7px 11px;font-weight:700;font-size:7px;white-space:nowrap;cursor:pointer}

/* Footer */
.site-footer{background:#fff;border-top:1px solid var(--line);padding:20px 0 13px}
.footer-top{display:flex;justify-content:space-between;gap:20px;align-items:center}
.footer-nav{display:flex;gap:20px;font-size:7px}
.footer-bottom{border-top:1px solid var(--line);margin-top:14px;padding-top:11px;display:flex;justify-content:space-between;color:var(--muted);font-size:7px}
.footer-links{display:flex;gap:16px}

/* HivePress pages: use the same width, spacing, controls and palette as the reference. */
.schluepfer-hivepress-page{width:min(1100px,calc(100% - 60px));margin-left:auto;margin-right:auto;padding-top:27px;padding-bottom:35px}
.schluepfer-hivepress-page .content-area{width:100%}
.hp-page{max-width:none;padding:0}
.hp-page .hp-listing,.hp-page .hp-listing-category{font-family:inherit}
.hp-page .hp-listing__title,.hp-page .hp-listing-category__name{color:var(--ink)}
.hp-page .button,.hp-page button,.hp-page input[type=submit]{border-radius:20px;background:var(--sage);color:#fff;border:0}
.hp-page input,.hp-page select,.hp-page textarea{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}
.hp-page .hp-listing__image img,.hp-page .hp-listing-category__image img{border-radius:10px}
.hp-page .hp-listings{gap:12px}
.hp-page .hp-listings__item{border-radius:10px;overflow:hidden}
.hp-page .hp-form__button{background:var(--sage)}

@media(max-width:900px){
  .wrap{width:min(100% - 40px,1100px)}
  .main-nav{gap:14px}
  .categories{grid-template-columns:repeat(3,1fr)}
  .listings{grid-template-columns:repeat(2,1fr)}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .hero-copy{width:62%}
  .hero h1{font-size:28px}
  .split{gap:28px}
}
@media(max-width:640px){
  .wrap{width:calc(100% - 28px)}
  .site-header{height:auto;min-height:54px;padding:9px 0}
  .header-inner{flex-wrap:wrap;gap:9px}
  .main-nav{order:3;width:100%;justify-content:space-between;gap:8px;font-size:9px}
  .header-actions{margin-left:auto}
  .header-actions .hp-menu__item--listing-submit a{padding:7px 10px}
  .hero{height:auto;min-height:290px;background:linear-gradient(90deg,rgba(251,249,245,.96),rgba(251,249,245,.4)),url('assets/hero.jpg') center/cover no-repeat}
  .hero-inner{min-height:290px;align-items:flex-start;padding:42px 0 24px}
  .hero-copy{width:100%;max-width:420px}
  .hero h1{font-size:29px}
  .hero p{font-size:10px}
  .stats-grid{gap:15px 4px}
  .stat strong{font-size:13px}
  .section{padding:25px 0}
  .section-head{align-items:flex-start;gap:10px}
  .more{margin-top:4px}
  .categories{grid-template-columns:repeat(2,1fr)}
  .listings{grid-template-columns:repeat(2,1fr)}
  .trust-grid{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr;gap:25px}
  .process-section{padding-top:35px}
  .community-section{padding-top:28px}
  .newsletter-box{flex-direction:column;align-items:stretch}
  .newsletter-form{width:100%}
  .footer-top,.footer-bottom{flex-direction:column;align-items:flex-start}
  .footer-nav{flex-wrap:wrap;gap:10px 16px}
}
