/*
Theme Name: Download Manager Pro
Theme URI: https://example.com
Author: Your Name
Description: A software/download-manager landing page theme with sticky nav, hero banner, alternating feature rows, awards strip and footer CTA.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dmpro
*/

:root{
  --dm-teal:#149c86;
  --dm-teal-dark:#0f7c6b;
  --dm-dark:#1a1a2e;
  --dm-navy:#151a35;
  --dm-text:#2c0e0e;
  --dm-gray:#6b7280;
  --dm-border:#e5e7eb;
  --dm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*{box-sizing:border-box;}
body{margin:0; font-family:var(--dm-font); color:#333; line-height:1.6;}
a{text-decoration:none; color:var(--dm-teal);}
img{max-width:100%; display:block;}
ul{margin:0; padding:0; list-style:none;}
.container{max-width:1200px; margin:0 auto; padding:0 24px;}

/* ===== HEADER ===== */
.site-header{
  position:sticky; top:0; z-index:200; background:#fff;
  border-bottom:1px solid var(--dm-border);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; height:70px;
}
.site-branding{display:flex; align-items:center; gap:10px;}
.site-branding img{height:34px; width:auto;}
.site-title{font-size:16px; font-weight:800; letter-spacing:.3px; color:var(--dm-text); text-transform:uppercase; margin:0;}
.site-title a{color:var(--dm-text);}

.main-navigation ul{display:flex; align-items:center; gap:26px;}
.main-navigation a{
  color:#333; font-weight:600; font-size:13.5px; text-transform:uppercase; letter-spacing:.3px;
}
.main-navigation a:hover, .main-navigation a.active{color:var(--dm-teal);}

.header-ctas{display:flex; align-items:center; gap:12px;}
.btn-solid{
  background:var(--dm-teal); color:#fff; padding:10px 20px; border-radius:6px;
  font-weight:700; font-size:13px; text-transform:uppercase;
}
.btn-solid:hover{background:var(--dm-teal-dark); color:#fff;}
.btn-outline{
  border:1.5px solid var(--dm-teal); color:var(--dm-teal); padding:9px 18px; border-radius:6px;
  font-weight:700; font-size:13px; text-transform:uppercase;
}
.btn-outline:hover{background:var(--dm-teal); color:#fff;}
.menu-toggle{display:none; background:none; border:0; font-size:26px; cursor:pointer;}

/* ===== HERO ===== */
.dm-hero{
  background:linear-gradient(120deg,#0b0f2e,#3a2b6b 60%, #6b3fa0);
  color:#fff; text-align:center; padding:64px 20px 56px;
}
.dm-hero .badge{
  display:inline-block; background:rgba(255,255,255,.12); padding:6px 18px;
  border-radius:20px; font-size:12px; letter-spacing:1px; text-transform:uppercase; margin-bottom:20px;
}
.dm-hero h1{font-size:38px; font-weight:800; margin:0 0 14px; max-width:760px; margin-left:auto; margin-right:auto;}
.dm-hero p{font-size:17px; color:#cbd5e1; max-width:640px; margin:0 auto 28px;}
.dm-hero .btn-solid{padding:14px 30px; font-size:14px;}
.dm-file-password{display:block !important; width:100% !important; clear:both !important; margin-top:22px !important; font-size:13px; color:#cbd5e1; text-align:center;}
.dm-file-password strong{color:#fff; background:rgba(255,255,255,.12); padding:3px 12px; border-radius:4px; letter-spacing:.5px; display:inline-block; margin-top:4px;}
.dm-file-btn{margin-bottom:4px !important;}

.featureblock{padding:70px 0;}
.featureblock .row{
  display:flex; align-items:center; gap:60px; margin-bottom:80px;
}
.featureblock .row:last-child{margin-bottom:0;}
.featureblock .row.reverse{flex-direction:row-reverse;}
.featureblock .col{flex:1; min-width:0;}
.featureblock h2{font-size:28px; font-weight:800; margin:0 0 16px; color:var(--dm-text);}
.featureblock p{color:var(--dm-gray); font-size:15.5px;}
.featureblock .content-img img{border-radius:10px; border:1px solid var(--dm-border); box-shadow:0 10px 30px rgba(0,0,0,.08);}

@media (max-width:820px){
  .featureblock .row, .featureblock .row.reverse{flex-direction:column; gap:24px; margin-bottom:50px;}
}

/* ===== CTA STRIP ===== */
.section.center{text-align:center; padding:40px 0 70px;}
.section.center a{margin:0 10px;}

/* ===== TRY FREE BAND ===== */
.tryforfreeblock{
  background:var(--dm-navy); color:#fff; text-align:center; padding:70px 20px;
}
.tryforfreeblock h2{font-size:30px; font-weight:800; margin:0 0 14px;}
.tryforfreeblock p{color:#cbd5e1; max-width:600px; margin:0 auto 26px;}
.tryforfreeblock .subtext{color:#94a3b8; font-size:13px; margin-top:16px;}

/* ===== NEW VERSION STRIP ===== */
.newversion{background:#f7f7fb; padding:50px 0;}
.newversion .row{display:flex; align-items:center; gap:40px;}
.newversion .tag{
  display:inline-block; background:var(--dm-teal); color:#fff; font-size:11px;
  text-transform:uppercase; padding:4px 12px; border-radius:12px; font-weight:700; margin-bottom:10px;
}
.newversion img{max-width:180px;}

/* ===== AWARDS ===== */
.awardsblock{padding:70px 0; text-align:center;}
.awardsblock h2{font-size:28px; font-weight:800; margin-bottom:36px;}
.awards{display:flex; justify-content:center; flex-wrap:wrap; gap:36px; margin-bottom:30px;}
.award{width:110px;}
.award img{margin:0 auto 10px; filter:grayscale(100%); opacity:.85;}
.award p{font-size:13px; color:var(--dm-gray); margin:0;}

/* ===== EARN MONEY BANNER ===== */
.earnmoney{
  position:relative; text-align:center; padding:80px 20px; color:#fff;
  background:linear-gradient(rgba(15,20,40,.65), rgba(15,20,40,.65)),
    url('images/team-banner.jpg') center/cover no-repeat;
}
.earnmoney h2{font-size:30px; font-weight:800; margin:0 0 14px;}
.earnmoney p{max-width:600px; margin:0 auto 24px; color:#e5e7eb;}

/* ===== FOOTER ===== */
.site-footer{background:#fff; border-top:1px solid var(--dm-border); padding:30px 0;}
.footer-inner{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;}
.footer-logo{display:flex; align-items:center; gap:14px; font-size:13px; color:var(--dm-gray);}
.footer-logo img{height:24px;}
.footer-links{display:flex; gap:24px;}
.footer-links a{font-size:13px; color:var(--dm-gray);}
.footer-links a:hover{color:var(--dm-teal);}

/* ===================================================================
   RESPONSIVE / MOBILE OPTIMIZATION
   Breakpoints: 1024px (tablet), 768px (small tablet), 480px (phone)
   =================================================================== */

/* ---- Base: make everything fluid by default ---- */
.container{width:100%;}
.featureblock .content-img img{width:100%; height:auto;}

/* ================= TABLET: <=1024px ================= */
@media (max-width:1024px){
  .container{padding:0 20px;}
  .dm-hero h1{font-size:32px;}
  .featureblock .row{gap:36px;}
  .featureblock h2{font-size:24px;}
  .awards{gap:24px;}
}

/* ================= SMALL TABLET / NAV BREAK: <=900px ================= */
@media (max-width:900px){
  .site-header .container{height:64px;}
  .main-navigation{
    display:none; position:absolute; top:64px; left:0; right:0; background:#fff;
    border-bottom:1px solid var(--dm-border); padding:16px 24px;
    box-shadow:0 8px 16px rgba(0,0,0,.06);
    max-height:calc(100vh - 64px); overflow-y:auto;
  }
  .main-navigation.open{display:block;}
  .main-navigation ul{flex-direction:column; align-items:flex-start; gap:4px; width:100%;}
  .main-navigation ul li{width:100%;}
  .main-navigation a{display:block; padding:12px 4px; width:100%; font-size:15px;}
  .menu-toggle{display:block;}
  .header-ctas .btn-outline{display:none;}
  .site-title{font-size:14px;}

  .featureblock .row, .featureblock .row.reverse{
    flex-direction:column; gap:24px; margin-bottom:50px; text-align:left;
  }
  .featureblock .row .col{width:100%;}

  .newversion .row{flex-direction:column; text-align:center; gap:20px;}
}

/* ================= PHONE: <=768px ================= */
@media (max-width:768px){
  .container{padding:0 16px;}

  /* Header */
  .site-header .container{height:58px;}
  .site-branding img{height:28px;}
  .site-title{display:none;} /* logo image alone is enough on very small screens */
  .header-ctas{gap:8px;}
  .btn-solid{padding:8px 14px; font-size:12px;}
  .menu-toggle{font-size:24px; padding:4px 8px;}

  /* Hero */
  .dm-hero{padding:44px 16px 40px;}
  .dm-hero h1{font-size:24px; line-height:1.3;}
  .dm-hero p{font-size:15px;}
  .dm-hero .badge{font-size:11px; padding:5px 14px;}
  .dm-hero .btn-solid{width:100%; max-width:320px; padding:14px 20px; font-size:14px;}

  /* Feature rows */
  .featureblock{padding:44px 0;}
  .featureblock .row{margin-bottom:36px;}
  .featureblock h2{font-size:21px;}
  .featureblock p{font-size:14.5px;}

  /* CTA strip */
  .section.center{padding:24px 0 44px; display:flex; flex-direction:column; gap:12px; align-items:center;}
  .section.center a{margin:0; width:100%; max-width:320px; text-align:center;}

  /* Try-free band */
  .tryforfreeblock{padding:44px 16px;}
  .tryforfreeblock h2{font-size:23px;}
  .tryforfreeblock .btn-solid{width:100%; max-width:320px;}

  /* New version strip */
  .newversion{padding:36px 0;}
  .newversion img{max-width:120px; margin:0 auto;}

  /* Awards */
  .awardsblock{padding:44px 0;}
  .awardsblock h2{font-size:22px;}
  .awards{gap:16px 20px;}
  .award{width:72px;}
  .award img{width:60px; height:60px;}
  .award p{font-size:11.5px;}

  /* Earn money banner */
  .earnmoney{padding:56px 16px;}
  .earnmoney h2{font-size:22px;}
  .earnmoney p{font-size:14.5px;}

  /* Footer */
  .footer-inner{flex-direction:column; text-align:center; gap:14px;}
  .footer-links{flex-direction:column; gap:10px;}
}

/* ================= SMALL PHONE: <=480px ================= */
@media (max-width:480px){
  .dm-hero h1{font-size:21px;}
  .dm-hero p{font-size:14px;}
  .featureblock h2{font-size:19px;}
  .award{width:64px;}
  .award img{width:52px; height:52px;}
  .btn-solid, .btn-outline{font-size:12.5px;}
}

/* ---- Touch target sizing: keep all tap targets comfortably large ---- */
@media (max-width:900px){
  a, button{-webkit-tap-highlight-color:rgba(20,156,134,.15);}
  .btn-solid, .btn-outline, .btn-download-nav{min-height:44px; display:inline-flex; align-items:center; justify-content:center;}
}

/* ---- Prevent horizontal scroll on small screens ---- */
html, body{overflow-x:hidden; max-width:100%;}

/* ===== BLOG / ARCHIVE / SEARCH LIST STYLES ===== */
.dm-list-hero{background:linear-gradient(120deg,#0b0f2e,#3a2b6b 60%,#6b3fa0); color:#fff; padding:50px 24px; text-align:center;}
.dm-list-hero h1{font-size:28px; font-weight:800; margin:0 0 8px;}
.dm-list-hero p{color:#cbd5e1; margin:0; font-size:14px;}
.dm-list-wrap{max-width:900px; margin:0 auto; padding:40px 24px 70px;}
.dm-list-item{display:flex; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--dm-border);}
.dm-list-icon{width:44px; height:44px; border-radius:8px; object-fit:contain; flex-shrink:0;}
.dm-list-body{flex:1; min-width:0;}
.dm-list-title{font-size:16px; font-weight:700; color:var(--dm-text); display:block; margin-bottom:4px;}
.dm-list-title:hover{color:var(--dm-teal);}
.dm-list-excerpt{font-size:13.5px; color:var(--dm-gray); margin:0 0 6px;}
.dm-list-tag{display:inline-block; font-size:11px; background:#eef2ff; color:var(--dm-teal); padding:2px 10px; border-radius:10px;}
.dm-list-btn{flex-shrink:0; padding:9px 20px; font-size:13px;}
.dm-list-pagination{display:flex; justify-content:center; gap:8px; margin-top:36px;}
.dm-list-pagination a, .dm-list-pagination span{padding:8px 14px; border:1px solid var(--dm-border); border-radius:6px; font-size:13px; color:var(--dm-text);}
.dm-list-pagination .current{background:var(--dm-teal); color:#fff; border-color:var(--dm-teal);}
@media (max-width:600px){
  .dm-list-item{flex-wrap:wrap;}
  .dm-list-btn{width:100%; text-align:center; order:3;}
}

