/*
Theme Name: High Five Digital Elementor
Theme URI: https://highfivedigital.io/
Description: Clean, Elementor-ready WordPress theme with a contained blog layout.
Version: 4.0.0
Author: High Five Digital
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: high-five-digital
*/

:root{
  --hfd-bg:#f8fafc;--hfd-white:#fff;--hfd-primary:#f59e0b;--hfd-primary-dark:#d97706;
  --hfd-text:#0f172a;--hfd-muted:#64748b;--hfd-border:#e2e8f0;--hfd-footer:#0f172a;
  --hfd-content:760px;--hfd-wide:1180px;--hfd-radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.hfd-site{margin:0;background:var(--hfd-bg);color:var(--hfd-text);font-family:Raleway,Arial,sans-serif}
.hfd-site a{color:inherit}
.hfd-main{min-height:60vh}
.hfd-wrap,.hfd-header-inner,.hfd-footer-inner{width:min(var(--hfd-wide),calc(100% - 32px));margin-inline:auto}

.hfd-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);box-shadow:0 4px 20px rgba(15,23,42,.08)}
.hfd-header-inner{height:76px;display:flex;align-items:center;justify-content:space-between}
.hfd-logo{display:flex;align-items:baseline;gap:8px;text-decoration:none;color:var(--hfd-text)}
.hfd-logo-main{font:800 30px/1 "Playfair Display",serif}
.hfd-logo-main b{color:var(--hfd-primary)}
.hfd-logo-sub{font-size:12px;color:var(--hfd-muted)}
.custom-logo{max-height:55px;width:auto}
.hfd-nav{display:flex;align-items:center;gap:22px}
.hfd-menu,.hfd-menu-mobile{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.hfd-menu a,.hfd-menu-mobile a{color:var(--hfd-text);text-decoration:none;font-weight:600}
.hfd-menu a:hover,.hfd-menu-mobile a:hover{color:var(--hfd-primary)}
.hfd-btn{display:inline-block;background:var(--hfd-primary);color:#fff!important;text-decoration:none;border-radius:999px;padding:11px 20px;font-weight:800;transition:.25s}
.hfd-btn:hover{background:var(--hfd-primary-dark);transform:translateY(-1px)}
.hfd-menu-toggle,.hfd-mobile-nav{display:none}

.hfd-section{padding:90px 0}.hfd-white{background:var(--hfd-white)}.hfd-grey{background:var(--hfd-bg)}
.hfd-site .hfd-section h2{font:800 clamp(30px,4vw,48px)/1.1 "Playfair Display",serif;text-align:center;margin:0 0 18px}
.hfd-section h2 span{color:var(--hfd-primary)}
.hfd-lead{text-align:center;color:var(--hfd-muted);font-size:18px;line-height:1.7;max-width:850px;margin:0 auto 45px}
.hfd-two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px;color:var(--hfd-muted);font-size:17px;line-height:1.8}
.hfd-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:55px;text-align:center}
.hfd-stats strong{display:block;color:var(--hfd-primary);font:900 56px/1 "Playfair Display",serif}
.hfd-stats span{display:block;color:var(--hfd-muted);margin-top:10px}
.hfd-hero{position:relative;min-height:60vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hfd-grid-bg{position:absolute;inset:0;background-image:linear-gradient(#e2e8f0 1px,transparent 1px),linear-gradient(90deg,#e2e8f0 1px,transparent 1px);background-size:80px 80px;opacity:.65}
.hfd-hero-heading{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);font:900 clamp(42px,8vw,100px)/1 "Playfair Display",serif;opacity:.07;text-align:center;white-space:nowrap}
.hfd-marquee{position:relative;z-index:3;width:100%;overflow:hidden}.hfd-marquee-row{display:flex;width:max-content;animation:hfd-marquee 32s linear infinite;margin:8px 0}
.hfd-marquee-row:nth-child(2){animation-direction:reverse}
.hfd-marquee-row span,.hfd-marquee-row i{font:900 clamp(42px,8vw,100px)/1 "Playfair Display",serif;white-space:nowrap}
.hfd-marquee-row span{font-style:italic;opacity:.78;margin:0 16px}.hfd-marquee-row i{font-style:normal;opacity:.45}
@keyframes hfd-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.hfd-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.hfd-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.hfd-card img,.hfd-card-placeholder{display:block;width:100%;height:220px;object-fit:cover}.hfd-card-placeholder{background:linear-gradient(135deg,#e2e8f0,#f8fafc)}
.hfd-card>div:last-child{padding:22px}.hfd-card h3,.hfd-client h3{font:700 22px/1.2 "Playfair Display",serif;margin:0 0 10px}.hfd-card p{color:var(--hfd-muted);line-height:1.6;margin:0}
.hfd-clients{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.hfd-client{text-decoration:none;color:var(--hfd-text);text-align:center}
.hfd-client img,.hfd-client-placeholder{width:100%;height:280px;object-fit:cover;border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.08);background:#f1f5f9}
.hfd-client-placeholder{display:flex;align-items:center;justify-content:center;padding:20px;font-weight:800}.hfd-client h3{margin-top:16px}
.hfd-faq{display:grid;grid-template-columns:1fr 1fr;gap:16px 30px}.hfd-faq details{background:#fff;border-radius:10px;padding:20px;box-shadow:0 6px 20px rgba(15,23,42,.05)}
.hfd-faq summary{cursor:pointer;font:700 19px "Playfair Display",serif;color:var(--hfd-primary)}.hfd-faq details div{color:var(--hfd-muted);line-height:1.65;padding-top:12px}
.hfd-testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.hfd-testimonials blockquote{margin:0;padding:30px;background:#f8fafc;border-radius:12px;text-align:center}
.hfd-testimonials p{font:italic 18px/1.7 "Playfair Display",serif}.hfd-testimonials strong,.hfd-testimonials span{display:block}
.hfd-testimonials strong{color:var(--hfd-primary);margin-top:15px}.hfd-testimonials span{color:var(--hfd-muted);margin-top:4px}
.hfd-cta{text-align:center;padding:90px 0;background:var(--hfd-bg)}.hfd-cta p{max-width:700px;margin:0 auto 30px;color:var(--hfd-muted);font-size:18px;line-height:1.7}.hfd-btn-large{padding:14px 28px;font-size:18px}
.hfd-contact{background:var(--hfd-footer);color:#cbd5e1;padding:80px 0}.hfd-contact h2{color:#fff}.hfd-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.hfd-contact h3{color:#fff;font:700 25px "Playfair Display",serif}.hfd-contact a{color:#fff}.hfd-footer{background:var(--hfd-footer);color:#cbd5e1}
.hfd-footer-inner{padding:50px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.hfd-footer h3,.hfd-footer h4{color:#fff;font-family:"Playfair Display",serif}.hfd-footer a{color:#cbd5e1;text-decoration:none}
.hfd-copyright{text-align:center;border-top:1px solid rgba(255,255,255,.08);padding:20px;font-size:13px}

/* Blog / article layout */
.hfd-blog-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:56px 0 80px}
.hfd-blog-grid{display:grid;grid-template-columns:minmax(0,760px) 300px;gap:48px;align-items:start}
.hfd-archive-header{margin-bottom:34px}
.hfd-archive-header h1{font:800 clamp(34px,5vw,54px)/1.08 "Playfair Display",serif;margin:0 0 12px}
.hfd-archive-description{color:var(--hfd-muted);font-size:17px;line-height:1.7}
.hfd-post-card{background:#fff;border:1px solid var(--hfd-border);border-radius:var(--hfd-radius);overflow:hidden;margin-bottom:28px;box-shadow:0 8px 30px rgba(15,23,42,.05)}
.hfd-post-card-thumb{display:block;aspect-ratio:16/8;overflow:hidden;background:#e2e8f0}
.hfd-post-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hfd-post-card:hover .hfd-post-card-thumb img{transform:scale(1.025)}
.hfd-post-card-body{padding:26px 28px 30px}
.hfd-post-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:#64748b;font-size:13px;margin-bottom:12px}
.hfd-post-meta a{color:var(--hfd-primary-dark);text-decoration:none;font-weight:700}
.hfd-post-card h2{font:800 clamp(25px,3vw,36px)/1.18 "Playfair Display",serif;text-align:left;margin:0 0 12px}
.hfd-post-card h2 a{text-decoration:none}
.hfd-post-card-excerpt{color:var(--hfd-muted);font-size:16px;line-height:1.75;margin:0 0 20px}
.hfd-read-more{font-weight:800;color:var(--hfd-primary-dark)!important;text-decoration:none}
.hfd-pagination{margin-top:38px}.hfd-pagination .page-numbers{display:inline-block;padding:9px 13px;margin:0 5px 5px 0;border:1px solid var(--hfd-border);border-radius:8px;text-decoration:none;background:#fff}
.hfd-pagination .current{background:var(--hfd-text);color:#fff}

.hfd-sidebar{display:grid;gap:22px}.hfd-widget{background:#fff;border:1px solid var(--hfd-border);border-radius:var(--hfd-radius);padding:22px}
.hfd-widget h2,.hfd-widget h3{font:800 20px/1.2 "Playfair Display",serif;margin:0 0 15px;text-align:left}
.hfd-widget ul{margin:0;padding:0;list-style:none}.hfd-widget li{border-bottom:1px solid var(--hfd-border);padding:9px 0}.hfd-widget li:last-child{border-bottom:0}.hfd-widget a{text-decoration:none}
.hfd-widget p{color:var(--hfd-muted);line-height:1.65;margin:0}
.hfd-search-form{display:flex;gap:8px}.hfd-search-form label{flex:1}.hfd-search-form input{width:100%;min-height:42px;border:1px solid var(--hfd-border);border-radius:8px;padding:8px 10px}.hfd-search-form button{border:0;border-radius:8px;padding:0 14px;background:var(--hfd-primary);font-weight:800;cursor:pointer}

.hfd-single-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:56px 0 90px}
.hfd-single-grid{display:grid;grid-template-columns:minmax(0,760px) 300px;gap:48px;align-items:start}
.hfd-single-header{margin-bottom:28px}
.hfd-single-title{font:800 clamp(36px,5vw,58px)/1.08 "Playfair Display",serif;margin:0 0 16px}
.hfd-single-meta{color:var(--hfd-muted);font-size:14px}
.hfd-featured-image{margin:28px 0 34px;border-radius:var(--hfd-radius);overflow:hidden;background:#e2e8f0}
.hfd-featured-image img{display:block;width:100%;height:auto}
.hfd-entry-content{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.85;color:#1e293b}
.hfd-entry-content>*{max-width:100%}
.hfd-entry-content h2,.hfd-entry-content h3,.hfd-entry-content h4{font-family:"Playfair Display",serif;line-height:1.25;color:var(--hfd-text);margin-top:1.8em}
.hfd-entry-content p{margin:0 0 1.25em}
.hfd-entry-content img{max-width:100%;height:auto;border-radius:8px}
.hfd-entry-content blockquote{border-left:4px solid var(--hfd-primary);margin:1.5em 0;padding:8px 20px;color:#475569}
.hfd-entry-footer{border-top:1px solid var(--hfd-border);margin-top:38px;padding-top:22px;color:var(--hfd-muted)}
.hfd-tags a{display:inline-block;margin:5px 5px 0 0;padding:6px 9px;border-radius:7px;background:#f1f5f9;text-decoration:none;font-size:13px}
.hfd-related{margin-top:55px;border-top:1px solid var(--hfd-border);padding-top:32px}
.hfd-related h2{font:800 30px/1.2 "Playfair Display",serif;text-align:left}
.hfd-related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.hfd-related-card{border:1px solid var(--hfd-border);border-radius:10px;overflow:hidden;background:#fff}.hfd-related-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.hfd-related-card div{padding:16px}.hfd-related-card h3{font:700 20px/1.3 "Playfair Display",serif;margin:0}.hfd-related-card a{text-decoration:none}

@media(max-width:900px){
  .hfd-nav{display:none}.hfd-menu-toggle{display:block;border:0;background:none;font-size:28px;cursor:pointer}.hfd-mobile-nav{padding:18px 16px;background:#fff}
  .hfd-mobile-nav.is-open{display:block}.hfd-menu-mobile{display:flex;flex-direction:column;gap:14px;margin-bottom:18px}
  .hfd-two-col,.hfd-contact-grid{grid-template-columns:1fr}.hfd-cards,.hfd-clients{grid-template-columns:repeat(2,1fr)}
  .hfd-faq{grid-template-columns:1fr}.hfd-testimonials{grid-template-columns:1fr}.hfd-footer-inner{grid-template-columns:1fr 1fr}
  .hfd-blog-grid,.hfd-single-grid{grid-template-columns:1fr}.hfd-sidebar{grid-template-columns:1fr 1fr}.hfd-blog-shell,.hfd-single-shell{padding-top:42px}
}
@media(max-width:600px){
  .hfd-section{padding:65px 0}.hfd-cards,.hfd-clients,.hfd-stats,.hfd-footer-inner,.hfd-sidebar,.hfd-related-grid{grid-template-columns:1fr}
  .hfd-marquee-row span,.hfd-marquee-row i{font-size:48px}.hfd-logo-main{font-size:25px}
  .hfd-post-card-body{padding:21px}.hfd-single-title{font-size:38px}.hfd-entry-content{font-size:18px}
}
