/*
Theme Name: Formidus
Theme URI: https://formidus.com
Author: Formidus
Description: Custom theme for Formidus, a marketing, design, and technology studio for local businesses in Weatherford, Texas. Dark hero, warm off-white sections, sage accents. Replaces Astra + Elementor.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: formidus
*/

:root{
  --ink:#171716; --ink-2:#222220; --paper:#F6F4EF; --white:#FFFFFF;
  --text:#33332F; --mute:#6E6E68; --line:#E5E2DA;
  --sage-100:#DCE8C9; --sage-500:#8BAA62; --sage-700:#4A6431;
  --head:'Schibsted Grotesk','Helvetica Neue',Arial,sans-serif;
  --body:'DM Sans','Helvetica Neue',Arial,sans-serif;
  --gutter:80px;
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;}
img{max-width:100%;height:auto;}
a{color:var(--ink);text-decoration:none;transition:color .15s,background .15s,opacity .15s;}
a:hover{color:var(--sage-700);}
h1,h2,h3,h4,p{margin:0;}
h1,h2,h3,h4{font-family:var(--head);font-weight:700;color:var(--ink);letter-spacing:-0.02em;line-height:1.1;text-wrap:balance;}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}
.wrap{max-width:1440px;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter);}
.site{position:relative;max-width:1440px;margin:0 auto;background:var(--paper);}
svg.i{display:block;flex-shrink:0;}

/* ---------- buttons, pills, eyebrows ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;border-radius:999px;font-family:var(--body);font-weight:600;font-size:15px;line-height:1;white-space:nowrap;border:0;cursor:pointer;text-decoration:none;}
.btn-lg{padding:18px 28px;font-size:16px;}
.btn-sage{background:var(--sage-100);color:var(--ink);}
.btn-sage:hover{background:#cfe0b6;color:var(--ink);}
.btn-ink{background:var(--ink);color:var(--white);}
.btn-ink:hover{background:#000;color:var(--white);}
.btn-white{background:var(--white);color:var(--ink);}
.btn-white:hover{background:var(--sage-100);color:var(--ink);}
.pill{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;background:var(--sage-100);color:var(--sage-700);font-weight:600;font-size:13px;line-height:1;}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mute);}
.eyebrow.light{color:rgba(255,255,255,.7);}
.link-arrow{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--ink);}
.link-arrow:hover{color:var(--sage-700);}

/* ---------- header ---------- */
.site-header{position:relative;z-index:20;background:var(--ink);}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px var(--gutter);}
body.home .site-header{position:absolute;top:0;left:0;right:0;background:transparent;}
.brand{display:flex;align-items:center;gap:12px;color:var(--white);}
.brand:hover{color:var(--white);}
.brand .wordmark{font-family:var(--head);font-weight:700;font-size:20px;letter-spacing:.12em;line-height:1;}
.brand img.custom-logo{max-height:44px;width:auto;}
.primary-nav{display:flex;align-items:center;gap:36px;list-style:none;margin:0;padding:0;font-size:15px;font-weight:500;}
.primary-nav a{color:rgba(255,255,255,.85);}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--white);}
.primary-nav .sub-menu{display:none;}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(23,23,22,.35);color:var(--white);cursor:pointer;padding:0;}
.mobile-panel{display:none;background:var(--ink);padding:8px 20px 28px;border-top:1px solid rgba(255,255,255,.1);}
.mobile-panel ul{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;}
.mobile-panel li a{display:block;padding:14px 0;font-size:18px;font-weight:500;color:rgba(255,255,255,.9);border-bottom:1px solid rgba(255,255,255,.08);}
.mobile-panel .sub-menu{display:none;}
.site-header.is-open .mobile-panel{display:block;}

/* ---------- hero ---------- */
.hero{position:relative;min-height:760px;background:var(--ink);overflow:hidden;display:flex;align-items:flex-end;}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0%;}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,23,22,.88) 0%,rgba(23,23,22,.55) 42%,rgba(23,23,22,.08) 100%);}
.hero-shade-bottom{position:absolute;left:0;right:0;bottom:0;height:220px;background:linear-gradient(180deg,rgba(23,23,22,0) 0%,rgba(23,23,22,.55) 100%);}
.hero-fade{display:none;}
.hero-inner{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:24px;max-width:calc(620px + 2 * var(--gutter));padding:180px var(--gutter) 190px;}
.hero h1{font-size:64px;line-height:1.02;color:var(--white);}
.hero p{font-size:19px;line-height:1.55;color:rgba(255,255,255,.8);max-width:560px;}

/* ---------- overlap panel ---------- */
.intro-panel{position:relative;z-index:2;margin:-140px var(--gutter) 0;background:var(--white);border-radius:24px;padding:48px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;box-shadow:0 30px 60px rgba(23,23,22,.12);}
.intro-panel .col{display:flex;flex-direction:column;align-items:flex-start;gap:18px;}
.service-list{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;}
.service-list li{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:500;color:var(--ink);}
.service-list li::before{content:"";width:6px;height:6px;border-radius:999px;background:var(--sage-500);flex-shrink:0;}
.intro-panel h3{font-size:30px;}
.intro-panel p{font-size:15px;line-height:1.6;color:var(--mute);}
.panel-dark{background:var(--ink);border-radius:20px;padding:36px;justify-content:space-between;gap:24px;}
.panel-dark h3{color:var(--white);}
.panel-dark p{color:rgba(255,255,255,.72);}

/* ---------- sections ---------- */
.section{padding:96px var(--gutter) 0;display:flex;flex-direction:column;gap:36px;}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;}
.section-head .title{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.section h2{font-size:40px;}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
.card{display:flex;flex-direction:column;gap:16px;background:var(--white);border-radius:20px;padding:28px;}
.card .tile{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:var(--sage-100);color:var(--sage-700);}
.card h4{font-size:20px;line-height:1.2;letter-spacing:0;}
.card p{font-size:15px;line-height:1.55;color:var(--mute);}
.card-cta{background:var(--ink);justify-content:space-between;}
.card-cta h4{color:var(--white);}
.card-cta p{color:rgba(255,255,255,.72);}
.work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.work-tile{display:flex;flex-direction:column;background:var(--white);border-radius:24px;overflow:hidden;color:var(--ink);}
.work-tile:hover{color:var(--ink);box-shadow:0 20px 40px rgba(23,23,22,.10);}
.work-tile .shot{position:relative;height:320px;background:var(--line);}
.work-tile .shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left;}
.work-tile .body{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:32px;}
.work-tile h3{font-size:26px;}
.work-tile p{font-size:15px;line-height:1.6;color:var(--mute);}
.work-card{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);background:var(--white);border-radius:24px;overflow:hidden;}
.work-card .shot{position:relative;background:var(--line);min-height:440px;}
.work-card .shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left;}
.work-card .body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;padding:48px;}
.work-card h3{font-size:32px;}
.work-card p{font-size:16px;line-height:1.6;color:var(--mute);}
.page-bottom{padding-bottom:96px;}

/* ---------- footer + CTA band ---------- */
.site-footer{background:var(--ink);color:var(--white);padding:88px var(--gutter) 40px;display:flex;flex-direction:column;gap:56px;}
.cta-row{display:flex;align-items:center;justify-content:space-between;gap:40px;}
.cta-row h2{font-size:44px;line-height:1.08;color:var(--white);max-width:720px;}
.rule{height:1px;background:rgba(255,255,255,.12);}
.foot-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:40px;}
.foot-brand{display:flex;flex-direction:column;gap:18px;}
.foot-brand p{font-size:15px;line-height:1.6;color:rgba(255,255,255,.65);max-width:320px;}
.foot-col{display:flex;flex-direction:column;gap:14px;font-size:15px;}
.foot-col .h{font-weight:600;color:var(--white);}
.foot-col a{color:rgba(255,255,255,.65);display:flex;align-items:center;gap:10px;}
.foot-col a:hover{color:var(--white);}
.foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;}
.social{display:flex;gap:10px;margin-top:6px;}
.social a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.85);}
.social a:hover{border-color:var(--sage-100);color:var(--white);}
.foot-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:rgba(255,255,255,.45);}
.foot-bottom a{color:rgba(255,255,255,.45);margin-left:24px;}
.foot-bottom a:hover{color:var(--white);}

/* ---------- inner pages ---------- */
.page-band{background:var(--ink);color:var(--white);padding:72px var(--gutter) 72px;display:flex;flex-direction:column;gap:16px;}
.page-band h1{font-size:56px;color:var(--white);max-width:900px;}
.page-band .lede{font-size:19px;line-height:1.55;color:rgba(255,255,255,.75);max-width:640px;}
.prose{max-width:820px;padding:64px var(--gutter) 96px;}
.entry-content>*+*{margin-top:1.1em;}
.entry-content h2{font-size:32px;margin-top:2em;}
.entry-content h3{font-size:22px;margin-top:1.6em;letter-spacing:-0.01em;}
.entry-content p,.entry-content li{font-size:17px;line-height:1.65;}
.entry-content ul,.entry-content ol{padding-left:1.3em;}
.entry-content li+li{margin-top:.4em;}
.entry-content a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--sage-500);}
.entry-content img{border-radius:16px;}
.entry-content figure{margin:0;}
.entry-content blockquote{border-left:3px solid var(--sage-500);margin:0;padding:4px 0 4px 20px;color:var(--mute);}
.entry-content .wp-block-image{margin:2em 0;}
.entry-content .btn{text-decoration:none;}
.entry-content .lead{font-size:20px;color:var(--ink);}
.entry-content .card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:1.5em 0;}
.entry-content .card-grid>div{background:var(--white);border-radius:20px;padding:28px;}
.entry-content .card-grid h3{margin-top:0;}
.entry-content .card-grid p{font-size:15px;color:var(--mute);}
.entry-content .sample{background:var(--white);border-radius:24px;overflow:hidden;margin:1.5em 0;}
.entry-content .sample img{display:block;width:100%;border-radius:0;}
.entry-content .sample .body{padding:28px 32px 32px;}
.entry-content .sample .body p{color:var(--mute);}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px;padding:64px var(--gutter) 96px;align-items:start;}
.contact-form{background:var(--white);border-radius:24px;padding:40px;display:flex;flex-direction:column;gap:18px;}
.contact-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;color:var(--ink);}
.contact-form input,.contact-form textarea{font-family:var(--body);font-size:16px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 16px;width:100%;}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--sage-500);outline-offset:1px;border-color:var(--sage-500);}
.contact-form textarea{min-height:150px;resize:vertical;}
.contact-form .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.contact-form .hp{position:absolute;left:-9999px;}
.contact-form .fine{font-size:13px;color:var(--mute);}
.contact-aside{display:flex;flex-direction:column;gap:28px;}
.contact-aside .box{background:var(--white);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:12px;}
.contact-aside .box a{display:flex;align-items:center;gap:10px;font-weight:500;}
.notice{border-radius:14px;padding:16px 18px;font-size:15px;font-weight:500;}
.notice-ok{background:var(--sage-100);color:var(--sage-700);}
.notice-err{background:#F7E3E0;color:#8A3B2F;}

/* ---------- blog fallback ---------- */
.post-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:64px var(--gutter) 96px;}
.post-list article{background:var(--white);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:12px;}
.post-list h2{font-size:22px;letter-spacing:-0.01em;}
.post-list .meta{font-size:13px;color:var(--mute);}
.post-list p{font-size:15px;color:var(--mute);}
.pagination{display:flex;gap:12px;padding:0 var(--gutter) 96px;}
.pagination a,.pagination span{padding:10px 16px;border-radius:999px;background:var(--white);font-weight:600;font-size:14px;}
.pagination .current{background:var(--ink);color:var(--white);}
.err-page{padding:96px var(--gutter);display:flex;flex-direction:column;align-items:flex-start;gap:20px;}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  :root{--gutter:40px;}
  .hero h1{font-size:54px;}
  .intro-panel{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-100px;padding:40px;}
  .intro-panel .col:last-child{grid-column:1/-1;}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));}
  .work-card{grid-template-columns:1fr;}
  .work-card .shot{min-height:340px;}
  .cta-row{flex-direction:column;align-items:flex-start;}
  .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .contact-grid{grid-template-columns:1fr;}
  .post-list{grid-template-columns:repeat(2,minmax(0,1fr));}
  .page-band h1{font-size:44px;}
}
@media (max-width:760px){
  :root{--gutter:20px;}
  body{font-size:16px;}
  .primary-nav,.header-cta{display:none;}
  .nav-toggle{display:flex;}
  .site-header .bar{padding:18px var(--gutter);}
  .brand .wordmark{font-size:17px;}
  .hero{min-height:0;display:block;}
  .hero-bg{height:480px;object-position:78% 0%;}
  .hero-shade{background:linear-gradient(180deg,rgba(23,23,22,.35) 0%,rgba(23,23,22,.2) 35%,rgba(23,23,22,.9) 75%);}
  .hero-shade-bottom{display:none;}
  .hero-fade{display:block;position:absolute;left:0;right:0;top:0;height:481px;background:linear-gradient(180deg,rgba(23,23,22,0) 50%,#171716 100%);}
  .hero-inner{max-width:none;padding:330px var(--gutter) 96px;gap:18px;}
  .hero h1{font-size:40px;line-height:1.05;}
  .hero p{font-size:16px;}
  .intro-panel{grid-template-columns:1fr;margin:-60px 16px 0;padding:28px 24px;gap:32px;border-radius:20px;}
  .intro-panel h3{font-size:26px;}
  .panel-dark{padding:28px 24px;border-radius:16px;}
  .section{padding-top:64px;gap:24px;}
  .section h2{font-size:30px;}
  .section-head{flex-direction:column;align-items:flex-start;}
  .section-head .title{flex-direction:column-reverse;align-items:flex-start;gap:14px;}
  .cards{grid-template-columns:1fr;gap:16px;}
  .card{padding:24px;}
  .work-grid{grid-template-columns:1fr;gap:16px;}
  .work-tile .shot{height:220px;}
  .work-tile .body{padding:24px;}
  .work-card .shot{min-height:240px;}
  .work-card .body{padding:24px;}
  .work-card h3{font-size:26px;}
  .page-bottom{padding-bottom:64px;}
  .site-footer{padding:64px var(--gutter) 32px;gap:40px;}
  .cta-row h2{font-size:32px;}
  .foot-grid{grid-template-columns:1fr;gap:28px;}
  .foot-bottom{flex-direction:column;align-items:flex-start;gap:10px;}
  .foot-bottom a{margin-left:0;margin-right:20px;}
  .page-band{padding:48px var(--gutter);}
  .page-band h1{font-size:36px;}
  .prose,.contact-grid{padding-top:40px;padding-bottom:64px;}
  .entry-content h2{font-size:26px;}
  .entry-content .card-grid{grid-template-columns:1fr;}
  .contact-form{padding:24px;}
  .contact-form .two{grid-template-columns:1fr;}
  .post-list{grid-template-columns:1fr;}
}
