/*
Theme Name: OnTarget
Theme URI: https://ontarget-marketing.co.uk/
Author: OnTarget Marketing
Description: Custom theme for OnTarget Marketing — guest posting and link building services. Sticky header, full-width layout, marketplace-style blog listing and dark footer.
Version: 1.0
License: Proprietary
Text Domain: ontarget
*/

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#12212B;background:#fff;line-height:1.6;font-size:16px}
a{color:#0E6B5C;text-decoration:none}
a:hover{color:#094E43}
::selection{background:#F2A900;color:#12212B}
img{max-width:100%;height:auto}
h1,h2,h3,h4{line-height:1.25;margin:0 0 12px;color:#12212B}
p{margin:0 0 14px}
ul,ol{margin:0 0 14px}
button,input,select,textarea{font:inherit}
.otm-container{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header */
.otm-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 2px 12px rgba(18,33,43,.08)}
body.admin-bar .otm-header{top:32px}
@media(max-width:782px){body.admin-bar .otm-header{top:46px}}
.otm-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px}
.otm-logo a{color:#12212B;font-weight:800;font-size:22px;line-height:1}
.otm-logo img{max-height:52px;width:auto;display:block}
.otm-menu-toggle{display:none;background:none;border:0;cursor:pointer;padding:8px}
.otm-menu-toggle span{display:block;width:26px;height:3px;background:#12212B;border-radius:2px;margin:5px 0}
.otm-nav ul{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.otm-nav a{color:#3A4A55;font-weight:600;font-size:15px}
.otm-nav a:hover,.otm-nav .current-menu-item>a,.otm-nav .current-page-ancestor>a{color:#0E6B5C}
.otm-nav li.ot-cta a{display:inline-block;background:#0E6B5C;color:#fff!important;padding:10px 24px;border-radius:999px;font-weight:700}
.otm-nav li.ot-cta a:hover{background:#094E43;color:#fff}

/* Page hero + content */
.otm-page-hero{background:#F4F7F6;padding:36px 0;margin-bottom:30px}
.otm-page-hero h1{font-size:34px;margin:0}
.otm-page-hero p{color:#5A6B74;margin:8px 0 0}
.otm-content{padding-bottom:48px}
.otm-no-title{padding-top:32px}

/* Blog listing */
.otm-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.otm-post-card{border:1px solid #DCE5E2;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(18,33,43,.04)}
.otm-post-card img{width:100%;height:180px;object-fit:cover;display:block}
.otm-thumb-fallback{height:180px;background:#0E6B5C;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800}
.otm-post-body{padding:18px}
.otm-post-body h2{font-size:18px;margin:0 0 6px}
.otm-post-body h2 a{color:#12212B}
.otm-post-body h2 a:hover{color:#0E6B5C}
.otm-meta{font-size:13px;color:#5A6B74;margin:0 0 10px}
.otm-post-body p{font-size:14px;color:#5A6B74}
.otm-read{font-weight:700;font-size:14px}
.otm-pagination{margin-top:30px;text-align:center}
.otm-pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.otm-pagination .page-numbers{display:inline-block;border:1px solid #CBD6D2;border-radius:999px;padding:8px 16px;color:#12212B;font-weight:600;font-size:14px}
.otm-pagination .page-numbers.current{background:#0E6B5C;border-color:#0E6B5C;color:#fff}
.otm-pagination a.page-numbers:hover{border-color:#0E6B5C;color:#0E6B5C}

/* Single post */
.otm-single{max-width:800px;margin:0 auto}
.otm-single h1{font-size:36px;margin:26px 0 8px}
.otm-single-img{border-radius:16px;margin:14px 0 20px}
.otm-entry h2{font-size:26px;margin-top:28px}
.otm-entry h3{font-size:20px;margin-top:24px}
.otm-entry table{width:100%;border-collapse:collapse;margin:0 0 16px}
.otm-entry th,.otm-entry td{border:1px solid #DCE5E2;padding:10px 12px;text-align:left}
.otm-entry blockquote{border-left:4px solid #F2A900;margin:0 0 16px;padding:8px 18px;color:#5A6B74}
.otm-post-nav{display:flex;justify-content:space-between;gap:16px;margin-top:30px;padding-top:20px;border-top:1px solid #DCE5E2;font-weight:600}

/* Footer */
.otm-footer{background:#12212B;color:#CBD6D2;margin-top:48px}
.otm-footer-top{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;padding:44px 0 32px}
.otm-footer-brand b{display:block;color:#fff;font-size:22px;margin-bottom:8px}
.otm-footer-brand p{margin:0;max-width:420px;font-size:15px}
.otm-footer-company h4{color:#fff;font-size:16px;margin:0 0 12px}
.otm-footer-company ul{list-style:none;margin:0;padding:0}
.otm-footer-company li{margin-bottom:8px}
.otm-footer-company a{color:#CBD6D2}
.otm-footer-company a:hover{color:#F2A900}
.otm-footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px}
.otm-footer-bottom a{color:#CBD6D2}
.otm-footer-bottom a:hover{color:#F2A900}
.otm-legal{list-style:none;display:flex;gap:18px;margin:0;padding:0}

/* 404 / nothing found */
.otm-nothing{padding:48px 0;text-align:center}
.otm-nothing h1{font-size:32px}

/* Responsive */
@media(max-width:900px){
  .otm-posts{grid-template-columns:repeat(2,1fr)}
  .otm-menu-toggle{display:block}
  .otm-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;box-shadow:0 12px 24px rgba(18,33,43,.12);padding:8px 20px 18px}
  .otm-header.otm-nav-open .otm-nav{display:block}
  .otm-nav ul{flex-direction:column;align-items:flex-start;gap:0}
  .otm-nav li{width:100%;border-bottom:1px solid #E7EEEA}
  .otm-nav li:last-child{border-bottom:0}
  .otm-nav li a{display:block;padding:12px 0}
  .otm-nav li.ot-cta a{display:inline-block;margin:10px 0}
}
@media(max-width:560px){
  .otm-posts{grid-template-columns:1fr}
  .otm-single h1{font-size:28px}
  .otm-page-hero h1{font-size:28px}
  .otm-footer-top{flex-direction:column}
  .otm-footer-bottom{flex-direction:column;align-items:flex-start}
}

/* Contact Form 7 */
.wpcf7-form input[type="submit"]{background:#0E6B5C;color:#fff;border:0;border-radius:999px;padding:12px 26px;font-weight:700;cursor:pointer}
.wpcf7-form input[type="submit"]:hover{background:#094E43}
.wpcf7-form input[type="text"],.wpcf7-form input[type="email"],.wpcf7-form select,.wpcf7-form textarea{width:100%;border:1px solid #CBD6D2;border-radius:10px;padding:11px 14px}
.wpcf7-form label{font-weight:600;font-size:14px}
